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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bincache-0.0.16.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.16.tar.gz
Algorithm Hash digest
SHA256 73dc65189387676cd466be1d3e167d144fb522306fc02c2f0efbf636a17a3a47
MD5 e1a9a78f429427f0d98db45a9f508e57
BLAKE2b-256 d55c8d5ea278a69d20ad2fd10ebb3c7b201d2c5a68db991e5253750a4a9d7485

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bincache-0.0.16-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.16-py3-none-any.whl
Algorithm Hash digest
SHA256 1e80e2c9f2c0ea2fe35ba0f40eb65aeffb662f890fd694f6c5cee5809fb3bb73
MD5 a3a056464021d08894716c81e4038b0a
BLAKE2b-256 e9b148b76a94b4e9b6f02194c6242381207c619858bd3e3e757d371355ce6ada

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