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 | |
|---|---|---|---|
| datasette-short-links-0.0.1a5.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datasette_short_links-0.0.1a5-py3-none-any.whl | Python 3 | none | any | Details |
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
|