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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bincache-0.0.13.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.13.tar.gz
Algorithm Hash digest
SHA256 b90b14fa2036610d4dd13b4bc0ff627d7de555a360861964e5ace0b1b833f7c7
MD5 5d1f8c345b0b40fab7d563a23829cdc4
BLAKE2b-256 6d2deec3d634f49cf30874d02f3854e73298960571a8987e6bdae1be92fa3d16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bincache-0.0.13-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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 ce769519cd760537f13d49bf446fcc5896a378125a21b379a5d9ae3eaaa0eb2c
MD5 4078f98b7e565d121209f587a5791e34
BLAKE2b-256 3c969c8fab6095fbd418e7257dd8cba04104be9ba9ea65c5abd87e4ad2646e28

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