Skip to main content

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

OPTIONAL: You can add age and gender to sesocial.generate(age, gender)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SE_social-1.2.3.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

SE_social-1.2.3-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page