Git Product home page Git Product logo

uriref's Introduction

Python uriref

version

0.0.2

last-update

2011-02-13

description

URL and URN parser written in regular expressions. Based on RFC 2396 BNF terms, update to RFC 3986 planned but not started.

license

FreeBSD

package status

Dependencies

Build

repository

GIT

This is an experimental library. Do not use it in production unless you are prepared to put in time for testing that it does what you need.

uriref reference matching, compared to stdlib urlparse for several iteration-counts. The implementations are not tested for identical operation.

uriref reference matching, compared to stdlib urlparse for several iteration-counts. The implementations are not tested for identical operation.

The diagram shows constant times for each iteration count. The regex implementation outperforms stdlib's urlparse module by almost 100%. The latter runs at slighty above 6e-4 seconds, with the former at ~3.5e-4 seconds (at my machine).

Memory profiling remains to be done, I guess regex is taking a lot more.

There are almost 100 tests, a good bunch of which need to be reviewed (33 failures). The modules has 34% test coverage.

See uriref.

Tests

make test

Coverage report and test results are available in html.

There are tests that show for which sort of URLs uriref is compatible with stdlib urlparse.

The setup should be fixed by splitting up the expected test results to function. Currently there is one set of parameters for all test methods.

uriref's People

Contributors

dotmpe avatar brixcrm avatar

Watchers

James Cloos avatar Philippe Ombredanne avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.