A utility package for stage0 microservices
Project description
stage0_py_utils
This repo publishes the a pypl module that contains utility code used throughout the stage0 system. See the server.py for an example of how to use this code. See the ECHO documentation for information on how the Stage0 Echo Bot is implemented.
Contributing
Prerequisites
- Stage0 Developer Edition #TODO for now just Docker
- Python 3.12
- Pipenv
Optional
- Mongo Compass - if you want a way to look into the database
Folder structure for source code
๐ stage0_py_utils/ # Repo root
โโโ ๐ stage0_py_utils/
โ โโโ ๐ agents/ # Echo Agents (Bot, Conversation, Echo)
โ โโโ ๐ config/ # System Wide configuration
โ โโโ ๐ echo/ # Echo Chat AI Framework
โ โโโ ๐ echo_utils/ # Echo related utilities
โ โโโ ๐ flask_utils/ # Flask related utilities
โ โโโ ๐ mongo_utils/ # MongoDB Utilities
โ โโโ ๐ evaluator/ # Echo evaluation utility
โ โโโ ๐ routes/ # Echo Flask Routes
โ โโโ ๐ services/ # Echo Persistence Services (Bot, Conversation)
โ
โโโ ๐ tests/ # unittest code structure matches source
โ โโโ ๐ agents/
โ โโโ ๐ config/
โ โโโ ๐ echo/
โ โโโ ....
โ โโโ ๐ test_data/ # Testing Data
โ โ โโโ ๐ config/ # Config file testing data
โ โ โโโ ๐ evaluate/ # Echo Evaluate test data
โ
โโโ README.md
โโโ ...
Pipenv Commands
We use pipenv automation to manage dependencies and automate common tasks. Note that running the sample server will use the configuration values (Tokens, ID's, Port, etc.) from the FRAN bot. You can not run the sample server if the FRAN bot is already running.
Install Dependencies
pipenv install
Clean any previous build output
pipenv run clean
Build the Package
pipenv run build
Check the Package is ready for publication
pipenv run check
Publish the Package
pipenv run publish
NOTE: You should not need to use this, publishing is handled by GitHub Actions CI
Run sample server locally
pipenv run local
Run sample server locally with DEBUG logging
pipenv run debug
Run stepCI testing of Flask API endpoints
pipenv run stepci
NOTE: This assumes that the server is running at localhost:8580. Use pipenv run local to start the server if needed
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stage0_py_utils-0.2.5.tar.gz.
File metadata
- Download URL: stage0_py_utils-0.2.5.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a53ceea987ed39306348d4f1dcfbfaa57a64d3f79c01f4d670fff766473abd04
|
|
| MD5 |
7194b2612918ecd9b5e750fcd838a8ce
|
|
| BLAKE2b-256 |
5564eafb1c5c6dcf7329bf6eab8037d55f264186825202f205321a54e0aefd97
|
File details
Details for the file stage0_py_utils-0.2.5-py3-none-any.whl.
File metadata
- Download URL: stage0_py_utils-0.2.5-py3-none-any.whl
- Upload date:
- Size: 40.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c086e41b695d6dfea2dfa8c3f650b17299621c7a0a5bcdbee5066f1803f2673
|
|
| MD5 |
ddf5bc59eae7d443613de385e58520c6
|
|
| BLAKE2b-256 |
40d71d39f91abaf36b484926b9d02d7ac6e821937ce115725804c7fcc44d1426
|