Skip to main content

Descriptorlib is a Python library that provides a series of powerful descriptors for enhancing the attribute functionality of Python classes.

Project description

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 文件了解更多信息。


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

descriptorlib-0.1.2.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

descriptorlib-0.1.2-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file descriptorlib-0.1.2.tar.gz.

File metadata

  • Download URL: descriptorlib-0.1.2.tar.gz
  • Upload date:
  • Size: 26.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for descriptorlib-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c9c016e00727ad10dbb62b89e355c00073e12a19f0d84c9db59c5cad89d023c5
MD5 dd097f8ba7c958e695a0aa26640c48bf
BLAKE2b-256 36337b03cd8901a436545783197907d58925012af1fae29cecb3f5c3c367a12c

See more details on using hashes here.

File details

Details for the file descriptorlib-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: descriptorlib-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for descriptorlib-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 62bb23c5047e6d82a0649d4cfc0097ea86011ae2566c2a7eccc906482e6aeef3
MD5 7d4d08534982e8ad49335ddf7480631e
BLAKE2b-256 fd4c53e853e0c4812107bd4d84585029836565a3eba1698dba8761d64a333e5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page