Add your description here
Project description
PySSQ - 中国双色球随机生成器
一个简单的中国福利彩票双色球随机号码生成器。
安装(测试阶段使用 uv)
# 正式发布后
pip install pyssq
# 如果使用uv管理项目
# 正式发布后
uv add pyssq
# 测试发布时
uv add --default-index https://test.pypi.org/simple/ pyssq
使用示例
from pyssq import DoubleColorBall
# 生成一注
ticket = DoubleColorBall.generate()
print(DoubleColorBall.pretty_print(ticket))
# 生成5注
for i, ticket in enumerate(DoubleColorBall.generate_batch(5), 1):
print(f"第{i}注: {DoubleColorBall.pretty_print(ticket)}")
# 验证号码
print(DoubleColorBall.validate([1,2,3,4,5,6], 7)) # True
print(DoubleColorBall.validate([1,1,2,3,4,5], 7)) # False
功能
- 随机生成符合规则的双色球号码
- 批量生成多注号码
- 号码验证功能
- 美化输出格式
贡献
欢迎提交 issue 或 pull request。
许可证
MIT
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
pyssq-0.1.1.tar.gz
(3.2 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
pyssq-0.1.1-py3-none-any.whl
(3.2 kB
view details)
File details
Details for the file pyssq-0.1.1.tar.gz.
File metadata
- Download URL: pyssq-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50ddd41067a12fdc467245d5da40223cda8288dc7470467aace3f85fc0f9e509
|
|
| MD5 |
31a7142f20bd618484311bccb92d621d
|
|
| BLAKE2b-256 |
ee6bd7ca235fd479e045b03f4c1772b839a3d418e9585d03e5694383f7d96266
|
File details
Details for the file pyssq-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyssq-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05c5413664d8951755a0fad2f7364398ff2798a03bf57ec2ea495f66b35c92fe
|
|
| MD5 |
b1588d24619e015f6a16d96f8f4c3065
|
|
| BLAKE2b-256 |
b4cdedf055028ccfd7d751b33a875cd2f96929fc6adabe6e34e6acd35a9e2453
|