Skip to main content

A tiny application that handles (cool) uri's.

Project description

https://badge.fury.io/py/urihandler.png https://readthedocs.org/projects/urihandler/badge/?version=latest https://travis-ci.org/OnroerendErfgoed/urihandler.png?branch=master https://coveralls.io/repos/OnroerendErfgoed/urihandler/badge.png?branch=master

This very simple applications 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 hanle service (eg. http://id.example.com/handle?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.

0.1.0 (27-09-2015)

  • Initial version

  • Allows redirecting a a regular URI and with a query service.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

urihandler-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

urihandler-0.1.0-py2.py3-none-any.whl (6.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file urihandler-0.1.0.tar.gz.

File metadata

  • Download URL: urihandler-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for urihandler-0.1.0.tar.gz
Algorithm Hash digest
SHA256 829d8d46b9640f013957a844eabeaf0aae0045cb94b6a9e69430e479f72b465f
MD5 f7adc3e8f3c40aadf57fe45b4572291a
BLAKE2b-256 533ee1006e0643923368c301b9340caf35c3c7715a88e1a8e67b7d99f392c64c

See more details on using hashes here.

File details

Details for the file urihandler-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for urihandler-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 70c3aedfa60e636bfb2ce0a0389eda1f60bb58a0538118bef5738413a8827370
MD5 0889bb0164cdba3048923dc398cef34b
BLAKE2b-256 55422f608081c66e86cdccec8dd135dc878d41d8a95a05693edf82dc52045822

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page