algorithms to generate, validate, and normalize pseudonyms
Project description
Castellum Pseudonyms
Algorithms to generate, validate, and normalize pseudonyms.
This is part of the castellum project.
Installation
pip install castellum-pseudonyms
Usage
from castellum_pseudonyms import generate, clean
# generate a new random pseudonym
pseudonym = generate(bits=40)
# normalize and validate a pseudonym entered by a user
try:
pseudonym = clean(user_input)
except ValueError:
print('invalid pseudonym')
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
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 castellum_pseudonyms-0.0.3.tar.gz.
File metadata
- Download URL: castellum_pseudonyms-0.0.3.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2054119d04bb1d542e3f6cdc5da97f71c1945e31332c122fb56357396e198c0c
|
|
| MD5 |
a3dbbbb528893f5269c4ef97cde5753f
|
|
| BLAKE2b-256 |
91a831641eda0a7ae627ccdf16a280653e4c66b39236083233b9a2b089381e0d
|
File details
Details for the file castellum_pseudonyms-0.0.3-py3-none-any.whl.
File metadata
- Download URL: castellum_pseudonyms-0.0.3-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abcedbb55625a990b75354a1d1445aa720401cce645fb5f26b688b715781ceb0
|
|
| MD5 |
a3ba1fb03569358fa347dd1a2ee4e1e3
|
|
| BLAKE2b-256 |
7b6b57bdb262fce87a236b306a4303ec8e2fbbd0de210ff3af3ee9955835a1a2
|