Skip to main content

ML-MAID : ML - Miniature Automatic Installer for Dependencies

Project description

ML-MAID : ML - Miniature Automatic Installer for Dependencies

  • Install dependencies without having to issue a zillion pip install commands.
  • Re-implement ML-Maid compliant workflows and repositories without a sweat.
  • No need to use Conda and Docker unless you really have to.
  • Requirement files don't solve the problem.
  • Setup CUDA automatically.

Why ML MAID ?

ML Maid aimed to be a complete and unique tool that aims to automatically install dependencies in Python with specific focus on ML environments. It aims to solve the problem of environment re-creation from old code without the hassle of manually building docker containers unless really required. The idea behind ML-Maid is to implicitly enforce checks to keep the environment setup as simple as possible, so that it is easy to replicate. It also aims to completely automate the environment replication process. It aims to keep the environment simple starting from the production phase of the software life-cycle to save developer time.

Is ML-Maid a Replacement for Docker / Conda / Python Venv : NO

ML Maid aims to automate the use of tools like Docker / Conda / Python venv without adding any additional complexity so that the developer can focus on writing code.

Installation

pip install mlmaid

Usage

⚫ In your main Python script add the following to automatically install / check the dependencies before any other code is run:

from mlmaid import install
install(script_path=__file__, python_version='3.10.12', sys_reqs=['cuda==11.8'])

(Change Python version and cuda version according to your requirements)

⚫ Import your modules

import my_local_module # local_module
from PIL import Image # pillow==1.0.2
  • Add the # local_module tag to modules that are local imports
  • If a module's import name is different from its installation name, just add the installation name as a comment
  • By default the latest version of all (non-local) modules will be installed, if you want a specific version, specify it as a comment after import statement. like : import PIL # pillow==1.0.2

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

mlmaid-0.1.2.1.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

mlmaid-0.1.2.1-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file mlmaid-0.1.2.1.tar.gz.

File metadata

  • Download URL: mlmaid-0.1.2.1.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for mlmaid-0.1.2.1.tar.gz
Algorithm Hash digest
SHA256 1aa44361c8e565aa9cb10eb8465e03486854cb3315342b9212891ca56dc82b7a
MD5 b157b3cb320d3695fd0ec17184117785
BLAKE2b-256 d9a06f22e9f2d384d7ec2fb3857b2bb285b204348a871bd509062a66f9d555ee

See more details on using hashes here.

File details

Details for the file mlmaid-0.1.2.1-py3-none-any.whl.

File metadata

  • Download URL: mlmaid-0.1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for mlmaid-0.1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df12916d3ced5c0708f5a2684519ad0271eb7bdcb2e2a894a6000903a33ad7cd
MD5 93ebd196343891e4833e95f07b5b70bd
BLAKE2b-256 50a8ce365e2e1a8349770f95cf3c8d40e839f62742cdf87d2a08f9c3121bd82e

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