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("wrapscan.io/polywrap/http@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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddfb6e6b6dad5ba2ff7c38dd38aee4e950d2b39bcfcf63c29de63a6666973408 |
|
MD5 | 7598242d6842331c9e5b083e85a240d1 |
|
BLAKE2b-256 | 567bd4a79c210d4753c77370efa7b79c569774394fea475f2b9624840ba26ee2 |
Close
Hashes for polywrap_sys_config_bundle-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58e7ced8e6089bbf47712a5f114a1e31f375a7838a85f3e136f62abe7ab5f8ee |
|
MD5 | 52dea4793b3f0afc854113ad6afcd9b2 |
|
BLAKE2b-256 | 8a6fdfc1969539e42fe28bdfff98a7fa4eefd5ff1b1ef1780d808968994afbcc |