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.0b8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17d5150899050980193e099ba264011b751bbc155c16d6ddeb5c956ce62792c8 |
|
MD5 | a50d4461dd465a667adfd2129e81e02a |
|
BLAKE2b-256 | 14acc7e60dd6d380b30588afad0ed325eb69c12b2b45e03854b3bf489ac9fb3c |
Close
Hashes for polywrap_sys_config_bundle-0.1.0b8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54f6adabe40523b535188b4b42cb3301751acdc85e550508bc18cffc3de9ae8f |
|
MD5 | da53f2d458de190ea7e9484e79060018 |
|
BLAKE2b-256 | 51f6ab688a64b72b9bd5327d31ceaa97c32cbfec1b48ac742b6c834ba96d62b7 |