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.14.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

bincache-0.0.14-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bincache-0.0.14.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.14.tar.gz
Algorithm Hash digest
SHA256 9435cb0096a76a136ba7b700c7baab0da01fc6dc9d803fbef6ac9080125bc333
MD5 d81bc08d53929402143fb7190a4d477c
BLAKE2b-256 4f5b3f0e3ab64586909781a89d4c3095d446ccc1604ec464509a60f80460da2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bincache-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 13.9 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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 802601e509ff02ab07b7b50fd2ed6bfcf22947c11ec261c858c4babb76a5a50e
MD5 4eaf00b8b28b0a99e7511746891c6b12
BLAKE2b-256 0b37862e19591ff3a375bfd91bd80c955637b09bdc70e53e204785496988f311

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