Better command line programs in production, no need to worry, this is a lib, not a framework.
Project description
Rocky
A collection of small libs for better command line programs in production setting. This is not a framework, use a small bit or everything.
Traceable config, no more searching for where the config was set. Read them from config file, python file, plain file, command line, environment or somewhere you choose. Dump all config to the log at once or at first use.
Handling of pid files, creating, removing and checking.
Stop gracefully on a single sigint, but die hard when spamming them.
Argparsing can be done by a number of other libs, not included here, personally I like argparse and have added a couple of useful functions related to it.
Adding to sys.path, replace two lines of code with one line of code.
Project details
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
File details
Details for the file rocky-1.0.2.tar.gz
.
File metadata
- Download URL: rocky-1.0.2.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95ef76a0cd69ce2bac55d3a44ec28a6f64bf85bce62ae18b41280ce276677da8 |
|
MD5 | f8c03dab2e8d5f72b752671b20c6227e |
|
BLAKE2b-256 | 3438b206f76bbb74b85834201ccf5554acb751adf972152e92f05a9bc95f1555 |
File details
Details for the file rocky-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: rocky-1.0.2-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96968cca80e9b02ba138ab0bf0cab6183a26bcbf9c4e714898a388ecfcaf5999 |
|
MD5 | 55b0cd025040d8fe5aee1a2be455c992 |
|
BLAKE2b-256 | 592e6b11dffcbe33b52b53d2873a313f9e1fa6947b7d46205c0e964a94311ccc |