Skip to main content

Utilities for machine learning, web services, and cloud infrastructure.

Project description

lifeomic-chatbot-tools

Python utilities for machine learning, web services, and cloud infrastructure. Includes classes and methods for:

  1. ML model serialization/deserialization
  2. ML model evaluation utilities
  3. Data structures/models related to chatbots
  4. ML model artifact persistence and version management
  5. And more

The data structures in this package can all be found in the lifeomic_chatbot_tools.types sub-package, and are all Pydantic data models. For example the lifeomic_chatbot_tools.types.agent.AgentConfig class represents a chatbot's configuration and training data.

API docs for this package can be found TODO.

Getting Started

To begin using the package, use your favorite package manager to install it from PyPi. For example, using pip:

pip install lifeomic-chatbot-tools

Some of the features in this repo require more heavy weight dependencies, like AWS related utilities, or utilities specific to machine learning. If you try to import those features, they will tell you if you do not have the correct package extra installed. For example, many of the features in the lifeomic_chatbot_tools.ml sub-package require the ml extra. To install lifeomic-chatbot-tools with that extra:

pip install lifeomic-chatbot-tools[ml]

You can then begin using any package features that require ML dependencies.

Developing Locally

Before making any new commits or pull requests, please complete these steps.

  1. Install the Poetry package manager for Python if you do not already have it. Installation instructions can be found here.
  2. Clone the project.
  3. From the root directory of the repo, install the dependencies, including all dev dependencies and extras:
    poetry install --extras "aws ml"
    
  4. Install the pre-commit hooks, so they will run before each local commit. This includes linting, auto-formatting, and import sorting:
    pre-commit install
    
    Note: pre-commit is a dev dependency of the project, and is managed by Poetry. In order to use those dependencies from the terminal, you must be in a Poetry shell. This can be accomplished by first running poetry shell in your terminal.

Testing Locally

With Yarn, Docker, and docker-compose installed, run this command from the project root:

yarn ci-test

This will build the project, lint it, and run the unit tests and integration tests. All those steps can be run individually as well. See the scripts in the package.json file for the command names.

Releasing The Package

Releasing the package is automatically handled by CI, but three steps must be taken to trigger a successful release:

  1. Use Poetry's version command to bump the package's version.
  2. Commit and tag the repo with the exact same version the package was bumped to, e.g. v1.0.0 (include a preceding v).
  3. Push the commit and tag to remote. These can be done together using: git push --atomic origin <branch_name> <tag>

CI will then build release the package to pypi with that version once the commit and tag are merged to the master branch.

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

lifeomic-chatbot-tools-4.0.0.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

lifeomic_chatbot_tools-4.0.0-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

Details for the file lifeomic-chatbot-tools-4.0.0.tar.gz.

File metadata

  • Download URL: lifeomic-chatbot-tools-4.0.0.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.13 Linux/5.13.0-1023-azure

File hashes

Hashes for lifeomic-chatbot-tools-4.0.0.tar.gz
Algorithm Hash digest
SHA256 05e28b29b44c41136a30ae73d46149a991599136aa5a419dee1da75a86d1d90e
MD5 60690d11f94257821a6ca9c793f859e9
BLAKE2b-256 08ab65f899ecf2b99844e506cc03d9fe575148a200b38e3dcbcad81108a13125

See more details on using hashes here.

File details

Details for the file lifeomic_chatbot_tools-4.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lifeomic_chatbot_tools-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a75a6efcee56446eaebb1a431ca1d1044f574de1153e8a5573b7110f3beebce
MD5 58d3ce6848f8932dc8515d3b04f5290e
BLAKE2b-256 c243e4a2a6cc11ad802a54f34912dca4b0602ea67f23dbfd466e703353be025f

See more details on using hashes here.

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