This release is a pre-release and may not be stable for production use.
datasette-short-links
A URL link shortener for Datasette. Work in progress!
Installation
This plugin requires an alpha version of Datasette 1.0, because it uses Datasette's internal database introduced in 1.0a5.
pip install datasette==1.0a5
After than, you can install this plugin in the same environment as Datasette.
datasette install datasette-short-links
Usage
Once installed, the bottom of each page with have a "Copy URL" button at the bottom of that page. That URL will link directly back to the same page.
A short URL will look something like: http://localhost:8001/-/l/01h973jcqspxrhzy00zebhx748
To take full advantage of this plugin, use a persistent internal database to store links even after your Datasette instance exits. This can be done with the --internal flag:
datasette --internal internal.db my_data.db
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-short-links
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for datasette-short-links 0.0.1a5
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-short-links-0.0.1a5.tar.gz | 11.4 kB | Without provenance | Details for datasette-short-links-0.0.1a5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datasette_short_links-0.0.1a5-py3-none-any.whl | Python 3 | none | any | Details for datasette_short_links-0.0.1a5-py3-none-any.whl |
Total release size: 22.6 kB
Release files / datasette-short-links-0.0.1a5.tar.gz
| Download URL | datasette-short-links-0.0.1a5.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66cfbc916d8d8cf97978c0b787f8a9925519c6eb39d8a2056e7d03e16f9c1623
|
|
BLAKE2b-256 checksum How to use checksums |
7b7cf7880cac64ea0f30cade79d5d8a66643a9f277db4c10ff98a4fd02a4ad1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / datasette_short_links-0.0.1a5-py3-none-any.whl
| Download URL | datasette_short_links-0.0.1a5-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b26c3a27d310f674ec97d353c8b75d40b386fae7cb66b58ae03007aac2caabc5
|
|
BLAKE2b-256 checksum How to use checksums |
5dafd7389d543a0a1e8ef6b3e4c0b8e371aea69cf8072fbe1515c2215d9e38ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for datasette-short-links 0.0.1a5
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.