Skip to main content

Library containing artifact type enums and functions

Project description

PolySwarm Artifact

pipeline status coverage report

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 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

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

polyswarm-artifact-1.4.3.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

polyswarm_artifact-1.4.3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file polyswarm-artifact-1.4.3.tar.gz.

File metadata

  • Download URL: polyswarm-artifact-1.4.3.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.8

File hashes

Hashes for polyswarm-artifact-1.4.3.tar.gz
Algorithm Hash digest
SHA256 cff2ad61da82dbe0de7a02d8130d0d7eb8f9ed8d65a741d853467d64395d4ab3
MD5 70302aa2337e57a742687bd9233131e6
BLAKE2b-256 6eb1c210d1ac25dd36b10d5f22a1cb84f2469bf2e1005a3ed1507fa55c7001b5

See more details on using hashes here.

File details

Details for the file polyswarm_artifact-1.4.3-py3-none-any.whl.

File metadata

  • Download URL: polyswarm_artifact-1.4.3-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.8

File hashes

Hashes for polyswarm_artifact-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b3594ad4bd9a5d5225fb66e245259d48ce065192e3a38ecc189cffde94d5ea5f
MD5 8680a82afeae27458d3d5db192033da5
BLAKE2b-256 d8376caca2afab218b4b682b2c73284faab8955eff7c603ae68459356f9ed901

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