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.1a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebafdc4914a91332284766ad01ce2b69f9373940a2e3fb5323195dff673d2736 |
|
MD5 | 74db13a982a3682bdb0125ff41adf399 |
|
BLAKE2b-256 | 71b8d98d71bfabd4aef26010d6b406a9ff4ac52384d9ca211f3dbf7680a57dbb |
Hashes for datasette_short_links-0.0.1a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1355636011023e16716712b17298f62f2985ca8b267058e243c9a9f040461c97 |
|
MD5 | 59d1ae5d09ec959382e59b403835a349 |
|
BLAKE2b-256 | 243f31232fff4dfb4080f86c96ebceda0cd01bb56b2f37aa469f7ff349c5dd4c |