Validate Generate Sanitize Code
Project description
VGSCode
Validate Generate Sanitize Code
List of supported codes:
- Kazakhstan: IIN, BIN
- ...
Install
pip install vgscode
Usage
import vgscode
Example
validate
vgscode.vBIN("320243026191"); #return True
vgscode.vIIN("320229474023"); #return False
generate
vgscode.gBIN("320243"); #return 320243952485
vgscode.gIIN("320229"); #return 320229980830
sanitize
vgscode.sNumberToString(320229474021); #return 320229474021
vgscode.sTrimStart(" 320229474021"); #return 320229474021
vgscode.sTrimEnd("320229474021 "); #return 320229474021
vgscode.sTrimBoth(" 320229474021 "); #return 320229474021
vgscode.sTrimAll("32 0229 4740 21"); #return 320229474021
vgscode.sRemoveNonDigits("320#%2294 74fwef021"); #return 320229474021
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 Distribution
vgscode-1.0.3.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vgscode-1.0.3.tar.gz.
File metadata
- Download URL: vgscode-1.0.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdf458260b0f2730e88164ab671304261b292db033cacc0e1be3bc2eb0eacb83
|
|
| MD5 |
7311e1b471607d08583132eaac610f21
|
|
| BLAKE2b-256 |
247d138f5dc427478cf20eda5f5b9506561e52c886e0e1e1dea8dc3595ea0209
|
File details
Details for the file vgscode-1.0.3-py3-none-any.whl.
File metadata
- Download URL: vgscode-1.0.3-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c383bfb3cbbde8a07d20329936b70c401a122e687b8c7d4a03596ddb5684f67e
|
|
| MD5 |
7dfa86e2ad5e6a80496ec074a043c6a1
|
|
| BLAKE2b-256 |
4098cf324184639bbf690364d7c0ab04328e3d211e33af4742d039546e625dad
|