Skip to main content

Web Shortener Module

The web_shortener module allows URLs to be shortened. It counts the number of times the URL is accessed and optionally triggers action.

The module defines a route /s/<shortened_id> which will redirect the queries to the URL registered previously with ShortenedURL.get_url.

Models that need to be callable from a shortened URL must define the method shortened_url_execute. This class method will be called from the underlying queue with the record and the keywords arguments transmitted when calling get_url.

Shortened URL

  • Shortened URL: The shortened URL

  • Redirect URL: The URL the request is redirected to

  • Record: The record on which method will be executed

  • Method: The name of the method to call on record

  • Count: The number of times this shortened URL has been triggered

Configuration

The web_shortener modules uses the parameter from the section:

  • [web]:

    • shortener_base: The base URL without path for shortened URL. The default value is composed with the configuration [web] hostname.

Release files for trytond-web-shortener 5.2.0

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

Source distribution (sdist)

Source distribution for trytond-web-shortener 5.2.0
File Size Uploaded Provenance Actions
trytond_web_shortener-5.2.0.tar.gz 23.4 kB Without provenance Details for trytond_web_shortener-5.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 44.5 kB

Release files / trytond_web_shortener-5.2.0.tar.gz

Download URL trytond_web_shortener-5.2.0.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5ae412213524243994c0a3df1393c977f12bdeb14c6e57ee0dd5e5fe563c681f
BLAKE2b-256 checksum
How to use checksums
1d1f5d8c1ceaa85c898063edaa733b348e2e332b35612af6f3683831141ea695
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.15

Release files / trytond_web_shortener-5.2.0-py3-none-any.whl

Download URL trytond_web_shortener-5.2.0-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
398d3ae9b23b5d4d4a5e86d63b99bd13e42024bc2be9756841c789a53c2c271b
BLAKE2b-256 checksum
How to use checksums
d1aacbe9f47ab5da1a54d0fa1087df115a9345567bbec6104165ba8da03094a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.15

Security for trytond-web-shortener 5.2.0

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