Skip to main content

preview

Argenta is a simple and elegant framework for building modular CLI applications. It provides a clean and intuitive way to create context-aware command-line tools with isolated command scopes.

Argenta is the "Simplest", "Most Modular", and "Most Elegant" way to build interactive CLI applications in Python.

📖 Read the full documentation: argenta.readthedocs.io
🌍 Other languages: RU


preview

Argenta allows you to build interactive CLI applications incredibly easily. There's no need to manually parse complex command structures or manage state transitions — just use routers and commands!

✨ Installing Argenta

Argenta is available on PyPI:

$ python -m pip install argenta

or using uv:

$ uv add argenta

Argenta officially supports Python 3.12+.

🚀 Supported Features & Best Practices

Argenta is ready for the demands of building scalable, robust and maintainable CLI applications.

  • Interactive Sessions: Unlike traditional CLI tools, Argenta creates cyclic sessions, allowing users to execute commands sequentially without restarting the application.
  • Declarative Syntax: Commands and their handlers are declared using simple decorators, making the code intuitive and allowing you to focus on "what" you want to do, not "how".
  • Native DI: Thanks to integration with dishka, you can easily inject dependencies directly into command handlers, simplifying testing, avoiding mutable globals, and much more.
  • Automatic Validation and Parsing: The library handles command-line flags and arguments processing, including parsing, validation, and type conversion.
  • Flexible Configuration: You can easily customize system messages, output formatting, create custom handlers for non-standard behavior, and more.

Need something more? Create an issue, we're open to suggestions.

📝 Why did we create this?

Building complex CLI applications often requires managing different contexts and command scopes. For example, when creating a utility similar to the Metasploit Framework, users need to enter specific scopes (like selecting a scanning module) and then access commands specific only to that context.

Traditional CLI frameworks don't provide an elegant way to handle this kind of modular, context-aware architecture. Argenta was built to solve this problem by providing a simple and concise way to encapsulate CLI functionality in isolated, abstracted environments.

We believe that building CLI applications should be as pleasant as building web applications with modern frameworks. Argenta brings the router pattern and clean separation of concerns to the CLI world.

🚀 Quick Start

Here's a simple example to get you started:

# routers.py
from argenta import Router, Response
from argenta.command import Flag, Command

router = Router()

@router.command(Command("hello"))
def handler(response: Response):
    """A simple hello world command"""
    print("Hello, world!")

@router.command(Command("greet", flags=Flag('name')))
def greet_handler(response: Response):
    """Greet a user by name"""
    name_flag = response.input_flags.get_flag_by_name('name')
    if name_flag:
        print(f"Hello, {name_flag.input_value}!")
    else:
        print("Hello, Stranger!")
# main.py
from argenta import App, Orchestrator
from .routers import router

app = App()
orchestrator = Orchestrator()

def main() -> None:
    # Include your routers
    app.include_router(router)
    
    # Start the interactive CLI
    orchestrator.start_polling(app)

if __name__ == '__main__':
    main()

That's it! You now have a fully functional interactive CLI application.

📚 Documentation

Full documentation is available at argenta.readthedocs.io


MIT 2025 kolo | made by kolo

Metadata

Release files for argenta 1.3.0

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

Source distribution (sdist)

Source distribution for argenta 1.3.0
File Size Uploaded Provenance Actions
argenta-1.3.0.tar.gz 28.4 kB With provenance Details for argenta-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for argenta 1.3.0
File Interpreter ABI Platform Actions
argenta-1.3.0-py3-none-any.whl Python 3 none any Details for argenta-1.3.0-py3-none-any.whl

Total release size: 76.4 kB

Release files / argenta-1.3.0.tar.gz

Download URL argenta-1.3.0.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1cea7c446c410094184e96fb11ecf2d31b617718cb67176c27eeed7162cd9d5e
BLAKE2b-256 checksum
How to use checksums
15c2095657930161add4e6ce42fab8da5629aec3d1cbf5352b5c9f1d7346a86f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / argenta-1.3.0-py3-none-any.whl

Download URL argenta-1.3.0-py3-none-any.whl
Size 48.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51a1fbf0c06572c0b08983397c85efdd060235aa00b5c30a8f2475f13c582e37
BLAKE2b-256 checksum
How to use checksums
e22751a630ca662bbfb02df9ceadbd4b90d404e02c00956b7ddea09eb756b8e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Security for argenta 1.3.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for argenta-1.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files Full provenance

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