Bincache is a command-line utility designed to cache the output of executable binaries and shell commands.
Project description
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), default5G
log_file
: Path to the log file, default emptylog_level
: Logging level (INFO, DEBUG, WARNING, ERROR, CRITICAL), defaultINFO
stats
: 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.
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
File details
Details for the file bincache-0.0.12.tar.gz
.
File metadata
- Download URL: bincache-0.0.12.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d68d7a1a7670fca8f8320a57853ad11b3b07c81ef46b85c71a8a0ddce4b7b7eb |
|
MD5 | bf286efdd195b7401acce94479e381ec |
|
BLAKE2b-256 | a7ba959f29c8f67f5bea8e1d27a6d6922dee77cb15c2325db58da52c7ca30686 |
File details
Details for the file bincache-0.0.12-py3-none-any.whl
.
File metadata
- Download URL: bincache-0.0.12-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aae124c9a96b0666d4d99fe45ac8188ba8fc53a13f305409aaafae888828d27 |
|
MD5 | cbf4901bac613b9de50328d968e0d29e |
|
BLAKE2b-256 | 86e4e3a02dac4ab443d830390284c018c4bd0e88ed7f46e990b4df19e8dc9ab5 |