PolySwarm Artifact
Python package for mapping artifact types to the ArtifactType enum in the BountyRegistry contract.
Supports python3 >= 3.10.
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 invalidate old schemas.
Schema object
Schema objects possess the following methods and attributes:
dict()
returns a dictionary of the model's fields and values
json()
returns a JSON string representation dict()
copy()
returns a deep copy of the model
parse_obj()
a utility for loading any object into a model with error handling if the object is not a dictionary
parse_raw()
a utility for loading strings of numerous formats
parse_file()
like parse_raw() but for files
from_orm()
loads data into a model from an arbitrary class
schema()
returns a dictionary representing the model as JSON Schema
schema_json()
returns a JSON string representation of schema()
construct()
a class method for creating models without running validation
__fields_set__
Set of names of fields which were set when the model instance was initialised
__fields__
a dictionary of the model's fields
__config__
the configuration class for the model
Metadata
Release files for polyswarm-artifact 2.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| polyswarm_artifact-2.2.4.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| polyswarm_artifact-2.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / polyswarm_artifact-2.2.4.tar.gz
| Download URL | polyswarm_artifact-2.2.4.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98e05b1c0a70b1c306c4f69eac49834ac9aa8623ecf436c377dc184c70e4c82a
|
|
BLAKE2b-256 checksum How to use checksums |
e486ac1a971e4ec11defb9f4e70760e3c59f49dca822d2d3b3fe2d6e4326817f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Release files / polyswarm_artifact-2.2.4-py3-none-any.whl
| Download URL | polyswarm_artifact-2.2.4-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2508a6c510ccfdc76c801a8618c55fe98ae9f83172e36cac5822dde0f24beed2
|
|
BLAKE2b-256 checksum How to use checksums |
38236c04cd567927c6bfa357a4420d9803eacf99968fbc0ec9faf72b0be89898
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|