Root

Abstract Root Objects from which all other autopilot objects inherit from.

These objects are not intended to be instantiated on their own, and this module should not import from any other autopilot module

Functions:

no_underscore_all_caps(input)

prefs used to be 'ALLCAPS' instead of 'ALL_CAPS'.

Classes:

Autopilot_Type

Root autopilot model for types

Autopilot_Pref

Root autopilot model for prefs

Autopilot_Object([id])

Meta-object for autopilot object types

no_underscore_all_caps(input: str) str[source]

prefs used to be 'ALLCAPS' instead of 'ALL_CAPS'. In general, these should be considered degenerate, and no future prefs should be declared that depend on the presence of the underscore.

Used by Autopilot_Pref to generate Aliases

Parameters

input (str) – input string

Returns

without underscores and in allcaps.

Return type

str

pydantic model Autopilot_Type[source]

Bases: pydantic.main.BaseModel, abc.ABC

Root autopilot model for types

Show JSON schema
{
   "title": "Autopilot_Type",
   "description": "Root autopilot model for types",
   "type": "object",
   "properties": {}
}

pydantic settings Autopilot_Pref[source]

Bases: pydantic.env_settings.BaseSettings

Root autopilot model for prefs

All settings can be declared with an environment variable prefixed with 'AUTOPILOT_'

Show JSON schema
{
   "title": "Autopilot_Pref",
   "description": "Root autopilot model for prefs\n\nAll settings can be declared with an environment variable\nprefixed with ``'AUTOPILOT_'``",
   "type": "object",
   "properties": {},
   "additionalProperties": false
}

Config
  • alias_generator: function = <function no_underscore_all_caps at 0x7fa1553b8ee0>

  • env_prefix: str = AUTOPILOT_

class Autopilot_Object(id: Optional[str] = None)[source]

Bases: abc.ABC

Meta-object for autopilot object types