Skip to main content

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:

  1. Clone this repository
  2. cd into the repository
  3. Start up a virtual environment:
python -m venv env
source env/bin/activate
  1. python -m pip install poetry
  2. 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

mozmlops-0.1.2.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

mozmlops-0.1.2-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file mozmlops-0.1.2.tar.gz.

File metadata

  • Download URL: mozmlops-0.1.2.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

Hashes for mozmlops-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7c510f3019205dc781430bdf9831369ea24ae65f2e6cbe4401278c13634bf341
MD5 10746581a0a2762a3a2931d7bc2c9165
BLAKE2b-256 5bc0b2172a783792bcc5d46836115a6ced149e4bfc540e273dd8a737b4dfc415

See more details on using hashes here.

File details

Details for the file mozmlops-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mozmlops-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.1 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

Hashes for mozmlops-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 53bcf626240a1a9717bb40f3cba00cac434bf60e5f623d8811aed50a38752e52
MD5 7077a09a5d276d81699b004e5dba9c39
BLAKE2b-256 9aed0b52e3a4c01227ac9246b9dff03fab4ac3f49790cec19ec9d7a249d88feb

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