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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for chainfury_server-2.1.2a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 280cc6d567f2b5d3dcb235e5c5992b5e9ff917332e60facb73552f0f3cfdca66 |
|
MD5 | 533014acee22e62386e3ffd9972246cd |
|
BLAKE2b-256 | ee2509da4f59514ff130c958d981f1d580f2b80d2884640901f6807aaed3148d |