ftrack_connect_pipeline.definition

ftrack_connect_pipeline.definition.collect_and_validate(session, current_dir, host_types)[source]

Collects and validates the definitions and the schemas of the given host in the given current_dir.

session : instance of ftrack_api.session.Session current_dir : Directory path to look for the definitions. host : Definition host to look for.

ftrack_connect_pipeline.definition.collect

ftrack_connect_pipeline.definition.collect.resolve_schemas(data)[source]

Resolves the refs of the schemas in the given data

data : Dictionary of json definitions and schemas generated at collect_definitions()

ftrack_connect_pipeline.definition.collect.filter_definitions_by_host(data, host_types)[source]

Filter the definitions in the given data by the given host

data : Dictionary of json definitions and schemas generated at collect_definitions() host_types : List of definition host to be filtered by.

ftrack_connect_pipeline.definition.collect.collect_definitions(lookup_dir)[source]

Collect all the schemas and definitions from the given lookup_dir

lookup_dir : Directory path to look for the definitions.

ftrack_connect_pipeline.definition.validate

ftrack_connect_pipeline.definition.validate.validate_schema(data, session)[source]

Validates and aguments the definitions and the schemas from the given data

data : Dictionary of json definitions and schemas generated at collect_definitions()