Skip to main content

ChainFury Server is the DB + API server for managing the ChainFury engine in production. Used in production at chat.tune.app

Project description

ChainFury Server

This is a package separate from chainfury which provides the python execution engine.

.env file

Create the following file and pass the CFS_DOTENV env var

# Environment variables.

# If passed this is taken by the sqlalchemy.create_engine function
# by default it None and creates a local sqlite DB.
CFS_DATABASE='<database-path>'

# configurations
JWT_SECRET="hajime-shimamoto"     # default, Murakami <3
CFS_MAXLEN_CF_NDOE=80             # maximum length of the chainfury node ID
CFS_MAXLEN_WORKER=16              # length of the worker ID
CFS_ALLOW_CORS_ORIGINS='*'        # or pass with , split like xxx,yyy
CFS_ALLOW_METHODS='*'             # or pass with , split like xxx,yyy
CFS_ALLOW_HEADERS='*'             # or pass with , split like xxx,yyy
CFS_DISABLE_UI=0                  # set 1 to disable UI
CFS_DISABLE_DOCS=0                # set 0 to disable swagger

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chainfury_server-2.1.2a0.tar.gz (689.3 kB view hashes)

Uploaded Source

Built Distribution

chainfury_server-2.1.2a0-py3-none-any.whl (697.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page