Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brendancol/gravier

Utilities for common tasks encountered in the wild web
https://github.com/brendancol/gravier

Last synced: about 1 month ago
JSON representation

Utilities for common tasks encountered in the wild web

Awesome Lists containing this project

README

        

Gravier [![Build Status](https://travis-ci.org/brendancol/gravier.svg)](https://travis-ci.org/brendancol/gravier)
=======

Utilities for common tasks encountered in the wild web (under construction)

### Notes:
1. Currently only contains simple url parser (url_parse module)
2. Requires Python 3.4+ (brew install python3)

### Setup environment (OSX / *nix):
$> git clone https://github.com/brendancol/gravier.git
$> cd gravier
$> pyvenv env && source env/bin/activate
$> pip install -r requirements.txt

### Run tests
$> nosetests -v

tests.test_url_parse.TestUrlParse.test_handle_no_protocol ... ok
tests.test_url_parse.TestUrlParse.test_https_protocol ... ok
tests.test_url_parse.TestUrlParse.test_index_html_path ... ok
tests.test_url_parse.TestUrlParse.test_match_default_port_80 ... ok
tests.test_url_parse.TestUrlParse.test_match_host ... ok
tests.test_url_parse.TestUrlParse.test_match_path ... ok
tests.test_url_parse.TestUrlParse.test_match_port ... ok
tests.test_url_parse.TestUrlParse.test_match_protocol ... ok
tests.test_url_parse.TestUrlParse.test_match_query ... ok
tests.test_url_parse.TestUrlParse.test_parsed_url_instantiation ... ok
tests.test_url_parse.TestUrlParse.test_throw_error_on_invalid_url ... ok