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.0b6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1099a17fe90b5fc720d535479d1c63eb89897070a7e54034e06b43ee27bbbb0a |
|
MD5 | f6712818da65ec3a684e85b0e1b327b8 |
|
BLAKE2b-256 | 1cfbb26b362d9e1e8e0da192829a47801392b831734de1b7bf08c1a41654e63e |
Close
Hashes for polywrap_sys_config_bundle-0.1.0b6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9fbcfbf697c67ad17b08359cd9bf9491bbd370ae6d6ddcbaacb01fd28b279b2 |
|
MD5 | 87c4d9083a497974bb33af03edca82f7 |
|
BLAKE2b-256 | 77679938e476c33d0a17d5a5cd9bc4621ad38c0870821ae014f74e381d2e7a18 |