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``.
Raw data
{
"_id": null,
"home_page": "http://www.tryton.org/",
"name": "trytond-web-shortener",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "tryton url",
"author": "Tryton",
"author_email": "foundation@tryton.org",
"download_url": "https://files.pythonhosted.org/packages/80/90/6675a75069ea118402450865fa5de15cee61387397a017fae45b92d0f73c/trytond_web_shortener-7.2.0.tar.gz",
"platform": null,
"description": "Web Shortener Module\n####################\n\nThe web_shortener module allows URLs to be shortened. It counts the number of\ntimes the URL is accessed and optionally triggers action.\n\nThe module defines a route ``/s/<shortened_id>``\nwhich will redirect the queries to the URL registered previously with\n``ShortenedURL.get_url``.\n\nModels that need to be callable from a shortened URL must define the method\n``shortened_url_execute``. This class method will be called from the underlying\nqueue with the record and the keywords arguments transmitted when calling\n``get_url``.\n\nShortened URL\n*************\n\n- Shortened URL: The shortened URL\n- Redirect URL: The URL the request is redirected to\n- Record: The record on which ``method`` will be executed\n- Method: The name of the method to call on ``record``\n- Count: The number of times this shortened URL has been triggered\n\nConfiguration\n*************\n\nThe web_shortener modules uses the parameter from the section:\n\n- ``[web]``:\n\n - ``shortener_base``: The base URL without path for shortened URL.\n The default value is composed with the configuration ``[web]``\n ``hostname``.\n",
"bugtrack_url": null,
"license": "GPL-3",
"summary": "Tryton module to plug a URL to an action",
"version": "7.2.0",
"project_urls": {
"Bug Tracker": "https://bugs.tryton.org/",
"Documentation": "https://docs.tryton.org/",
"Download": "http://downloads.tryton.org/7.2/",
"Forum": "https://www.tryton.org/forum",
"Homepage": "http://www.tryton.org/",
"Source Code": "https://code.tryton.org/tryton"
},
"split_keywords": [
"tryton",
"url"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5d6bf0deb0fda01a7a426eabf8671b0ffcd0252568e70f0bdcdc68d68e320a35",
"md5": "b5e3cd9905bf1628141845799f17cdb8",
"sha256": "2bd739013013245367be1abe5e75a0accefdff847690e88b6d29032c74f9835a"
},
"downloads": -1,
"filename": "trytond_web_shortener-7.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b5e3cd9905bf1628141845799f17cdb8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 30933,
"upload_time": "2024-04-29T15:54:32",
"upload_time_iso_8601": "2024-04-29T15:54:32.156496Z",
"url": "https://files.pythonhosted.org/packages/5d/6b/f0deb0fda01a7a426eabf8671b0ffcd0252568e70f0bdcdc68d68e320a35/trytond_web_shortener-7.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "80906675a75069ea118402450865fa5de15cee61387397a017fae45b92d0f73c",
"md5": "a90d7f38fb0d44dbf50686385839873d",
"sha256": "4df1100d31fbd933ca0144aad64b2aeea3aba711ebc3c0270baf7c57b468c077"
},
"downloads": -1,
"filename": "trytond_web_shortener-7.2.0.tar.gz",
"has_sig": false,
"md5_digest": "a90d7f38fb0d44dbf50686385839873d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 24273,
"upload_time": "2024-04-29T15:54:33",
"upload_time_iso_8601": "2024-04-29T15:54:33.934356Z",
"url": "https://files.pythonhosted.org/packages/80/90/6675a75069ea118402450865fa5de15cee61387397a017fae45b92d0f73c/trytond_web_shortener-7.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-29 15:54:33",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "trytond-web-shortener"
}