UriHandler
==========
.. image:: https://badge.fury.io/py/urihandler.png
:target: http://badge.fury.io/py/urihandler
.. image:: https://travis-ci.org/OnroerendErfgoed/urihandler.png?branch=master
:target: https://travis-ci.org/OnroerendErfgoed/urihandler
.. image:: https://coveralls.io/repos/OnroerendErfgoed/urihandler/badge.png?branch=master
:target: https://coveralls.io/r/OnroerendErfgoed/urihandler
This very simple application is meant to be the handler on a domain that
handles Cool Uri's (http://www.w3.org/TR/cooluris/) with 303 redirects.
All it does is map Uri's to other uri's and redirect them. To make thing easy
you can either redirect by hitting the full URI (eg.
`http://id.example.com/foo/15`) or by querying a handle service (eg.
`http://id.example.com/handle?uri=http://id.example.com/foo/15`). Both of these
will redirect you. The handle service also works for non-http URI's. Finally,
there's a service that just returns information without performing a redirect,
eg. `http://id.example.com/uris?uri=http://id.example.com/foo/15`. This can be
handy to bypass some of the strangeness that happens when you combine Cool uri's
with CORS and custom HTTP headers.
Configuration is done by editing a YAML file. For each URI you need to register
a regex and a redirect template. The regex should use named placeholders, as
well as the redirect string. An optional argument `mount` determines if your
`match` is living at the server root or is absolute (eg. because it's a URN). Not
setting `mount` sets it to `True`.
1.2.0 (25-04-2023)
------------------
- URL parameters meegeven (#92)
1.1.0 (27-02-2023)
------------------
- Onderscheid op accept header toelaten (#86)
1.0.0 (06-07-2022)
------------------
- Drop python 2 support (#80)
- Update to pyramid 2 (#78)
- Update dependencies (#77)
- Is setup.cfg still needed? (#76)
- Drop pyup support (#75)
- Which HTTP methods does the "redirect" route support? (#73)
0.4.0 (07-12-2020)
------------------
- Py3 migratie (#53)
0.3.0 (12-04-2016)
------------------
- Added http caching to the `/uris` endpoint.
0.2.0 (28-09-2015)
------------------
- Added a `/uris` endpoint that does not redirect, but just returns information.
0.1.0 (27-09-2015)
------------------
- Initial version
- Allows redirecting a a regular URI and with a query service.
Raw data
{
"_id": null,
"home_page": "https://github.com/OnroerendErfgoed/urihandler",
"name": "urihandler",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "web wsgi pyramid uri",
"author": "Flanders Heritage Agency",
"author_email": "ict@onroerenderfgoed.be",
"download_url": "https://files.pythonhosted.org/packages/1c/79/2b81531214e598b8b12d7c519d354c3d277567327bafd0ab9a874c9bc1a6/urihandler-1.2.0.tar.gz",
"platform": null,
"description": "UriHandler\n==========\n\n.. image:: https://badge.fury.io/py/urihandler.png\n :target: http://badge.fury.io/py/urihandler\n\n.. image:: https://travis-ci.org/OnroerendErfgoed/urihandler.png?branch=master\n :target: https://travis-ci.org/OnroerendErfgoed/urihandler\n.. image:: https://coveralls.io/repos/OnroerendErfgoed/urihandler/badge.png?branch=master\n :target: https://coveralls.io/r/OnroerendErfgoed/urihandler\n\nThis very simple application is meant to be the handler on a domain that\nhandles Cool Uri's (http://www.w3.org/TR/cooluris/) with 303 redirects.\n\nAll it does is map Uri's to other uri's and redirect them. To make thing easy\nyou can either redirect by hitting the full URI (eg.\n`http://id.example.com/foo/15`) or by querying a handle service (eg.\n`http://id.example.com/handle?uri=http://id.example.com/foo/15`). Both of these\nwill redirect you. The handle service also works for non-http URI's. Finally,\nthere's a service that just returns information without performing a redirect,\neg. `http://id.example.com/uris?uri=http://id.example.com/foo/15`. This can be\nhandy to bypass some of the strangeness that happens when you combine Cool uri's\nwith CORS and custom HTTP headers.\n\nConfiguration is done by editing a YAML file. For each URI you need to register\na regex and a redirect template. The regex should use named placeholders, as\nwell as the redirect string. An optional argument `mount` determines if your\n`match` is living at the server root or is absolute (eg. because it's a URN). Not\nsetting `mount` sets it to `True`.\n\n\n1.2.0 (25-04-2023)\n------------------\n\n- URL parameters meegeven (#92)\n\n1.1.0 (27-02-2023)\n------------------\n\n- Onderscheid op accept header toelaten (#86)\n\n\n1.0.0 (06-07-2022)\n------------------\n\n- Drop python 2 support (#80)\n- Update to pyramid 2 (#78)\n- Update dependencies (#77)\n- Is setup.cfg still needed? (#76)\n- Drop pyup support (#75)\n- Which HTTP methods does the \"redirect\" route support? (#73)\n\n0.4.0 (07-12-2020)\n------------------\n\n- Py3 migratie (#53)\n\n0.3.0 (12-04-2016)\n------------------\n\n- Added http caching to the `/uris` endpoint.\n\n0.2.0 (28-09-2015)\n------------------\n\n- Added a `/uris` endpoint that does not redirect, but just returns information.\n\n0.1.0 (27-09-2015)\n------------------\n\n- Initial version\n- Allows redirecting a a regular URI and with a query service.\n",
"bugtrack_url": null,
"license": "GPLv3",
"summary": "A tiny application that handles (cool) uri's.",
"version": "1.2.0",
"split_keywords": [
"web",
"wsgi",
"pyramid",
"uri"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1c792b81531214e598b8b12d7c519d354c3d277567327bafd0ab9a874c9bc1a6",
"md5": "a3d3f92edf7f660abf564dada1260e7c",
"sha256": "e8061eb0f6039a62d74032f53b43a7a0252baf64458de2e14d98e47c36282ecb"
},
"downloads": -1,
"filename": "urihandler-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "a3d3f92edf7f660abf564dada1260e7c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 20469,
"upload_time": "2023-04-26T08:24:39",
"upload_time_iso_8601": "2023-04-26T08:24:39.592910Z",
"url": "https://files.pythonhosted.org/packages/1c/79/2b81531214e598b8b12d7c519d354c3d277567327bafd0ab9a874c9bc1a6/urihandler-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-26 08:24:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "OnroerendErfgoed",
"github_project": "urihandler",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "pyramid",
"specs": [
[
"==",
"2.0"
]
]
},
{
"name": "PyYAML",
"specs": [
[
"==",
"6.0"
]
]
}
],
"tox": true,
"lcname": "urihandler"
}