Polywrap System Client Config Bundle
Project description
This package contains the system configuration bundle for Polywrap Client.
Bundled Wraps
wrap |
description |
---|---|
http |
To make HTTP requests |
http_resolver |
To resolve URIs from HTTP server |
wrapscan_resolver |
To resolve URIs from wrapscan.io |
ipfs_http_client |
To add or retrieve items from IPFS |
ipfs_resolver |
To fetch wraps from IPFS |
github_resolver |
To fetch wraps from github repo |
file_system |
To perform file system operations |
file_system_resolver |
To fetch wraps from File System |
Quickstart
Imports
>>> from polywrap_client_config_builder import PolywrapClientConfigBuilder >>> from polywrap_sys_config_bundle import sys_bundle >>> from polywrap_client import PolywrapClient >>> from polywrap_core import Uri, UriPackage
Configure
>>> config = PolywrapClientConfigBuilder().add_bundle(sys_bundle).build() >>> client = PolywrapClient(config)
Invoke bundled http plugin
>>> response = client.invoke( ... uri=Uri.from_str("ens/wraps.eth:http@1.1.0"), ... method="get", ... args={"url": "https://www.google.com"}, ... ) >>> response.get("status") 200
Resolve URI with bundled wrapscan resolver
>>> response = client.try_resolve_uri( ... Uri("wrapscan.io", "polywrap/uri-resolver@1.0"), ... ) >>> assert isinstance(response, UriPackage)
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_sys_config_bundle-0.1.0b7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eae25a77dc13f4a013ce48ab719a4f4ead6f07955f83ecbd9c22809423b79184 |
|
MD5 | 64a4589b81513933a3a7363cf7e83a17 |
|
BLAKE2b-256 | 62c8ca63e885177fcc568fe2c6e30d4ff20703e280c719456ac0e75a077b33e1 |
Close
Hashes for polywrap_sys_config_bundle-0.1.0b7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26dde88febed7ccad47338a8ee10c17ee923aec5f479fc0e6c355772c9b1c948 |
|
MD5 | 3bce08e0bb8117802f713aba946cd76d |
|
BLAKE2b-256 | 8043449c667bd184900e1472acf13be5e0a87aa09f406fb0aef498ae986ff829 |