Skip to main content

一个模仿 C++ 风格输入输出流的 Python 库,提供增强的打印和输入功能,支持颜色、格式化、验证等高级特性。

功能特点

输出功能 (ostream.py)

  • 增强版 println: 支持颜色、时间戳、日志级别
  • C++ 风格流输出: 使用 << 操作符
  • C 风格 printf: 使用 str.format() 格式化
  • 丰富的颜色系统: 支持标准色、亮色、背景色
  • 自动样式重置: 无需手动重置颜色
  • 日志功能: 支持时间戳、日志等级输出

输入功能 (istream.py)

  • 增强版 read: 支持默认值、类型验证、自动添加冒号
  • C++ 风格流输入: 使用 >> 操作符
  • 多种输入类型: 字符串、整数、浮点数、布尔值等
  • 数据验证: 邮箱、URL、电话号码格式验证
  • 约束检查: 长度、范围、选项限制

拥有函数(__init__.py)

Color, InputLevel, TextStyle, cerr, cin, cout, critical
debug, error, info, printf, printf_old, println, read, read_bool
read_email, read_float, read_int, read_list, read_phone
read_string, read_url, success, trace, warning

Metadata

Release files for superio 1.1.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 superio 1.1.0
File Size Uploaded Provenance Actions
superio-1.1.0.tar.gz 8.8 kB Without provenance Details for superio-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for superio 1.1.0
File Interpreter ABI Platform Actions
superio-1.1.0-py3-none-any.whl Python 3 none any Details for superio-1.1.0-py3-none-any.whl

Total release size: 17.4 kB

Release files / superio-1.1.0.tar.gz

Download URL superio-1.1.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
affce0204dae694a9f8a56809800166fccb210f67e8d6e0094fea34b9d3f4e6c
BLAKE2b-256 checksum
How to use checksums
1d909c588e1292700f2b8ac64747257163a1517d7457d9cb86c1fa0a9d6d95f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / superio-1.1.0-py3-none-any.whl

Download URL superio-1.1.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2d0d0bc1624fc3815cefab746135849e5803b788f0fdc9246856514e64a9fed
BLAKE2b-256 checksum
How to use checksums
3d1af4463af80d2769557ab1d2709a61c7b0fb50d0fc04cfab148a27c6db9a0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for superio 1.1.0

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.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

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