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 now, we're not distributing to a package index. But you can install locally! We use a local build manager called poetry for this.
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.1.tar.gz
.
File metadata
- Download URL: mozmlops-0.1.1.tar.gz
- Upload date:
- Size: 13.1 kB
- 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 | 02500cdc305d3dd923384f68690adcc96d821779e3962af02d0c5d9ed62a7948 |
|
MD5 | a0547494543ac67fc5567ab5dec73353 |
|
BLAKE2b-256 | 388234e9c67c356abcb5a185f71e22ed1c940fa520af40f457b267908e2ed556 |
File details
Details for the file mozmlops-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: mozmlops-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- 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 | 3f439f299167ab0e9843a032496f1d177826cc61dd9e20335efa801ac986e615 |
|
MD5 | 1ba289f61ac0e463d4545b2675cb1032 |
|
BLAKE2b-256 | 2185f3cdbc3f6a1483805bc2b62dc0fea213a4d886c847656dce92e0d669746d |