Skip to main content

Bincache is a command-line utility designed to cache the output of executable binaries and shell commands.

Project description

Bincache

Build Status PyPI License Issues PRs Welcome

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), default 5G
  • log_file: Path to the log file, default empty
  • log_level: Logging level (INFO, DEBUG, WARNING, ERROR, CRITICAL), default INFO
  • stats: Enable or disable statistics, default false

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bincache-0.0.15.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

bincache-0.0.15-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file bincache-0.0.15.tar.gz.

File metadata

  • Download URL: bincache-0.0.15.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for bincache-0.0.15.tar.gz
Algorithm Hash digest
SHA256 740a16aeb2a25915999e107981bfe2484d1eea2037946753d56f43efe44c6d1d
MD5 e7bde700e4042676ef58550fa908dda3
BLAKE2b-256 896e27e26f6b2c1d66d7185f797eec7b63549801f2e1a2dc3f2b6f49bbcbf9fa

See more details on using hashes here.

File details

Details for the file bincache-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: bincache-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for bincache-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 5d79f71c6feb119bb66890d3f4f05c12c0e50104c5865345facf41ee6f2e2fde
MD5 c0d1a0625ba8c9b8aa020d59bdffe00f
BLAKE2b-256 198eb9a4c190fcd03a61cff4c338053864315efc36dc9552d85bc2b9a01849f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page