Skip to main content

A Radix Tree based router for HTTP and other routing needs with support for middlewares and endpoints with a Cython boost

Project description

A generic string router based on a Radix Tree structure, (partially) Cython optimized for speed.

Inspiration

xrtr is highly inspired in Router, by shiyanhui.

License

xrtr is a free software distributed under the MIT license, the same license as Router’s license.

To Do

  • There is a LOT of room for improvement (specially when migrating the code to C and Cython and the fact this is my first project with Cython);
  • Fix test coverage (and why is it not covering method declarations, as an example);
  • There is a lot of fixes to be done regarding Cython, distribution, naming conventions and so on;
  • Add Windows builds using AppVeyor;

Changelog

v0.2.1 on 2018-10-09

  • Fixed bug where the no_conflict flag where not being propagated to the add_method if a “non-conflicting method” was the first node being created in that tree.

v0.2.0 on 2018-10-03

  • Add method_for function.

v0.1.4 on 2018-10-03

  • Add sentinel object.

v0.1.3 on 2018-09-21

  • Add testing for repeated variables.

v0.1.2 on 2018-09-14

  • Minor tweaks and improvements (search optimizations).

v0.1.1 on 2018-09-11

  • Minor tweaks and improvements.

v0.1.0 on 2018-08-22

  • First release on PyPI.

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

xrtr-0.2.1.tar.gz (27.9 kB view hashes)

Uploaded source

Built Distributions

xrtr-0.2.1-cp37-cp37m-manylinux1_x86_64.whl (213.8 kB view hashes)

Uploaded cp37

xrtr-0.2.1-cp37-cp37m-manylinux1_i686.whl (196.4 kB view hashes)

Uploaded cp37

xrtr-0.2.1-cp36-cp36m-manylinux1_x86_64.whl (214.0 kB view hashes)

Uploaded cp36

xrtr-0.2.1-cp36-cp36m-manylinux1_i686.whl (196.1 kB view hashes)

Uploaded cp36

xrtr-0.2.1-cp35-cp35m-manylinux1_x86_64.whl (213.7 kB view hashes)

Uploaded cp35

xrtr-0.2.1-cp35-cp35m-manylinux1_i686.whl (195.0 kB view hashes)

Uploaded cp35

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page