antkit
Generate tokens and passwords with secrets — never with random.
Install
pip install antkit
Usage
from antkit import password, token
token() # 22-char URL-safe string, 16 bytes of entropy
token(m_bytes=32) # longer
token(n_urlsafe=False) # hex instead
password() # 16 chars, all four classes
password(24, n_symbols=False)
password(12, n_lower=False, n_upper=False) # digits + symbols only
Guarantees
| Function | Guarantee |
|---|---|
token |
secrets-backed, URL-safe by default |
password |
at least one character from every enabled class |
password |
order shuffled, guaranteed chars are not prefix-stuck |
| both | ValueError on impossible requests |
random is not used anywhere: it is seeded predictably and is the wrong tool
for anything a user must not guess.
License
MIT
Metadata
Release files for antkit 0.0.2
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 |
|---|---|---|---|---|
| antkit-0.0.2.tar.gz | 3.2 kB | Without provenance | Details for antkit-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| antkit-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for antkit-0.0.2-py3-none-any.whl |
Total release size: 6.8 kB
Release files / antkit-0.0.2.tar.gz
| Download URL | antkit-0.0.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb8c13d2fd7c1d59379d896eb9c9aa97832b4c980a637f1555d241531e303d68
|
|
BLAKE2b-256 checksum How to use checksums |
9c65f19011124ee31381c280c4d94e3421cb3d57f7745baab72c2c8ce59c7fe4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.11
|
Release files / antkit-0.0.2-py3-none-any.whl
| Download URL | antkit-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
626c66400822df10dc37f11b702607508cc04f678d1402d2b2e0e4fe98ad6223
|
|
BLAKE2b-256 checksum How to use checksums |
68a81d2338e165e059f32d76ac45754a65cea8d124cf589bbed213fed826fc17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.11
|
Security for antkit 0.0.2
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.