Skip to main content

quantum-sg

A command line tool that generates a cryptographically secure quantum-level secrets using ANU QRNG.

Usage

This function generates a random set of secrets using the quantumrandom library. The parameters population, number and length are optional.

from string import digits
from quantum_sg import rand

rand(length=24, number=2, population=digits)

Usage as CLI

$ pip install quantum-sg
$ quantum-sg -l 24 -n 2
> 4HOpcSlzrP1JA5pFROUJLi7V
> FkEKjlgm08Ey17HrAeeKKRl4

Options

This command line utility can be used to generate secure secrets of specified length and complexity.

The -h or --help flag will display a help message to the user with instructions on how to use the utility.

The -n or --number flag will allow the user to specify the number of secrets to generate. By default, the utility will generate one secret.

The -l or --length flag will allow the user to specify the length of each generated secret. By default, this length is 24 characters.

The -wd, --digits, -wl, --lowercase, -wu, --uppercase, -wp and --punctuation flags will allow the user to specify which types of characters should be included in the generated secrets. By default, digits, lowercase characters, and uppercase characters are included.

License

The MIT License (MIT)

Copyright (c) 2026 Alexander Shelepenok

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for quantum-sg 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quantum-sg 0.2.0
File Size Uploaded
quantum_sg-0.2.0.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quantum-sg 0.2.0
File Interpreter ABI Platform
quantum_sg-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / quantum_sg-0.2.0.tar.gz

Download URL quantum_sg-0.2.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8dbd5309c4a3a97dfd260bbd1c5b7ff5626d2c6bcc405d7ebc96835e1dbb688b
BLAKE2b-256 checksum
How to use checksums
0a5b2467fff2b0864eaa0b10679663de5a48ab7bdcf43aa1ace38c65cd8c61bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / quantum_sg-0.2.0-py3-none-any.whl

Download URL quantum_sg-0.2.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba3585f671930304bee56ead5e4dc3811ab3445025292fe8c07b3905a0377ba1
BLAKE2b-256 checksum
How to use checksums
ba5500d92cfac583e1e2f1ff9afe3e4fb5d85c045f16b6025e8f2f5dad13ccd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page