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.

Metadata

Release files for trytond-web-shortener 8.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 8.2.0
File Size Uploaded
trytond_web_shortener-8.2.0.tar.gz 18.7 kB Details

Built distribution (wheel)

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

Total release size: 50.1 kB

Release files / trytond_web_shortener-8.2.0.tar.gz

Download URL trytond_web_shortener-8.2.0.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0b8d0e69f9a19fa4b06a42754554e20a9ee48e3b3243b4fa60f2cbf0e5bca669
BLAKE2b-256 checksum
How to use checksums
93412c57c5029fc553f6c080de20f2f17278b4cbdc355dc2f587ddb20bba1347
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

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

Download URL trytond_web_shortener-8.2.0-py3-none-any.whl
Size 31.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6aec3cf80cf963f1f88ab3add9e82a02c80321886133949fc9d37148feae9fe
BLAKE2b-256 checksum
How to use checksums
575c9391a66ce841aa58fa10dae013a9dce963bb6e26c73c3cbb15b01e49e5ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

8.2.0 This release

2 release files

8.0.0

2 release files

7.8.0

2 release files

7.6.0

2 release files

7.4.0

2 release files

7.2.0

2 release files

7.0.0

2 release files

6.8.0

2 release files

6.6.0

2 release files

6.4.1

2 release files

6.4.0

2 release files

6.2.1

2 release files

6.2.0

2 release files

6.0.1

2 release files

6.0.0

2 release files

5.8.3

2 release files

5.8.2

2 release files

5.8.1

2 release files

5.8.0

2 release files

5.6.3

2 release files

5.6.2

2 release files

5.6.1

2 release files

5.6.0

2 release files

5.4.1

2 release files

5.4.0

2 release files

5.2.1

2 release files

5.2.0

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