NeuroMorpho Queries¶
neuromorphopy.query
¶
Query
¶
Build and validate NeuroMorpho queries.
Source code in neuromorphopy/query.py
build()
¶
Build the final query dictionary.
Source code in neuromorphopy/query.py
filter(field, values)
¶
Add a filter with validation.
Source code in neuromorphopy/query.py
from_file(path)
classmethod
¶
Create and build query directly from JSON or YAML file.
Source code in neuromorphopy/query.py
sort(field, ascending=True)
¶
Add sorting with validation.
Source code in neuromorphopy/query.py
QueryConfig
¶
Bases: BaseModel
Query configuration with validation.
Source code in neuromorphopy/query.py
get_field_values(field)
cached
classmethod
¶
Get valid values for a specific field.
Source code in neuromorphopy/query.py
get_valid_fields()
cached
classmethod
¶
Get all valid fields from NeuroMorpho API.
validate_field(field, values)
staticmethod
¶
Validate a single field and its values.
Source code in neuromorphopy/query.py
QueryFields
¶
Helper class for accessing NeuroMorpho query field information.
Source code in neuromorphopy/query.py
describe()
classmethod
¶
get_fields()
cached
classmethod
¶
Get all valid query fields from NeuroMorpho API.
get_values(field)
cached
classmethod
¶
Get valid values for a specific field.