Skip to main content

Provide tables that expire after a time limit

Project description

datasette-ephemeral-tables

PyPI Changelog Tests License

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

datasette_ephemeral_tables-0.2.3.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette_ephemeral_tables-0.2.3-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file datasette_ephemeral_tables-0.2.3.tar.gz.

File metadata

File hashes

Hashes for datasette_ephemeral_tables-0.2.3.tar.gz
Algorithm Hash digest
SHA256 73d88acb44035dd6b6c488c1e4ae645f179b429a61cedc11959605e1e0028e9f
MD5 3f697b038b80bdfa2b0798cbe9dadecb
BLAKE2b-256 9e6584b9a202409f48a9c178f6ab51e09445b9057ae1e638699b4273441cb680

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_ephemeral_tables-0.2.3.tar.gz:

Publisher: publish.yml on simonw/datasette-ephemeral-tables

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datasette_ephemeral_tables-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_ephemeral_tables-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9afc64a1457d1851760c2c742a86efcfa2ea6a77fc00ddd504baca653157ff31
MD5 abd996b3fbe97440edd89114f90684ee
BLAKE2b-256 b1aa58d9959a1f887c74eb3d7c08bd2b93ce62aac81d2f25f1d72d7a2edfba3c

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page