Bincache
Bincache is a command-line utility designed to cache the output of executable binaries and shell commands.
Installation
pip install bincache
Usage
Execute commands through bincache to cache their output.
Basic Usage
bincache <binary_or_command> <arg1> [arg2 ... argN]
Examples
Cache the output of the date command:
bincache date
Cache the output of a binary executable:
bincache ./a.out -l -a
Configuration
Bincache can be configured using a configuration file bincache.conf. The default configuration file is expected to be located at $HOME/.cache/bincache/bincache.conf.
Configuration Options
max_size: Maximum cache size (e.g., 5G for 5 Gigabytes), default5Glog_file: Path to the log file, default emptylog_level: Logging level (INFO, DEBUG, WARNING, ERROR, CRITICAL), defaultINFOstats: Enable or disable statistics, defaultfalse
Example bincache.conf:
max_size = 5G
log_file = /var/log/bincache.log
log_level = INFO
stats = false
Environment Variables
BINCACHE_DIR: Override the default cache directory.
Contributing
To contribute to Bincache, fork the repository, make your changes, and create a pull request. Please ensure that your changes are well-tested by run pytest.
License
Bincache is licensed under the MIT License. See the LICENSE file for more information.
Metadata
Release files for bincache 0.0.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bincache-0.0.16.tar.gz | 13.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bincache-0.0.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.4 kB
Release files / bincache-0.0.16.tar.gz
| Download URL | bincache-0.0.16.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73dc65189387676cd466be1d3e167d144fb522306fc02c2f0efbf636a17a3a47
|
|
BLAKE2b-256 checksum How to use checksums |
d55c8d5ea278a69d20ad2fd10ebb3c7b201d2c5a68db991e5253750a4a9d7485
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / bincache-0.0.16-py3-none-any.whl
| Download URL | bincache-0.0.16-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e80e2c9f2c0ea2fe35ba0f40eb65aeffb662f890fd694f6c5cee5809fb3bb73
|
|
BLAKE2b-256 checksum How to use checksums |
e9b148b76a94b4e9b6f02194c6242381207c619858bd3e3e757d371355ce6ada
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|