am3
AM3 = Application Manager written with python 3
English | 中文
A command-line tool for managing and monitoring applications.
🦮 Table of Contents
- am3
- 🙏 Acknowledgements
🔧 Installation
Python 3 is required, which should be available on most modern Linux distributions.
Install am3 with this command:
pip install am3
After installation, you can use either the am or am3 command.
📖 Basic Usage
List Applications
Retrieve and display information about running applications, including their name, ID, and other details.
am list
# or use the shorthand
am ls
Display more detailed information:
am list --all
Start an Application
There are multiple ways to start an application:
1. Start a registered application by ID
am start 0
2. Start a new application
am start --start "ping" --params "127.0.0.1"
3. Start using a configuration file
am start --conf example/counter_config.json
4. Start all applications
am start all
Start options:
--startor-s: Specify the target path--interpreteror-i: Specify the interpreter path--working-directoryor-d: Specify the working directory--paramsor-p: Specify command parameters--nameor-n: Specify application name--restart-control/--no-restart-control: Control whether to restart the program
Stop an Application
Stop a running application by ID:
am stop 0
Stop all applications:
am stop all
Restart an Application
Restart a specific application by ID:
am restart 0
Restart all applications:
am restart all
Delete an Application
Remove an application from the management list:
am delete 0
Delete all applications (will prompt for confirmation):
am delete all
View Logs
View AM3's own logs:
am log
View logs for a specific application:
am log 0
Continuously view logs (similar to tail -f):
am log 0 --follow
Specify the number of lines to display:
am log 0 --lines 100
Save and Load Application List
Save the current application list configuration:
am save
Load application list from saved configuration:
am load
⚙️ Advanced Features
Configuration Files
You can save application configurations to a file for reuse:
am start --start example/counter.py --interpreter python3 --generate example/counter_config.json
Then start the application using the configuration file:
am start --conf example/counter_config.json
Auto Restart
AM3 supports automatic restart based on keywords or regular expressions:
am start --start example/counter.py --restart-keyword "Exception" --restart-keyword-regex "Error.*"
Set restart wait time:
am start --start example/counter.py --restart-wait-time 3
API Service
Initialize the API service:
am api init
Start the API service:
am api start
Stop the API service:
am api stop
Startup on Boot
Set AM3 to start on system boot:
am startup
🔄 Command Reference
Global Commands
am --version: Display version informationam --help: Display help information
Application Management Commands
am list: List applicationsam start: Start an applicationam stop: Stop an applicationam restart: Restart an applicationam delete: Delete an applicationam log: View logsam save: Save application listam load: Load application listam startup: Set startup on boot
API Service Commands
am api init: Initialize API serviceam api start: Start API serviceam api stop: Stop API service
🙏 Acknowledgements
Thanks for the great IDE Pycharm from Jetbrains.
Metadata
Release files for am3 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| am3-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for am3-1.1.1-py3-none-any.whl |
Release files / am3-1.1.1-py3-none-any.whl
| Download URL | am3-1.1.1-py3-none-any.whl |
|---|---|
| Size | 46.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1366f59e67b156756fbe2891310de8b53522bf0153c26e116a2296067ecd8371
|
|
BLAKE2b-256 checksum How to use checksums |
f818507e20c76acc8eb451c03fb5d5270863f0bec532b91cdff8f20ceefd34bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for am3 1.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.