Skip to main content

Saves hints for whether fast paths should be tried

Project description

fallbacks

Used for caching whether a fast path is worthwhile.

This is an extremely simple cache with no locking and an assumption that if multiple threads/processes try to record for the same key, that it's the same value (so it doesn't matter which wins).

TODO

  • load/save on disk

Version Compat

Usage of this library should work back to 3.7, but development (and mypy compatibility) only on 3.10-3.12. Linting requires 3.12 for full fidelity.

Versioning

This library follows meanver which basically means semver along with a promise to rename when the major version changes.

License

fallbacks is copyright Tim Hatch, and licensed under the MIT license. See the LICENSE file for details.

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

fallbacks-0.1.0.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

fallbacks-0.1.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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