poiesis package

Subpackages

Submodules

poiesis.constants module

Constants for the Poiesis.

Contains constants used throughout the Poiesis application. Much more general than the constants in the core or api modules.

class poiesis.constants.PoesisConstants(ENVIRONMENT='dev', LOG_LEVEL='INFO')[source]

Bases: object

Constants for the Poiesis.

ENVIRONMENT

The environment in which the application is running.

DATABASE

The database in which the application is running.

class Database[source]

Bases: object

Constants for the database.

MONGODB

The MongoDB database.

class MongoDB(TASK_COLLECTION='tasks', SERVICE_COLLECTION='services', DATABASE='poiesis', MAX_POOL_SIZE=10)[source]

Bases: object

Constants for the MongoDB database.

TASK_COLLECTION

The name of the tasks collection.

SERVICE_COLLECTION

The name of the services collection.

DATABASE

The name of the database to use.

MAX_POOL_SIZE

The maximum number of connections to the database.

HOST

Host for the mango instance.

PORT

Port for the mongo instance.

DATABASE: str = 'poiesis'
MAX_POOL_SIZE: int = 10
SERVICE_COLLECTION: str = 'services'
TASK_COLLECTION: str = 'tasks'
ENVIRONMENT: Literal['dev', 'prod'] = 'dev'
LOG_LEVEL: Literal['DEBUG', 'INFO', 'WARNING', 'ERROR'] = 'INFO'
poiesis.constants.get_poiesis_constants()[source]

Get the Poiesis constants.

Returns:

The Poiesis constants.

Return type:

PoesisConstants

Module contents

Main package for poiesis.