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:
- ML model serialization/deserialization
- ML model evaluation utilities
- Data structures/models related to chatbots
- ML model artifact persistence and version management
- 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.
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.
- Install the Poetry package manager for Python if you do not already have it. Installation instructions can be found here.
- Clone the project.
- From the root directory of the repo, install the dependencies, including all dev
dependencies and extras:
poetry install --extras "aws ml"
- Install the pre-commit hooks, so they will run before each local commit. This
includes linting, auto-formatting, and import sorting:
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 runningpre-commit install
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:
- Use Poetry's
version
command to bump the package's version. - Update the CHANGELOG file with the latest changes added under the new version.
- Open a PR. When it's merged to
master
, the release will happen automatically.
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
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
File details
Details for the file lifeomic-chatbot-tools-5.1.0.tar.gz
.
File metadata
- Download URL: lifeomic-chatbot-tools-5.1.0.tar.gz
- Upload date:
- Size: 30.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.8.13 Linux/5.15.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ccfff5593793fb9f43d3f48da87790e3a397d33e06e7cf7f795ca1272b30cb5 |
|
MD5 | 1267d857747a2cd59ac6b2b7a06a1cc2 |
|
BLAKE2b-256 | ca3a7a174263d94b01ae274a2ad4b946386cb4d6ef62c069ac56df4d2b3586bd |
File details
Details for the file lifeomic_chatbot_tools-5.1.0-py3-none-any.whl
.
File metadata
- Download URL: lifeomic_chatbot_tools-5.1.0-py3-none-any.whl
- Upload date:
- Size: 38.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.8.13 Linux/5.15.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fe22658b8c4f595bbee06004f1e8aebeaa2b85b92bdc7289f2260901c993d64 |
|
MD5 | 96eec12cc5fc9f35abb3f6bd623e7955 |
|
BLAKE2b-256 | de062e3b52c06f8d3e9ba79527f41e4565e3b3e8d224198b2db95aaf08c6595f |