A package for getting your models into production
Project description
mozmlops
A package for getting your models into production!
For the Model Orchestration/Experiment Evaluation Flow Template
You'll find a README in the src/mozmlops/templates directory!
Installation for use
You can install the library with pip install mozmlops
.
Installation for local testing and contributing
Steps:
- Clone this repository
cd
into the repository- Start up a virtual environment:
python -m venv env
source env/bin/activate
python -m pip install poetry
poetry install
Running tests
Linting:
Run ruff check
to find style issues and ruff check --fix
to fix many automatically.
Unit tests:
Run pytest
from the top-level directory.
Integration tests:
You need to be logged into GCP to run the integration tests; you can use the gcloud CLI command gcloud auth login
.
Run the integration tests with pytest -m integration
.
Usage
An example import line (in fact, the only one currently implemented) would be:
from mozmlops.storage_client import CloudStorageAPIClient
at the top of your favorite Python file, or in a python console.
From there, you can try running this line:
store = CloudStorageAPIClient('some-project-name', 'some-bucket-name')
To make sure the import worked.
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
mozmlops
was created by Mozilla MLOps. It is licensed under the terms of the Mozilla Public License.
Credits
mozmlops
was created with cookiecutter
and the py-pkgs-cookiecutter
template.
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
Built Distribution
File details
Details for the file mozmlops-0.1.4.tar.gz
.
File metadata
- Download URL: mozmlops-0.1.4.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.0 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fd34230e0d287f9eef7eb444160cc5bbb52ace5160771c0cfa15f50080322aa |
|
MD5 | d224907978411699398a3d939db2bcca |
|
BLAKE2b-256 | c34752e6ff3f7a874e58520c5cd8fe6201306cc4745177e559469e380c32d093 |
File details
Details for the file mozmlops-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: mozmlops-0.1.4-py3-none-any.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.0 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ce0f88cc201347b87b090f104216404d369e7fe479c5b82e5f1b586c9a05ed1 |
|
MD5 | 0db60c503ffc0728e08ea88425d6989a |
|
BLAKE2b-256 | 38cefaca15bd830fedee811e9e8c0939d5b623529aa09dc47a2d12eea7bc5714 |