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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trytond_web_shortener-8.2.0.tar.gz | 18.7 kB | Without provenance | Details for trytond_web_shortener-8.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trytond_web_shortener-8.2.0-py3-none-any.whl | Python 3 | none | any | Details for trytond_web_shortener-8.2.0-py3-none-any.whl |
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
|
Security for trytond-web-shortener 8.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.