Polywrap
This package contains the Polywrap Python SDK.
Installation
Install the package with pip:
pip install polywrap
Quickstart
Imports
>>> from polywrap import ( ... Uri, ... ClientConfig, ... PolywrapClient, ... PolywrapClientConfigBuilder, ... sys_bundle, ... web3_bundle ... )
Configure and Instantiate
>>> builder = ( ... PolywrapClientConfigBuilder() ... .add_bundle(sys_bundle) ... .add_bundle(web3_bundle) ... ) >>> config = builder.build() >>> client = PolywrapClient(config)
Invocation
Invoke a wrapper.
>>> uri = Uri.from_str(
... 'wrapscan.io/polywrap/ipfs-http-client'
... )
>>> args = {
... "cid": "QmZ4d7KWCtH3xfWFwcdRXEkjZJdYNwonrCwUckGF1gRAH9",
... "ipfsProvider": "https://ipfs.io",
... }
>>> result = client.invoke(uri=uri, method="cat", args=args, encode_result=False)
>>> assert result.startswith(b"<svg")
Metadata
Release files for polywrap 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| polywrap-0.1.2.tar.gz | 1.8 kB | Without provenance | Details for polywrap-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polywrap-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for polywrap-0.1.2-py3-none-any.whl |
Total release size: 4.2 kB
Release files / polywrap-0.1.2.tar.gz
| Download URL | polywrap-0.1.2.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d41cbf5436df0223c5e064abf4b24cc7e5224fc5948f06d1159ffb455f11288e
|
|
BLAKE2b-256 checksum How to use checksums |
a91c8f87d255673c6116b4b588df098ff39351937e0e02e2930c2c18ff12ef4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.13 Darwin/22.6.0
|
Release files / polywrap-0.1.2-py3-none-any.whl
| Download URL | polywrap-0.1.2-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
292a754c97c75506f101e8007ea369554a25269778b60512c22eb010868bc0ef
|
|
BLAKE2b-256 checksum How to use checksums |
4701858a5d05004018796891965e85afb9a4ff8f57d056ea96c34df36ca71dd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.13 Darwin/22.6.0
|
Security for polywrap 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.