Library containing artifact type enums and functions
Python package for mapping artifact types to the ArtifactType enum in the BountyRegistry contract.
Supports python3 >=3.5.2 and >=3.6.5.
Versions in this schema
Everything in here is meant to be a part of an evolving schema. No versions, but all changes are additions only.
Use non-null and required carefully
Since we cannot remove fields, when a field is no longer useful, it needs to be nullable. Unfortunately we cannot add nullable at a later date, as that would invalidate new schemas when being read by an old
We can easily remove required fields, but we cannot add more. Doing so would invalidated old schemas.
Schema objects possess the following methods and attributes:
returns a dictionary of the model's fields and values
returns a JSON string representation dict()
returns a deep copy of the model
a utility for loading any object into a model with error handling if the object is not a dictionary
a utility for loading strings of numerous formats
like parse_raw() but for files
loads data into a model from an arbitrary class
returns a dictionary representing the model as JSON Schema
returns a JSON string representation of schema()
a class method for creating models without running validation
Set of names of fields which were set when the model instance was initialised
a dictionary of the model's fields
the configuration class for the model
Release history Release notifications | RSS feed
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size polyswarm_artifact-1.4.2-py3-none-any.whl (8.4 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size polyswarm-artifact-1.4.2.tar.gz (7.0 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for polyswarm_artifact-1.4.2-py3-none-any.whl