Skip to main content

shtl.ink api

URL Shortener built with Python and FastAPI

github repository

Read API Docs

  1. Run App
  2. Navigate to http://localhost:8000/docs or http://localhost:8000/redoc

Configure environment variables

# requires postgres database
export BASE_URL=http://localhost:8000
# where to redirect / to
export ROOT_REDIRECT_URL=http://shtl.ink
export DB_HOST=abcd
export DB_NAME=abcd
export DB_USER=abcd
export DB_PASS=abcd

Build Local

pip install -r requirements.txt
python -m build

Run Local

pip install shtl-ink-api
uvicorn shtl_ink_api.app:app

Docker Compose

See docker-compose.yml

Build Docker

docker build -t skymoore/shtl-ink-api .

Run Docker

docker pull skymoore/shtl-ink-api
docker run --rm -it  -p 8000:8000/tcp skymoore/shtl-ink-api:latest

Metadata

Release files for shtl-ink-api 0.0.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shtl-ink-api 0.0.20
File Size Uploaded
shtl-ink-api-0.0.20.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shtl-ink-api 0.0.20
File Interpreter ABI Platform
shtl_ink_api-0.0.20-py3-none-any.whl Python 3 none any Details

Total release size: 4.1 kB

Release files / shtl-ink-api-0.0.20.tar.gz

Download URL shtl-ink-api-0.0.20.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
59dac760d37d08400b36577eedb4b01b7d6b7a7766733e9443c39a06ae940aca
BLAKE2b-256 checksum
How to use checksums
240b6653c50917abbc5d3a19f7680347cffbea8749332990be7c852a3fe26017
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / shtl_ink_api-0.0.20-py3-none-any.whl

Download URL shtl_ink_api-0.0.20-py3-none-any.whl
Size 2.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
645d06424d58e123dfbd2a8f47a25a77a376e52a505a577bfb1ec9c8821c52fc
BLAKE2b-256 checksum
How to use checksums
75029c01834bd408edb4f0d46d3f8e5b97b92013c0cf805a87c7e1f648dafae9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.0.20 This release

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.5

2 release files

0.0.3

2 release files

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