Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ __pycache__/

# Distribution / packaging
.Python
.vscode/
.pytest_cache/
build/
develop-eggs/
dist/
Expand All @@ -23,6 +25,7 @@ wheels/
*.egg-info/
.installed.cfg
*.egg
.vscode/
MANIFEST

# PyInstaller
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: python
python:
- "3.3"
- "2.7"
- "3.6"
script:
- "python setup.py test"
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
all: clean test dists

test:
python setup.py test

dists:
python setup.py sdist bdist_wheel

release: clean dists
twine upload dist/*

clean:
rm -rf dist build .eggs
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
20 changes: 0 additions & 20 deletions Pipfile

This file was deleted.

156 changes: 0 additions & 156 deletions Pipfile.lock

This file was deleted.

21 changes: 8 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
URL-NORMALIZER
==============
# urlnormalizer

[![Build Status](https://travis-ci.org/sunu/url-normalizer.svg?branch=master)](https://travis-ci.org/sunu/url-normalizer)
[![Build Status](https://travis-ci.org/alephdata/urlnormalizer.svg?branch=master)](https://travis-ci.org/alephdata/urlnormalizer)

Normalizes URL by doing the following:

Expand All @@ -21,25 +20,21 @@ Normalizes URL by doing the following:

Works with `http` and `https` urls only for now.

# Python version

For now, Python 3 only.

# Installation
## Installation

Install using `pip`

```console
$ pip install git+https://github.com/sunu/url-normalizer
$ pip install urlnormalizer
```
or clone and install using `python setup.py install`

# Usage
## Usage

Pass a url to the `normalize_url` function as a `str` type to normalize it.

```pycon
In [1]: from normalizer import normalize_url
In [1]: from urlnormalizer import normalize_url

In [2]: normalize_url("hello.com")
Out[2]: 'http://hello.com/'
Expand Down Expand Up @@ -109,10 +104,10 @@ In [18]: repr(normalize_url(1234))
Out[18]: 'None'
```

# Tests
## Tests

Run tests by using `python setup.py test`

# License
## License

MIT
1 change: 0 additions & 1 deletion normalizer/__init__.py

This file was deleted.

Loading