Provide tables that expire after a time limit
Project description
datasette-ephemeral-tables
Provide tables that expire after a time limit
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-ephemeral-tables
Usage
Once installed, this plugin will ensure Datasette starts running with a new named in-memory database called ephemeral.
Any tables created in this database will be automatically dropped five minutes after creation.
Configuration
All plugin settings are optional. The full set of settings in metadata.yml looks like this:
plugins:
datasette-ephemeral-tables:
# The name of the in-memory database created by the plugin:
database: ephemeral
# After how many seconds should tables be dropped?
table_ttl: 300
# How often should the plugin check for expired tables (in seconds)?
check_interval: 2
The figures shown here are the default values.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-ephemeral-tables
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datasette_ephemeral_tables-0.2.3.tar.gz.
File metadata
- Download URL: datasette_ephemeral_tables-0.2.3.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73d88acb44035dd6b6c488c1e4ae645f179b429a61cedc11959605e1e0028e9f
|
|
| MD5 |
3f697b038b80bdfa2b0798cbe9dadecb
|
|
| BLAKE2b-256 |
9e6584b9a202409f48a9c178f6ab51e09445b9057ae1e638699b4273441cb680
|
Provenance
The following attestation bundles were made for datasette_ephemeral_tables-0.2.3.tar.gz:
Publisher:
publish.yml on simonw/datasette-ephemeral-tables
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_ephemeral_tables-0.2.3.tar.gz -
Subject digest:
73d88acb44035dd6b6c488c1e4ae645f179b429a61cedc11959605e1e0028e9f - Sigstore transparency entry: 685925263
- Sigstore integration time:
-
Permalink:
simonw/datasette-ephemeral-tables@0acdd4a83bb513e15d85af42441512c002d0d7f4 -
Branch / Tag:
refs/tags/0.2.3 - Owner: https://github.com/simonw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0acdd4a83bb513e15d85af42441512c002d0d7f4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file datasette_ephemeral_tables-0.2.3-py3-none-any.whl.
File metadata
- Download URL: datasette_ephemeral_tables-0.2.3-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9afc64a1457d1851760c2c742a86efcfa2ea6a77fc00ddd504baca653157ff31
|
|
| MD5 |
abd996b3fbe97440edd89114f90684ee
|
|
| BLAKE2b-256 |
b1aa58d9959a1f887c74eb3d7c08bd2b93ce62aac81d2f25f1d72d7a2edfba3c
|
Provenance
The following attestation bundles were made for datasette_ephemeral_tables-0.2.3-py3-none-any.whl:
Publisher:
publish.yml on simonw/datasette-ephemeral-tables
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_ephemeral_tables-0.2.3-py3-none-any.whl -
Subject digest:
9afc64a1457d1851760c2c742a86efcfa2ea6a77fc00ddd504baca653157ff31 - Sigstore transparency entry: 685925275
- Sigstore integration time:
-
Permalink:
simonw/datasette-ephemeral-tables@0acdd4a83bb513e15d85af42441512c002d0d7f4 -
Branch / Tag:
refs/tags/0.2.3 - Owner: https://github.com/simonw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0acdd4a83bb513e15d85af42441512c002d0d7f4 -
Trigger Event:
release
-
Statement type: