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
Hashes for datasette-short-links-0.0.1a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | abfbc5359259ad1577f8ff20e415044a4154944d71d528d211581891f4cb595c |
|
MD5 | 5d9c70e27d94ba0d230b6ea30b935c20 |
|
BLAKE2b-256 | 132b915be8433345174aa7cc7f2f79087a59f3504c0baea31f91393e1304211f |
Hashes for datasette_short_links-0.0.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29809307daa5e52905370246d502bb1df287b612d4c18c6faba8aeef0ae39737 |
|
MD5 | 2e4b27d6730338a07942264483a5b52c |
|
BLAKE2b-256 | cd15ebd7595ef68663361e9432e4c96c72bb4c2f48d2f6f95053bdc38d4c4fdf |