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
Metadata
Release files for SE-social 1.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| SE_social-1.2.3.tar.gz | 3.6 kB | Without provenance | Details for SE_social-1.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| SE_social-1.2.3-py3-none-any.whl | Python 3 | none | any | Details for SE_social-1.2.3-py3-none-any.whl |
Total release size: 7.5 kB
Security for SE-social 1.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.