Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

datasette-short-links

PyPI Changelog Tests License

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)

Source distribution for datasette-short-links 0.0.1a5
File Size Uploaded
datasette-short-links-0.0.1a5.tar.gz 11.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datasette-short-links 0.0.1a5
File Interpreter ABI Platform
datasette_short_links-0.0.1a5-py3-none-any.whl Python 3 none any Details

Total release size: 22.6 kB

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page