Metadata-Version: 2.1
Name: chainfury_server
Version: 2.1.3a0
Summary: ChainFury Server is the DB + API server for managing the ChainFury engine in production. Used in production at chat.tune.app
Home-page: https://github.com/NimbleBoxAI/ChainFury
License: Apache 2.0
Author: Tune AI
Author-email: engineering@nimblebox.ai
Requires-Python: >=3.9,<3.12
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: PyJWT[crypto] (==2.6.0)
Requires-Dist: PyMySQL (==1.0.3)
Requires-Dist: SQLAlchemy (==1.4.47)
Requires-Dist: black (==23.3.0)
Requires-Dist: cryptography (>=41.0.6)
Requires-Dist: fastapi (>=0.109.2,<0.110.0)
Requires-Dist: fire (==0.5.0)
Requires-Dist: passlib (==1.7.4)
Requires-Dist: requests (>=2.31.0,<3.0.0)
Requires-Dist: snowflake_id (==1.0.1)
Requires-Dist: urllib3 (>=1.26.18)
Requires-Dist: uvicorn (==0.27.1)
Project-URL: Repository, https://github.com/NimbleBoxAI/ChainFury
Description-Content-Type: text/markdown

# 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

```bash
# 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
```

