chainfury_server.utils module

class chainfury_server.utils.Env[source]

Bases: object

Single namespace for all environment variables.

  • CFS_DATABASE: database connection string

  • JWT_SECRET: secret for JWT tokens

CFS_DATABASE()
CFS_MAX_NODE_ID_LEN()
CF_MAX_WORKER_ID_LEN()
JWT_SECRET()
chainfury_server.utils.folder(x: str) str[source]

get the folder of this file path

chainfury_server.utils.joinp(x: str, *args) str[source]

convienience function for os.path.join