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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file SE_social-1.2.3.tar.gz.

File metadata

  • Download URL: SE_social-1.2.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for SE_social-1.2.3.tar.gz
Algorithm Hash digest
SHA256 995567579cc2545f3ece62ea2ef2e3922b3c5b8abf77d830dfe55b1721210246
MD5 7b0d4c3a40b5b6f1b6907df5d1e94a74
BLAKE2b-256 b531df4efc75b23a119e0295f528ec99a5494021006a7c4be93c8a28992ca1b5

See more details on using hashes here.

File details

Details for the file SE_social-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: SE_social-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for SE_social-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 77cd4a7533291c7f564e2f32550ec58a08fd6c25e0401477fbd9c94adac37ad1
MD5 f3ed378ce11dda9cd7dad6f3db415d62
BLAKE2b-256 f91af6000341497a4db8baf9cc89b907211f47bd47057b50196ae97d7463e6f8

See more details on using hashes here.

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