datasette-copyable
Datasette plugin for outputting tables in formats suitable for copy and paste
Installation
Install this plugin in the same environment as Datasette.
$ pip install datasette-copyable
Demo
You can try this plugin on fivethirtyeight.datasettes.com - browse for tables or queries there and look for the "copyable" link. Here's an example for a table of airline safety data.
Usage
This plugin adds a .copyable output extension to every table, view and query.
Navigating to this page will show an interface allowing you to select a format for copying and pasting the demo. The default is TSV, which is suitable for copying into Google Sheets or Excel.
You can add ?_raw=1 to get back just the raw data.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-copyable
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for datasette-copyable 0.3.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 |
|---|---|---|---|---|
| datasette-copyable-0.3.2.tar.gz | 3.7 kB | Without provenance | Details for datasette-copyable-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datasette_copyable-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for datasette_copyable-0.3.2-py3-none-any.whl |
Total release size: 7.9 kB
Release files / datasette-copyable-0.3.2.tar.gz
| Download URL | datasette-copyable-0.3.2.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0eacfbb14fd255a903f7ee858bea51cae48e7ba9668a38acebeaaecc82db0b4
|
|
BLAKE2b-256 checksum How to use checksums |
af8909f5889f5f37e5638449beaff393065280d47fa53133ad54f287c8fb3a11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0
|
Release files / datasette_copyable-0.3.2-py3-none-any.whl
| Download URL | datasette_copyable-0.3.2-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96088f78f0dbc0cacdc1ea0310a9bb4f12522f8ce2e3034ce378d681604e547d
|
|
BLAKE2b-256 checksum How to use checksums |
6ddeec952cfe23e9dd52c9a37a94b2ad2eee975177a46211cf80e62a2168373b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.0
|
Security for datasette-copyable 0.3.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.