A python library for verifying and generating swedish social security numbers
Project description
SEsocial
A python repository for verifying and generating swedish social security numbers.
Installation
Easy:
pip install SE-social
Advanced:
git clone http://github.com/WaldemarBjornstrom/SEsocial.git
Then go to the SEsocial directory you just downloaded and copy the sesocial folder into your project.
Usage
import sesocial
sesocial.verify('yymmddxxxx') # Returns True or False
sesocial.gender('yymmddxxxx') # Returns Male or Female
sesocial.generate() # Returns format yymmddxxxx
Note: You could also import sesocial as a
or swap out a to anyting you like.
And then use the commands like a.verify('yymmddxxxx')
License
This project lies under the MIT License. See LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for SE_social-1.2.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92d1f31c5acc612eb9b46b9fc9f0a29f73d75614a874c929fe35c5465dcfca44 |
|
MD5 | 7485eac8a634208861158c0e84e4be72 |
|
BLAKE2b-256 | 648c6258ac9cd8f7c83aba04f2a4c85de76892bd626f08bc2984a8633246af1d |