pudl.metadata.constants

Metadata and operational constants.

Module Contents

pudl.metadata.constants.FIELD_DTYPES :Dict[str, str][source]

Pandas data type by PUDL field type (Data Package field.type).

pudl.metadata.constants.FIELD_DTYPES_SQL :Dict[str, sqlalchemy.sql.visitors.VisitableType][source]

SQLAlchemy column types by PUDL field type (Data Package field.type).

pudl.metadata.constants.CONSTRAINT_DTYPES :Dict[str, Type][source]

Python types for field constraints by PUDL field type (Data Package field.type).

pudl.metadata.constants.LICENSES :Dict[str, Dict[str, str]][source]

License attributes by PUDL identifier.

pudl.metadata.constants.SOURCES :Dict[str, Dict[str, str]][source]

Source attributes by PUDL identifier.

pudl.metadata.constants.CONTRIBUTORS :Dict[str, Dict[str, str]][source]

Contributor attributes by PUDL identifier.

pudl.metadata.constants.CONTRIBUTORS_BY_SOURCE :Dict[str, List[str]][source]

Contributors (PUDL identifiers) by source (PUDL identifier).

pudl.metadata.constants.KEYWORDS_BY_SOURCE :Dict[str, List[str]][source]

Keywords by source (PUDL identifier).

pudl.metadata.constants.PERIODS :Dict[str, Callable[[pandas.Series], pandas.Series]][source]

Functions converting datetimes to period start times, by time period.