Skip to main content

Polywrap Client

This package contains the implementation of polywrap python client.

Quickstart

Imports

>>> from polywrap_core import Uri, ClientConfig
>>> from polywrap_client import PolywrapClient
>>> from polywrap_client_config_builder import PolywrapClientConfigBuilder
>>> from polywrap_sys_config_bundle import sys_bundle
>>> from polywrap_web3_config_bundle import 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-client 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polywrap-client 0.1.2
File Size Uploaded Provenance Actions
polywrap_client-0.1.2.tar.gz 4.0 kB Without provenance Details for polywrap_client-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polywrap-client 0.1.2
File Interpreter ABI Platform Actions
polywrap_client-0.1.2-py3-none-any.whl Python 3 none any Details for polywrap_client-0.1.2-py3-none-any.whl

Total release size: 9.0 kB

Release files / polywrap_client-0.1.2.tar.gz

Download URL polywrap_client-0.1.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
484d0250d47368389955f9c3be9aedc6836f84a1d2ea4561ac04affe3b8d3ad9
BLAKE2b-256 checksum
How to use checksums
eb5a0f318d12d5d2d1d188c716b0c56255674912e0bf0d0969eb4ecd5d0f82c9
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_client-0.1.2-py3-none-any.whl

Download URL polywrap_client-0.1.2-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c91d7d4df2ef71f4599f5d436ece6cb12a6ea97c170e537e1f67adf2966fcb92
BLAKE2b-256 checksum
How to use checksums
6078b84de8a0c440c90d7f6d3d0915b5562ca01923f3524b71015789e039fdef
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-client 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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page