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

Uploaded Source

Built Distribution

mlmaid-0.1.2.2-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlmaid-0.1.2.2.tar.gz
  • Upload date:
  • Size: 23.1 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.2.tar.gz
Algorithm Hash digest
SHA256 6b4eac23d8a912e1fd6fa4d6b2c9201b257d7490f2a5a705560798cbfb9187a6
MD5 be7c545c47cc3e1010c67ccd13327491
BLAKE2b-256 e1dca55a1d23350b12031d99478395d5e161354a1c124a47668e6d2c5270bedc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlmaid-0.1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 22.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 efab288e24087f1b341f087541e027bcd52ee31dbfc53d50b0017958f6b5e690
MD5 2a7fe09ddc59bea67e5a59a90abd517f
BLAKE2b-256 970aaeb3d96dcea45139a47e526d95f6167a2f7d93aeff4697559a9d0d4e8aed

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