No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
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-short-links-0.0.1a5.tar.gz.
File metadata
- Download URL: datasette-short-links-0.0.1a5.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66cfbc916d8d8cf97978c0b787f8a9925519c6eb39d8a2056e7d03e16f9c1623
|
|
| MD5 |
6ede2e1fe7994076d929c224ed574441
|
|
| BLAKE2b-256 |
7b7cf7880cac64ea0f30cade79d5d8a66643a9f277db4c10ff98a4fd02a4ad1d
|
File details
Details for the file datasette_short_links-0.0.1a5-py3-none-any.whl.
File metadata
- Download URL: datasette_short_links-0.0.1a5-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b26c3a27d310f674ec97d353c8b75d40b386fae7cb66b58ae03007aac2caabc5
|
|
| MD5 |
39ba80564903360cf46bdd979fb19081
|
|
| BLAKE2b-256 |
5dafd7389d543a0a1e8ef6b3e4c0b8e371aea69cf8072fbe1515c2215d9e38ab
|