properties_image
项目描述
为什么
properties
为你在类中使用的属性提供结构(和文档!)properties-image
扩展了这一点,包括图像文件。
范围
properties
包允许你以一致的方式创建 强类型 对象。这允许你挂钩到 通知 和其他库。 properties-image
包包含额外的图像文件属性,这些属性不包括在 properties
中。
目标
为
properties
模块提供补充的属性类允许依赖性重的类单独安装
替代方案
properties
的替代方案
其他图像库
pypng 用于PNG编码/解码
Pillow 是PIL的分支
scikit-image 用于图像处理
连接
安装
要安装存储库,请确保您已安装 pip 并运行
pip install properties_image
对于开发版本
git clone https://github.com/3ptscience/properties-image.git
cd properties-image
pip install -e .
示例
要包含图像属性,导入 properties
和 properties_image
。然后图像属性类将位于 ext
模块中。有关更多示例,请参阅 properties。
import properties
import properties_image
class NamedImage(properties.HasProperties):
name = properties.String('Name of the image')
image = properties.ext.ImagePNG('The image')
项目详情
关闭
properties_image-0.0.1.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 623a13dcb2af558d3425abd17c2f563be9b124bff4a535b4b65a055922c9aeac |
|
MD5 | d593dfda39f7ad25743fe9ae03bbc4a8 |
|
BLAKE2b-256 | 8bbe8adaa2798916b1a74f034a4ce099c21082b79d024fda9f9275a89762e517 |