Skip to content

Commit

Permalink
Merge pull request suminb#2 from dhimmel/patch-1
Browse files Browse the repository at this point in the history
Doc: add badges and update markdown in README
  • Loading branch information
suminb authored Apr 8, 2017
2 parents cabae79 + 4102470 commit 019512c
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
[![Build Status](https://travis-ci.org/suminb/base62.svg?branch=master)](https://travis-ci.org/suminb/base62)

A Python module for base62 encoding. Ported from PHP code that I wrote in mid-2000, which can be found on [here](http://blog.suminb.com/archives/558).

Installation
------------
## Installation

sudo pip install pybase62
[![PyPI](https://img.shields.io/pypi/v/pybase62.svg)](https://pypi.python.org/pypi/pybase62)

```
pip install pybase62
```

Usage
------
## Usage

>>> import base62
```python
>>> import base62

>>> base62.encode(34441886726)
'base62'
>>> base62.encode(34441886726)
'base62'

>>> base62.decode('base62')
34441886726
>>> base62.decode('base62')
34441886726
```

0 comments on commit 019512c

Please sign in to comment.