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 --all-extras
Testing Locally
With Yarn, Docker, and docker-compose installed, run this command from the project root:
poetry run poe ci
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 pyproject.toml
file for the command names.
MacOS Users
When developing using MacOS, it is recommended to use a dev container. This project supports VS Code dev containers out of the box.
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 and release the package to pypi with that version once the PR is
merged to master
.
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-8.1.0.tar.gz
.
File metadata
- Download URL: lifeomic_chatbot_tools-8.1.0.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b5de5e327c25b11915c153de235d3eeece67233ec8521f757f300eec64bb871 |
|
MD5 | 5e9d244af6e8d778ac2642c803417f8f |
|
BLAKE2b-256 | 582c61a4db705c0626fedb0073734c30d46362cb8441a3b47b0c92da40cf296f |
File details
Details for the file lifeomic_chatbot_tools-8.1.0-py3-none-any.whl
.
File metadata
- Download URL: lifeomic_chatbot_tools-8.1.0-py3-none-any.whl
- Upload date:
- Size: 37.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 540649424dd5c8ef0fb00535aa6af401660baa473d5e3ee982899c029d10d4f7 |
|
MD5 | 269c4e5ad920eb5f518b62764bed45a3 |
|
BLAKE2b-256 | 230cfd35b785c7b76aa6685b6c68ff7f7eedd7b3d9fea4d2e14fb55273d7c419 |