Skip to main content

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.

Metadata

Release files for bincache 0.0.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bincache 0.0.16
File Size Uploaded
bincache-0.0.16.tar.gz 13.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bincache 0.0.16
File Interpreter ABI Platform
bincache-0.0.16-py3-none-any.whl Python 3 none any Details

Total release size: 27.4 kB

Release files / bincache-0.0.16.tar.gz

Download URL bincache-0.0.16.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
73dc65189387676cd466be1d3e167d144fb522306fc02c2f0efbf636a17a3a47
BLAKE2b-256 checksum
How to use checksums
d55c8d5ea278a69d20ad2fd10ebb3c7b201d2c5a68db991e5253750a4a9d7485
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / bincache-0.0.16-py3-none-any.whl

Download URL bincache-0.0.16-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e80e2c9f2c0ea2fe35ba0f40eb65aeffb662f890fd694f6c5cee5809fb3bb73
BLAKE2b-256 checksum
How to use checksums
e9b148b76a94b4e9b6f02194c6242381207c619858bd3e3e757d371355ce6ada
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.0.16 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page