Skip to main content

shortener

CircleCI Coverage Status PyPi Package

Basic URL shortener as a Django app.

To use:

  1. Install using pip pip install shortener
  2. Include shortener.apps.ShortenerConfig to INSTALLED_APPS in your project's settings.py
  3. Add the shortener to urls.py.
    • Example: path('s/', include('shortener.urls', namespace='shortener')) will shorten URLs to https://example.com/s/<ID>.
  4. python manage.py migrate
  5. Either add in URL shortcuts manually through Admin, or add some hook in your project to call shortener.objects.get_or_create. The function takes in a long URL and returns a Url object which contains the full shortened url as Url.shortened, and the slug in Url.short_id.

Metadata

Release files for shortener 0.2.1

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

Source distribution (sdist)

Source distribution for shortener 0.2.1
File Size Uploaded Provenance Actions
shortener-0.2.1.tar.gz 3.0 kB Without provenance Details for shortener-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shortener 0.2.1
File Interpreter ABI Platform Actions
shortener-0.2.1-py3-none-any.whl Python 3 none any Details for shortener-0.2.1-py3-none-any.whl

Total release size: 8.7 kB

Release files / shortener-0.2.1.tar.gz

Download URL shortener-0.2.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
42f03bbbc2928b7db000ac92975b78b4c47fd938f258c4019a256652086a4a4d
BLAKE2b-256 checksum
How to use checksums
0d346e0ebac928735388128fbccab09cb6558d488e3ad4ab1af40f9a40673c8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.38.0 CPython/3.7.5

Release files / shortener-0.2.1-py3-none-any.whl

Download URL shortener-0.2.1-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b40d1309ae8cfea6132b8f10ff1d5e3e44675989f817305943cf97b492e09f72
BLAKE2b-256 checksum
How to use checksums
fc4eda838c150f52155790778118c1feddeca0dfefc30527f369aaf35c70b4ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.38.0 CPython/3.7.5

Security for shortener 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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