No project description provided
Project description
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for polywrap_client-0.1.0b5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f184af4ec7d651c94aed7bc720f8fd817c275f2633420f2eb742488bbfaf590d |
|
MD5 | c133f202133442af1e433e4e79c9884f |
|
BLAKE2b-256 | a56e2626c9735ad9cbd0ea3f2241c83f2385406379b5eacf479a0ee73e964c66 |