Skip to main content

django-selector is a custom url pattern parser for Django that is based off of Luke Arno’s Selector for WSGI. It is designed to simplify the writing and reading of url patterns by providing recipes for frequently used patterns. django-selector’s parser ignores classic regex based url patterns, so if you require the flexibility of regexes you needn’t jump through registration hoops for a one-off url pattern. Using these named patterns in your urls.py clarifies what they are matching as well as how they are matching it:

patterns('foo.views',
(r'^/(?P<name>[a-zA-Z0-9\-]+)/(?P<foos>\d*.?\d+)/$', 'index', {}, 'foo-index'))

becomes:

parser.patterns('foo.views',
(r'/{name:slug}/{foos:number}/', 'index', {}, 'foo-index'))

You can install django-selector with pip:

pip install django-selector

You can fork django-selector from its hg repository:

hg clone http://bitbucket.org/jmoiron/django-selector

You can also read the full release documentation.

Metadata

Release files for django-selector 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-selector 0.4
File Size Uploaded Provenance Actions
django-selector-0.4.tar.gz 3.6 kB Without provenance Details for django-selector-0.4.tar.gz

Release files / django-selector-0.4.tar.gz

Download URL django-selector-0.4.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
48c969eb85dcd7558e954f646b903c5d8cf0b0751415b8535e4f6e2cac1a09a6
BLAKE2b-256 checksum
How to use checksums
ac8772e415cd6769eb0980b6eda2c8a6cee6a0b9ded2201b08f6656e0cd75b55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-selector 0.4

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.

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