shtl.ink api
URL Shortener built with Python and FastAPI
Read API Docs
- Run App
- 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)
| File | Size | Uploaded | |
|---|---|---|---|
| shtl-ink-api-0.0.20.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|