Based on `Dominator` gun from `Psycho-Pass`, it reads and analyzes user data to determine the risk of user on financial systems.
### Helper methods
If you want, you can send `User` model to `Dominator` and it will call few methods that you can use.
Sample:
```python
from dominator import Dominator
from core.models import User
Dominator().validate_tax_id("...", user=User)
```
If `Tax ID` is invalid, `Dominator` will try call `dominator_lock_account()` method inside the given model. So you just need create a method to execute anything you may need do if account need be locked.
If `Tax ID` is valid, `Dominator` will call for `dominator_is_valid_tax_id` sending the `SERPRO` answer as parameter.
Sample `CPF` answer parameter:
```
{
"tax_id": "077.703.749-10",
"name": "RAPHAEL FILIPE SCHUBERT",
"birthday": pendulum.date(year=1992, month=2, day=10),
"raw": {
"ni": "07770374910",
"nome": "RAPHAEL FILIPE SCHUBERT",
"nascimento": "10021992",
"situacao": {
"codigo": "0", "descricao": "Regular"
}
}
}
```
It will be sended as `serpro` parameter, so you will need an method like:
`def dominator_is_valid_tax_id(self, *args, **kwargs)` than you will be able to access it as `serpro['tax_id']` or any data inside it.
You can provide an `cpf_django_model` on `validate_tax_id` method that will try find and store SERPRO CPF on database.
Metadata
Release files for sdk-dominator 0.0.6
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 | |
|---|---|---|---|---|
| sdk-dominator-0.0.6.tar.gz | 38.9 kB | Without provenance | Details |
Release files / sdk-dominator-0.0.6.tar.gz
| Download URL | sdk-dominator-0.0.6.tar.gz |
|---|---|
| Size | 38.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a66470b24ecc4545c21e616abaf6b2723d7f127cefa1d0b654cd98da65d91e9
|
|
BLAKE2b-256 checksum How to use checksums |
eb81549d2f301b8b4d03363a8c485189bb492b3cb87db8d86dd933e1c2be9ebe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for sdk-dominator 0.0.6
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.