Skip to main content

Descriptorlib: Python 属性描述符库


Python Version License Coverage Status PyPI Documentation Status

Descriptorlib 是一个 Python 库,它提供了一系列强大的描述符,用于增强 Python 类的属性功能。通过使用描述符,你可以轻松实现属性的类型检查、只读、延迟初始化、版本控制、线程安全等特性。

安装

使用 pip 安装 Descriptorlib:

pip install Descriptorlib

文档

Descriptorlib 提供了详细的文档,包括中文和英文版本。每个描述符都有其对应的文档,方便用户查找和使用。

常见问题与解决方案

ChineseEnglish 目录下都有一个 FAQ 目录,收录了常见问题与解决方案。

测试

我们为每个描述符提供了单元测试,确保它们的可用性和正确性。测试代码位于 tests 目录。

示例

examples 目录提供了描述符的使用示例,帮助用户快速上手。

库结构

  • monomer: 所有描述符都储存在此目录下。
  • libException: 包含所有错误信息的目录。
  • utils:包含公用于所有描述符的工具目录。

贡献指南

我们欢迎和鼓励社区成员为 Descriptorlib 做出贡献。请参考 CONTRIBUTING.md 了解如何贡献代码。

许可证

Descriptorlib 使用 LGPL 许可证,请查看 LICENSE 文件了解更多信息。


Release files for descriptorlib 0.1.4

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

Source distribution (sdist)

Source distribution for descriptorlib 0.1.4
File Size Uploaded
descriptorlib-0.1.4.tar.gz 35.3 kB Details

Built distribution (wheel)

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

Total release size: 70.1 kB

Release files / descriptorlib-0.1.4.tar.gz

Download URL descriptorlib-0.1.4.tar.gz
Size 35.3 kB
Tags Source
SHA-256 checksum
How to use checksums
23820ebb8c6d32fded0fb7d5cb94c9feb24d94138e9b44607f6b686587730dfa
BLAKE2b-256 checksum
How to use checksums
99f4e89d64ff84d9eeab2241c7d5e37ca608801d0608155fc7518d4b31e82ac1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.16

Release files / descriptorlib-0.1.4-py3-none-any.whl

Download URL descriptorlib-0.1.4-py3-none-any.whl
Size 34.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31c24358d983066de8d98dafead39154ba5b63f8af57d43c9f54aec4a6d34b1d
BLAKE2b-256 checksum
How to use checksums
63dbff1bbb52316bb7fee4f7ffec23fae142799c39d0a1fed8278c56d3b859e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.16

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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