Skip to main content

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:

  1. Finds <site-packages>/mojo_packages/ via sysconfig.
  2. Injects -I so mojo sees installed .mojopkg files.
  3. Augments LD_LIBRARY_PATH / DYLD_LIBRARY_PATH for native libs in <pkg>/lib.
  4. Hands off to mojo._entrypoints.exec_mojo (the same entry point the bundled mojo binary 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 via uv add.

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

mojox-0.2.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mojox-0.2.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

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

Hashes for mojox-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3461797d0f83f8d04779be9bf3cae85530772cc6797fcd2f96f60f8aa3c53298
MD5 3e60f15819c85100833da8fca9f7a06b
BLAKE2b-256 1f7669013eaec349f9dd09ede18e5e9ff2d1e10fcc3bed0d02207f2e0519f366

See more details on using hashes here.

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

Hashes for mojox-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2e53f450cfcb8c7184822c3d2be53c4fd2b36f0281376299e1f2067651bdaea
MD5 12e638c8855a953c8d16ffc27b564f74
BLAKE2b-256 6cecd2b274ddfc2c54628d5dffb13c6cd44c398b0b2558a43073bd0388ebad57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page