aioconsole
Simple python library for creating async CLI applications
Explore the docs »
Getting Started
·
Basic Usage
·
License
Getting Started
aioconsole is available on PyPI. Simply install the package into your project environment with PIP:
pip install pyaioconsole
Usage Examples
import asyncio
from pyaioconsole.app import Application
from pyaioconsole.app import Settings
settings = Settings(
APP_NAME="Example App",
BRIEF="Short brief description",
LONG_DESC="aioconsole library example application",
)
app = Application(settings)
@app.command(help="Say hello")
@app.argument("name", help="name")
async def hello(name: str):
print(f"Hello, {name}!")
@app.command(help="Say bye")
@app.argument("name", help="name")
async def bye(name: str):
print(f"Bye, {name}!")
async def main():
await app.run()
if __name__ == "__main__":
asyncio.run(main())
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyaioconsole-0.1.1.tar.gz
(4.2 kB
view details)
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 pyaioconsole-0.1.1.tar.gz.
File metadata
- Download URL: pyaioconsole-0.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.8.3 CPython/3.12.7 Linux/6.12.0-1-cachyos
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a41e4bc6b788d74c1757835ecb26af7bae0729fa5fa57ed970cb9961622a7a11
|
|
| MD5 |
87a46abfe992413a5345de701cc30861
|
|
| BLAKE2b-256 |
7254e19542d881e45d0cfab03e721910710d5990b2a460250cfcc5502b899582
|
File details
Details for the file pyaioconsole-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyaioconsole-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.8.3 CPython/3.12.7 Linux/6.12.0-1-cachyos
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fea43d90e7657ae25cfd1dcb07efe2007cfdc638af67f004bb387bd690f3d35
|
|
| MD5 |
099cbbfc3d0111bac06406e775362cf9
|
|
| BLAKE2b-256 |
c5d45a1cdd10e3f86740b7d20000358232723a06517227c46dcc3fab1aabb635
|