Python library for building modular CLI applications
Project description
Argenta
Library for creating modular CLI applications
RU - README.ru.md • DE - README.de.md
Argenta allows you to encapsulate CLI functionality in isolated, abstracted environments. Eg: you are creating a utility similar to the Metasploit Framework, where the user first logs into a specific scope (for example, selects a module to scan), and then gets access to a set of commands specific only to that context. Argenta provides a simple and concise way to build such an architecture.
Installing
pip install argenta
or
poetry add argenta
Quick start
An example of a simple application
# routers.py
from argenta.router import Router
from argenta.command import Command
from argenta.response import Response
router = Router()
@router.command(Command("hello"))
def handler(response: Response):
print("Hello, world!")
# main.py
from argenta.app import App
from argenta.orchestrator import Orchestrator
from routers import router
app: App = App()
orchestrator: Orchestrator = Orchestrator()
def main() -> None:
app.include_router(router)
orchestrator.start_polling(app)
if __name__ == '__main__':
main()
Features in development
- Full support for autocompleter on Linux
Full docs | MIT 2025 kolo | made by kolo
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 argenta-1.1.2.tar.gz.
File metadata
- Download URL: argenta-1.1.2.tar.gz
- Upload date:
- Size: 12.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b320f038100dce61f6351d1d76e29f7c4753d3e0c83d85909b4c416b51f27abe
|
|
| MD5 |
74cf812ad3605d310ac01fb98cbd952f
|
|
| BLAKE2b-256 |
fb26b54ebb8fb2abf6bd39cd105b899e4e2d321652c084d897570422f00f4cf0
|
File details
Details for the file argenta-1.1.2-py3-none-any.whl.
File metadata
- Download URL: argenta-1.1.2-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bd5a094762e82f414d70d15ec732018914b7d8047eab6391ac68f8541e23709
|
|
| MD5 |
91b24fccb9cd759fa042b915d4358580
|
|
| BLAKE2b-256 |
35b0ea47d136dba4173d1f5e8d781f1ea7530e8f7dbb99a55abfd45e80b4c76d
|