Skip to main content

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

Optional

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


Download files

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

Source Distribution

stage0_py_utils-0.2.14.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stage0_py_utils-0.2.14-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file stage0_py_utils-0.2.14.tar.gz.

File metadata

  • Download URL: stage0_py_utils-0.2.14.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for stage0_py_utils-0.2.14.tar.gz
Algorithm Hash digest
SHA256 03ae6b101e0f5dcbce47d605509fb47d0ee86ef86e2630fa6685caf0cd7174eb
MD5 37307bd9d2890be04a91b85182b0cc24
BLAKE2b-256 cd923a5b26ec7f0f30f8b221c9c8daa5fa851e3a3dbd190ab4c0c761412b993b

See more details on using hashes here.

File details

Details for the file stage0_py_utils-0.2.14-py3-none-any.whl.

File metadata

File hashes

Hashes for stage0_py_utils-0.2.14-py3-none-any.whl
Algorithm Hash digest
SHA256 bfa1a42bf0fe4e942abced9c489e6f2564ceb504b88d77fdfb0c5b66aa3f27ea
MD5 1fe06f1e03745c29b8b65b88f9444f83
BLAKE2b-256 684dbca495c68d483a161361fe896d5c43360429621451ebf3d56000f7f48db4

See more details on using hashes here.

Supported by

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