base

pydantic model aind_behavior_services.base.SchemaVersionedModel[source]

Bases: BaseModel

Fields:
Validators:
field aind_behavior_services_pkg_version: Literal[pkg_version] = '0.8.8'[source]
Constraints:
  • pattern = ^(0|[1-9]d*).(0|[1-9]d*).(0|[1-9]d*)(?:-((?:0|[1-9]d*|d*[a-zA-Z-][0-9a-zA-Z-]*)(?:.(?:0|[1-9]d*|d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:+([0-9a-zA-Z-]+(?:.[0-9a-zA-Z-]+)*))?$

Validated by:
field version: str [Required][source]

schema version

Constraints:
  • pattern = ^(0|[1-9]d*).(0|[1-9]d*).(0|[1-9]d*)(?:-((?:0|[1-9]d*|d*[a-zA-Z-][0-9a-zA-Z-]*)(?:.(?:0|[1-9]d*|d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:+([0-9a-zA-Z-]+(?:.[0-9a-zA-Z-]+)*))?$

Validated by:
validator coerce_version  »  version, aind_behavior_services_pkg_version[source]
class aind_behavior_services.base.SemVerAnnotation[source]

Bases: object

A class representing semantic version annotations.

aind_behavior_services.base.coerce_schema_version(cls: type[SchemaVersionedModel], v: str, version_string: str = 'version', check_compatibility: bool = True) str[source]
aind_behavior_services.base.get_commit_hash(repository: PathLike | None = None) str[source]

Get the commit hash of the repository.