CLI wrapper for Mojo with automatic package discovery
Project description
mojox
CLI wrapper for Mojo with automatic package discovery.
mojox is ~15 lines of Python. On every invocation it:
- Finds
<site-packages>/mojo_packages/viasysconfig. - Injects
-Isomojosees installed.mojopkgfiles. - Augments
LD_LIBRARY_PATH/DYLD_LIBRARY_PATHfor native libs in<pkg>/lib. - Hands off to
mojo._entrypoints.exec_mojo(the same entry point the bundledmojobinary uses).
Install
uv add mojox # in a project
uv tool install mojox # globally
mojox depends on mojo-compiler, which is installed automatically.
Usage
uv run mojox run my_app.mojo
uv run mojox build my_app.mojo
uv run mojox test tests/
uv run mojox package my_lib -o my_lib.mojopkg
Subcommands that get -I injected: run, build, package, test, repl, doc, format, debug.
Top-level flags (mojox --version, etc.) pass through untouched.
See also
mojox-build— PEP 517 build backend so Mojo libraries can be packaged as wheels and consumed viauv add.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mojox-0.2.0.tar.gz.
File metadata
- Download URL: mojox-0.2.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3461797d0f83f8d04779be9bf3cae85530772cc6797fcd2f96f60f8aa3c53298
|
|
| MD5 |
3e60f15819c85100833da8fca9f7a06b
|
|
| BLAKE2b-256 |
1f7669013eaec349f9dd09ede18e5e9ff2d1e10fcc3bed0d02207f2e0519f366
|
File details
Details for the file mojox-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mojox-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2e53f450cfcb8c7184822c3d2be53c4fd2b36f0281376299e1f2067651bdaea
|
|
| MD5 |
12e638c8855a953c8d16ffc27b564f74
|
|
| BLAKE2b-256 |
6cecd2b274ddfc2c54628d5dffb13c6cd44c398b0b2558a43073bd0388ebad57
|