Why
properties gives structure (and documentation!) to the properties you use in your
classes. properties-image extends this to include image files.
Scope
The properties package allows you to create strongly typed objects in a
consistent way. This allows you to hook into notifications and other libraries.
The properties-image package contains additional image file properties with
external dependencies not included in properties.
Goals
Provide supplementary Property classes to the
propertiesmoduleAllow dependency-heavy classes to be installed separately
Alternatives
Alternatives to properties:
traits is used by Enthought
traitlets is used in the Jupyter project
mypy and PEP0484 which document typing but do not include coercion or notifications
Other image libraries:
pypng for PNG encoding/decoding
Pillow a fork of PIL
scikit-image for image processing
Connections
steno3d for the client API
Installation
To install the repository, ensure that you have pip installed and run:
pip install properties_image
For the development version:
git clone https://github.com/3ptscience/properties-image.git
cd properties-image
pip install -e .
Examples
To include an image property, import properties and properties_image.
Then the image property classes will be in the ext module. For additional examples,
see properties.
import properties
import properties_image
class NamedImage(properties.HasProperties):
name = properties.String('Name of the image')
image = properties.ext.ImagePNG('The image')
Metadata
Release files for properties-image 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| properties_image-0.0.1.tar.gz | 3.8 kB | Details |
Release files / properties_image-0.0.1.tar.gz
| Download URL | properties_image-0.0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
623a13dcb2af558d3425abd17c2f563be9b124bff4a535b4b65a055922c9aeac
|
|
BLAKE2b-256 checksum How to use checksums |
8bbe8adaa2798916b1a74f034a4ce099c21082b79d024fda9f9275a89762e517
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |