MirageML Python Library
The MirageML Python Library provides a convenient interface to run AI in the terminal using your files or web documentation as context.
Installation
This requires Python 3.9 or later. Install the package with:
pip install -U mirageml
Tutorial
You can run mirage tutorial to get started with MirageML. This will walk you through the process of creating a source, adding files to it, and using it to chat with MirageML.
Usage
You can use 'mirageml', 'mirage', or 'mml' to call the package.
mirage [OPTIONS] COMMAND [ARGS]
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ chat Chat with MirageML │
│ login Login to Mirage ML │
│ tutorial Walk through the basics of using mirageml │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Manage Resources ───────────────────────────────────────────────────────────╮
│ add Add a new resource │
│ delete Delete resources │
│ list List resources │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Utils and Configs ──────────────────────────────────────────────────────────╮
│ config Manage the config │
╰──────────────────────────────────────────────────────────────────────────────╯
Chat Commands
mirage chat [OPTIONS]
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --files -f TEXT Path to files/directories to use as context. │
│ │
│ mml chat -f {filepath} -f {directory} │
│ [default: None] │
│ --urls -u TEXT URLs to use as context. │
│ │
│ mml chat -u {url1} -u {url2} │
│ [default: None] │
│ --sources -s TEXT Specify sources: │
│ │
│ Ex: mml chat -s modal -s electronjs │
│ │
│ Sources: │
│ │
│ • modal │
│ • electronjs │
│ • notion │
│ [default: None] │
│ --system-prompt -sp TEXT Name of the system prompt to use │
│ [default: None] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
Contributing
If you want to contribute to MirageML, follow these steps:
- Fork the repository: Click on the 'Fork' button at the top right corner of the repository page on GitHub.
- Clone the forked repository to your local machine.
git clone https://github.com/<user_name>/mirageml_pip.git - Create a new branch for your changes:
git checkout -b <user_name>/your-branch-name - Review the CONTRIBUTING.md file for details on installing pip pacakages, testing, and linting.
- Make your changes in this branch.
- Commit your changes:
git commit -m "Your commit message" - Push your changes to your forked repository:
git push origin your-branch-name - Create a Pull Request: Go to your forked repository on GitHub and click on 'New Pull Request'.
Please provide a clear and concise description of your changes in the pull request description.
Support
Send an email to support@mirageml.com for support.
Metadata
Release files for mirageml 1.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mirageml-1.1.6.tar.gz | 23.4 kB | Without provenance | Details for mirageml-1.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mirageml-1.1.6-py3-none-any.whl | Python 3 | none | any | Details for mirageml-1.1.6-py3-none-any.whl |
Total release size: 54.5 kB
Release files / mirageml-1.1.6.tar.gz
| Download URL | mirageml-1.1.6.tar.gz |
|---|---|
| Size | 23.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0880ed74cf0fec85c7a0e3451444ccab5c1db565554395f120a62c3a5a2392f0
|
|
BLAKE2b-256 checksum How to use checksums |
ba6722b4cb8f938b7e0bf057fab337d0bc58c317bb2889a0708d86aae2c54cdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / mirageml-1.1.6-py3-none-any.whl
| Download URL | mirageml-1.1.6-py3-none-any.whl |
|---|---|
| Size | 31.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bdccf4b7e532a31af295311d89290b81387c5899e7e9d87b9f0b85e455f6680a
|
|
BLAKE2b-256 checksum How to use checksums |
3f46e97902952f7b23c70a6bb110edbda4af1b1a2c337a5095c8a7e631494d64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for mirageml 1.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.