Tick Tock
Tick Tock adds least-recently-used cache management and automatic data timeout to Python’s Shelf class.
>>> # Make your shelves manage your data based on time and/or size:
... myshelf = ticktock.open('myshelf', timeout=60, maxsize=50)
>>> myshelf['foo'] = 'value'
>>> myshelf['foo']
'value'
>>> # Wait 60 seconds, then try again:
... myshelf['foo']
...
KeyError: 'foo'
>>> len(myshelf)
50
>>> myshelf['bar'] = 'value'
>>> # Adding 'bar' kicks the least-recently-used key off the Shelf
... len(myshelf)
50
Install
Tick Tock supports Python 2.6, 2.7, and 3.
To install, use pip:
$ pip install ticktock
Documentation
Tick Tock’s documentation contains a gentle introduction along with a complete API overview. For more information on how to get started with Tick Tock, this is where you should look.
Bug/Issues Tracker
Tick Tock uses its GitHub Issues page to track bugs, feature requests, and support questions.
License
Tick Tock is released under the OSI-approved MIT License. See the file LICENSE.txt for more information.
Metadata
Release files for ticktock 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ticktock-0.1.2.tar.gz | 16.6 kB | Without provenance | Details for ticktock-0.1.2.tar.gz |
Release files / ticktock-0.1.2.tar.gz
| Download URL | ticktock-0.1.2.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17d6828b77a9b1beea485f070fcdecb02c52c7240b40bcb9466bfa6bdb0e0121
|
|
BLAKE2b-256 checksum How to use checksums |
173ed4de0658900d6ecd38718b347727b8f3cb44243c366217882819f5af827a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ticktock 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.