Skip to main content

Polywrap Fs Plugin

The Filesystem plugin enables wraps running within the Polywrap client to interact with the local filesystem.

Interface

The FileSystem plugin implements an existing wrap interface at wrapscan.io/polywrap/file-system@1.0.

Quickstart

Imports

>>> import os
>>> from polywrap_core import Uri
>>> from polywrap_client import PolywrapClient
>>> from polywrap_client_config_builder import PolywrapClientConfigBuilder
>>> from polywrap_fs_plugin import file_system_plugin

Create a Polywrap client

>>> fs_interface_uri = Uri.from_str("wrapscan.io/polywrap/file-system@1.0")
>>> fs_plugin_uri = Uri.from_str("plugin/file-system")
>>> config = (
...     PolywrapClientConfigBuilder()
...     .set_package(fs_plugin_uri, file_system_plugin())
...     .add_interface_implementations(fs_interface_uri, [fs_plugin_uri])
...     .set_redirect(fs_interface_uri, fs_plugin_uri)
...     .build()
... )
>>> client = PolywrapClient(config)

Invoke the plugin

>>> path = os.path.join(os.path.dirname(__file__), "..", "pyproject.toml")
>>> result = client.invoke(
...     uri=Uri.from_str("wrapscan.io/polywrap/file-system@1.0"),
...     method="readFile",
...     args={
...         "path": path,
...     }
... )
>>> assert result.startswith(b"[build-system]")

Metadata

Release files for polywrap-fs-plugin 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polywrap-fs-plugin 0.1.2
File Size Uploaded Provenance Actions
polywrap_fs_plugin-0.1.2.tar.gz 7.0 kB Without provenance Details for polywrap_fs_plugin-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polywrap-fs-plugin 0.1.2
File Interpreter ABI Platform Actions
polywrap_fs_plugin-0.1.2-py3-none-any.whl Python 3 none any Details for polywrap_fs_plugin-0.1.2-py3-none-any.whl

Total release size: 13.2 kB

Release files / polywrap_fs_plugin-0.1.2.tar.gz

Download URL polywrap_fs_plugin-0.1.2.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1daeaf2bfff2df70d4dd79d6188677f404c4285a63d9f4049c82f211e0ef2929
BLAKE2b-256 checksum
How to use checksums
19a6c375718cf0830dd008cab7c326b2fa9a36396f631b91df1f9dcd33b41483
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.13 Linux/5.15.0-1041-azure

Release files / polywrap_fs_plugin-0.1.2-py3-none-any.whl

Download URL polywrap_fs_plugin-0.1.2-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b706c0ba4c5d3acdaf687cccdb2b8927912a1f57dbac3fc6b5694566bc9a5cba
BLAKE2b-256 checksum
How to use checksums
72e686dbec017a555926935cb98faed8422b6345bfe1576e03fa077764cc6933
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.13 Linux/5.15.0-1041-azure

Security for polywrap-fs-plugin 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page