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.3.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

mozmlops-0.1.3-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mozmlops-0.1.3.tar.gz
  • Upload date:
  • Size: 28.4 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.3.tar.gz
Algorithm Hash digest
SHA256 e34f8cbb7aa4f83b16485ccbc59d53262cbab83814a92f5731f7c8378ed65524
MD5 957ef997e420e5285227095ebc8c23e2
BLAKE2b-256 113ab6c1936bbd7c8f3313c009d850cf461428819e303487a4fcf8bdc74c04a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mozmlops-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 28.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 febef1253da1e5cceb46bde4fc478c5177b5eaff19f4150dfbc72aa3016ac9b9
MD5 40ec095960ff145ebf19d8b70f502f50
BLAKE2b-256 d29457d9d8f0b9d855ad32f060ae805e25ddac0229d9d0ac378529a72a5403d6

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