Skip to content

Commit

Permalink
Update readme and package details
Browse files Browse the repository at this point in the history
  • Loading branch information
frozzare committed Apr 17, 2020
1 parent 0e9bb50 commit d3c9b47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# personnummer [![Build Status](https://secure.travis-ci.org/personnummer/python.png?branch=master)](http://travis-ci.org/personnummer/python)

Validate Swedish social security numbers.
Validate Swedish social security numbers. Version 3+ only supports Python 3.

## Installation

Expand Down Expand Up @@ -47,12 +47,13 @@ pn.format(True)
```

### Get Age

```python
from personnummer import personnummer

pn = personnummer.Personnummer(6403273813)
pn = personnummer.Personnummer("19121212+1212")
pn.get_age()
# => 55
# => 106
```

See [personnummer/tests/test_personnummer.py](personnummer/tests/test_personnummer.py) for more examples.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
version='3.0.0',
description='Validate Swedish social security numbers',
url='http://github.com/personnummer/python',
author='Fredrik Forsmo',
author_email='[email protected]',
author='Personnummer and Contributors',
author_email='fredrik.forsmo+personnummer@gmail.com',
license='MIT',
packages=['personnummer'],
test_suite='nose.collector',
Expand Down

0 comments on commit d3c9b47

Please sign in to comment.