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
Built Distribution
File details
Details for the file mlmaid-0.1.2.3.tar.gz
.
File metadata
- Download URL: mlmaid-0.1.2.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 117d9a10e211216ac7e7476f76ab35116efa3e014472f2512e094a39f93d9f5b |
|
MD5 | 5ff8fe71fa9ca6183b0f3dab4c08f578 |
|
BLAKE2b-256 | c37db797ca58316a53cf26f53221e368160cd0ece5761864624f04e101c996f4 |
File details
Details for the file mlmaid-0.1.2.3-py3-none-any.whl
.
File metadata
- Download URL: mlmaid-0.1.2.3-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb8da5475c30560ab6416b44d54769ba6247be2881ba49f090e4dd47c7980111 |
|
MD5 | 1b43bef185d05a380e3475802503fc64 |
|
BLAKE2b-256 | a456453eaa5d7e86bcc4304e1375c465af29ae8478db7e3cc6d8dbb7b7aba979 |