Skip to main content

Mod = (Mojo Dep)

English | 简体中文

Intro

  • Mojo Package Manager Tool
  • like:
    • Rust: Cargo
    • Python: Pip/Poetry/PDM
    • Go: Dep + Vendor

Quick Start

  • ✅ requirements:
    • mojo 0.6+
    • python 3.10+
    • git
mojo -v            
mojo 0.6.1 (876ded2e)

python --version                                                                                                                                          07:27:03
Python 3.10.9
  • ✅ install mod:
pip install mod-cli

# or
poetry add mod-cli --dev
  • ✅ Usage: (Using the mod command)
    • mod new: create a new mojo project
      • --lib: Create a library project.
      • --bin: Create an application (executable binary).
    • mod init: Create a new mojo package in an existing directory
    • mod build: build a mojopkg
    • mod install: download mojo dependencies to target/deps
    • mod hack:
      • mod hack build: build target/deps dependencies into mojopkg
      • mod hack install: install target/deps dependencies to `mojo standard library path
      • mod hack uninstall: uninstall target/deps dependencies
      • mod hack clean: Clean the mojopkg (binary library) generated by compiling target/deps.
    • mod run: Run a mojo file.
    • mod test: Run unit tests.
    • mod add: Add a dependency.
    • mod remove: Remove a dependency.
    • mod list: List all dependencies.
    • mod search: Search for dependencies (fuzzy search).
    • mod sync: Sync dependencies.
    • mod lint: Code style check.
    • mod publish: Publish a mojo project.
    • mod workspace: Manage monorepo workspaces.
      • mod workspace init: Initialize a workspace.
      • mod workspace list: List workspaces.
      • mod workspace add: Add a workspace.
      • mod workspace remove: Remove a workspace.
    • mod self: Manage itself.
      • mod self update: Update the mod command itself.
    • mod help: Show help information.
mod --help

Manual

  • mod cmds

✅ Create a new project

  • like cargo new style:
# new a libary
mod new your/path/to/project --lib

# new a app
mod new your/path/to/project --bin

❎ Build Mojo Package

  • ❎ TODO
mod build

References

package manager

Release files for mod-cli 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mod-cli 0.1.2
File Size Uploaded
mod_cli-0.1.2.tar.gz 52.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mod-cli 0.1.2
File Interpreter ABI Platform
mod_cli-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size:111.7 kB

Release files / mod_cli-0.1.2.tar.gz

Download URL mod_cli-0.1.2.tar.gz
Size 52.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e0503a50d25463e6d01d28c7480c9c455c1f849536e28e41f275713643a7899e
BLAKE2b-256 checksum
How to use checksums
403d82b56bc1ff1b4cd12b2587275986fa3aa34211baf0e0e6f6ae3a641cd942
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.9 Darwin/21.6.0

Release files / mod_cli-0.1.2-py3-none-any.whl

Download URL mod_cli-0.1.2-py3-none-any.whl
Size 58.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6216242fc39994ad895b5278a5316229990cdb016b560bc35f82257e731dfb3
BLAKE2b-256 checksum
How to use checksums
f3ab0cec2e04e352201a185f3c295fe74ce17e01e7b26e6065d4f3ee7cfee8e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.9 Darwin/21.6.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page