semvec/pypi-packages huggingface dataset:
polywrap 0.1.2
Polywrap Python SDK
Requires Python: >=3.10,<4.0

Polywrap
========
This package contains the Polywrap Python SDK.

Installation
============
Install the package with pip:

.. code-block:: bash

    pip install polywrap

Quickstart
==========

Imports
-------

>>> from polywrap import (
...     Uri,
...     ClientConfig,
...     PolywrapClient,
...     PolywrapClientConfigBuilder,
...     sys_bundle,
...     web3_bundle
... )

Configure and Instantiate
-------------------------

>>> builder = (
...     PolywrapClientConfigBuilder()
...     .add_bundle(sys_bundle)
...     .add_bundle(web3_bundle)
... )
>>> config = builder.build()
>>> client = PolywrapClient(config)

Invocation
----------

Invoke a wrapper.

>>> uri = Uri.from_str(
...     'wrapscan.io/polywrap/ipfs-http-client'
... )
>>> args = {
...     "cid": "QmZ4d7KWCtH3xfWFwcdRXEkjZJdYNwonrCwUckGF1gRAH9",
...     "ipfsProvider": "https://ipfs.io",
... }
>>> result = client.invoke(uri=uri, method="cat", args=args, encode_result=False)
>>> assert result.startswith(b"<svg")
polywrap-web3-config-bundle 0.1.2
Polywrap Web3 Client Config Bundle
Requires Python: >=3.10,<4.0

Polywrap Web3 Config Bundle
===========================
This package contains the system configuration bundle for Polywrap Client.

Bundled Wraps
-------------

.. csv-table::
    :header: "wrap", "description"

    "http", "To make HTTP requests"
    "ipfs_http_client", "To add or retrieve items from IPFS"
    "ipfs_resolver", "To fetch wraps from IPFS"
    "ethereum_provider", "To perform ethereum RPC calls"
    "ethereum-wrapper", "A higher level API to perform ethereum operations (like etheres.js)"
    "ens_text_record_resolver", "To resolve URIs from ens text record"
    "ens_ipfs_contenthash_resolver", "To resolve URIs from ens content hash"
    "ens_resolver", "To resolve URIs from ens"

Quickstart
----------

Imports
~~~~~~~

>>> from polywrap_client_config_builder import PolywrapClientConfigBuilder
>>> from polywrap_web3_config_bundle import web3_bundle
>>> from polywrap_client import PolywrapClient
>>> from polywrap_core import Uri, UriPackage

Configure
~~~~~~~~~

>>> config = PolywrapClientConfigBuilder().add_bundle(web3_bundle).build()
>>> client = PolywrapClient(config)

Resolve URI with bundled ens resolver
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>>> response = client.try_resolve_uri(
...     Uri.from_str("wrap://ens/wrap-link.eth")
... )
>>> assert isinstance(response, UriPackage)
polywrap-sys-config-bundle 0.1.2
Polywrap System Client Config Bundle
Requires Python: >=3.10,<4.0

Polywrap Sys Config Bundle
==========================
This package contains the system configuration bundle for Polywrap Client.

Bundled Wraps
-------------

.. csv-table::
    :header: "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)
polywrap-uri-resolvers 0.1.2
Polywrap URI resolvers
Requires Python: >=3.10,<4.0

Polywrap Uri Resolvers
======================
This package contains URI resolvers for polywrap-client.

Resolvers
---------
.. csv-table::
    :header: "resolver", "description"

    "WrapperResolver", "Defines a simple statically registered resolver for a wrapper."
    "PackageResolver", "Defines a simple statically registered resolver for a wrap package."
    "RedirectResolver", "Defines a simple resolver to redirect a URI to another URI."
    "StaticResolver", "Defines a simple resolver that allows registering an Uri to redirect or resolve to wrapper or wrap package."
    "UriResolverAggregator", "Defines a resolver that aggregates a list of resolvers."
    "RecursiveResolver", "Defines a resolver that recursively resolves the URI until the result is no longer a URI."
    "ExtendableUriResolver", "Defines a resolver that resolves a uri to a wrapper by using extension wrappers."
    "ResolutionResultCacheResolver", "Defines a resolver that caches the URI resolution result."

.. csv-table::
    :header: "error", "description"

    "UriResolutionError", "Base class for all errors related to URI resolution."
    "InfiniteLoopError", "Raised when an infinite loop is detected while resolving a URI."
    "UriResolverExtensionError", "Base class for all errors related to URI resolver extensions."
    "UriResolverExtensionNotFoundError", "Raised when an extension resolver wrapper could not be found for a URI."
polywrap-client 0.1.2
Polywrap Client to invoke Polywrap Wrappers
Requires Python: >=3.10,<4.0

Polywrap Client
===============
This package contains the implementation of polywrap python client.

Quickstart
==========

Imports
-------

>>> from polywrap_core import Uri, ClientConfig
>>> from polywrap_client import PolywrapClient
>>> from polywrap_client_config_builder import PolywrapClientConfigBuilder
>>> from polywrap_sys_config_bundle import sys_bundle
>>> from polywrap_web3_config_bundle import web3_bundle

Configure and Instantiate
-------------------------

>>> builder = (
...     PolywrapClientConfigBuilder()
...     .add_bundle(sys_bundle)
...     .add_bundle(web3_bundle)
... )
>>> config = builder.build()
>>> client = PolywrapClient(config)

Invocation
----------

Invoke a wrapper.

>>> uri = Uri.from_str(
...     'wrapscan.io/polywrap/ipfs-http-client'
... )
>>> args = {
...     "cid": "QmZ4d7KWCtH3xfWFwcdRXEkjZJdYNwonrCwUckGF1gRAH9",
...     "ipfsProvider": "https://ipfs.io",
... }
>>> result = client.invoke(uri=uri, method="cat", args=args, encode_result=False)
>>> assert result.startswith(b"<svg")
polywrap-ethereum-wallet 0.1.2
Ethereum wallet plugin for Polywrap Python Client
Requires Python: >=3.10,<4.0

Polywrap Ethereum Wallet
========================
This package provides a Polywrap plugin for interacting with EVM networks.

The Ethereum wallet plugin implements the `ethereum-provider-interface`     @ `wrapscan.io/polywrap/ethereum-wallet@1.0`     (see `../../interface/polywrap.graphql` ).     It handles Ethereum wallet transaction signatures and sends JSON RPC requests     for the Ethereum wrapper.

Quickstart
----------

Imports
~~~~~~~

>>> from polywrap_core import Uri
>>> from polywrap_client import PolywrapClient
>>> from polywrap_ethereum_wallet import ethereum_wallet_plugin
>>> from polywrap_ethereum_wallet.connection import Connection
>>> from polywrap_ethereum_wallet.connections import Connections
>>> from polywrap_ethereum_wallet.networks import KnownNetwork
>>> from polywrap_client_config_builder import (
...     PolywrapClientConfigBuilder
... )

Configure Client
~~~~~~~~~~~~~~~~

>>> ethreum_provider_interface_uri = Uri.from_str("wrapscan.io/polywrap/ethereum-wallet@1.0")
>>> ethereum_wallet_plugin_uri = Uri.from_str("plugin/ethereum-provider")
>>> connections = Connections(
...     connections={
...         "sepolia": Connection.from_network(KnownNetwork.sepolia, None)
...     },
...     default_network="sepolia"
... )
>>> client_config = (
...     PolywrapClientConfigBuilder()
...     .set_package(
...         ethereum_wallet_plugin_uri,
...         ethereum_wallet_plugin(connections=connections)
...     )
...     .add_interface_implementations(
...         ethreum_provider_interface_uri,
...         [ethereum_wallet_plugin_uri]
...     )
...     .set_redirect(ethreum_provider_interface_uri, ethereum_wallet_plugin_uri)
...     .build()
... )
>>> client = PolywrapClient(client_config)

Invocation
~~~~~~~~~~

>>> result = client.invoke(
...     uri=ethreum_provider_interface_uri,
...     method="request",
...     args={"method": "eth_chainId"},
...     encode_result=False,
... )
>>> print(result)
"0xaa36a7"
polywrap-http-plugin 0.1.2
Http plugin for Polywrap Python Client
Requires Python: >=3.10,<4.0

Polywrap Http Plugin
====================
This package contains the HTTP plugin.

Http plugin currently supports two different methods `GET` and    `POST`. Similar to calling axios, when defining request    you need to specify a response type. Headers and     query parameters may also be defined.

Response Types
--------------

`TEXT` - The server will respond with text,     the HTTP plugin will return the text as-is.

`BINARY` - The server will respond with binary data (_bytes_),     the HTTP plugin will encode as a **base64** string and return it.

Quickstart
----------

Imports
~~~~~~~

>>> import json
>>> from polywrap_core import Uri
>>> from polywrap_client import PolywrapClient
>>> from polywrap_client_config_builder import PolywrapClientConfigBuilder
>>> from polywrap_http_plugin import http_plugin
>>> from polywrap_msgpack import GenericMap

Create a Polywrap client
~~~~~~~~~~~~~~~~~~~~~~~~

>>> http_interface_uri = Uri.from_str("wrapscan.io/polywrap/http@1.0")
>>> http_plugin_uri = Uri.from_str("plugin/http")
>>> config = (
...     PolywrapClientConfigBuilder()
...     .set_package(http_plugin_uri, http_plugin())
...     .add_interface_implementations(http_interface_uri, [http_plugin_uri])
...     .set_redirect(http_interface_uri, http_plugin_uri)
...     .build()
... )
>>> client = PolywrapClient(config)

Make a GET request
~~~~~~~~~~~~~~~~~~

>>> result = client.invoke(
...     uri=http_interface_uri,
...     method="get",
...     args={
...         "url": "https://jsonplaceholder.typicode.com/posts",
...         "request": {
...             "responseType": "TEXT",
...             "urlParams": GenericMap({"id": 1}),
...             "headers": GenericMap({"X-Request-Header": "req-foo"}),
...         },
...     }
... )
>>> result.get("status")
200

Make a POST request
~~~~~~~~~~~~~~~~~~~

>>> result = client.invoke(
...     uri=http_interface_uri,
...     method="post",
...     args={
...         "url": "https://jsonplaceholder.typicode.com/posts",
...         "request": {
...             "responseType": "TEXT",
...             "body": json.dumps({
...                 "userId": 11,
...                 "id": 101,
...                 "title": "foo",
...                 "body": "bar"
...             }),
...             "headers": GenericMap({"X-Request-Header": "req-foo"}),
...         },
...     }
... )
>>> result.get("status")
201
polywrap-fs-plugin 0.1.2
File-system plugin for Polywrap Python Client
Requires Python: >=3.10,<4.0

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]")
telegram-notifier-bot 1.0.0
Send a notification to a Telegram user or group.
Requires Python: >=3.8.10
Keywords: telegram,bot

# telegram_notifier_bot - v1.0.0

A simple package to send notifications to a Telegram user or group. 

E.g.

- Send notifications triggered by some event
  - in a monitoring system
  - an IoT device
  - a service

## Installation

### From PyPI

```bash
(venv) $ pip install telegram-notifier-bot
(venv) $
```

### From GitHub

```bash
(venv) $ pip install git+https://github.com/p4irin/telegram_notifier_bot.git
(venv) $
```

### Verify

```bash
(venv) $ python
Python 3.8.10 (default, Jun  2 2021, 10:49:15) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import telegram_notifier_bot
>>> telegram_notifier_bot.__version__
'0.0.1'
>>>
```

## Usage

### Prerequisite

[Create a new Telegram bot](https://core.telegram.org/bots/features#creating-a-new-bot)

### Send a notification

```bash
(venv) $ export TELEGRAM_BOT_TOKEN=<Your Telegram bot token>
(venv) $ export TELEGRAM_CHAT_ID=<Recipient(s) chat or group id>
(venv) $ export TELEGRAM_PATH_TO_PHOTO=<File system path to photo>
(venv) $ python
Python 3.8.10 (default, Jun  2 2021, 10:49:15) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> from telegram_notifier_bot import Notifier
>>> token = os.getenv('TELEGRAM_BOT_TOKEN')
>>> chat_id = os.getenv('TELEGRAM_CHAT_ID')
>>> photo = os.getenv('TELEGRAM_PATH_TO_PHOTO')
>>> notifier = Notifier(token)
>>> notifier.send("We're out of coffee! Please fix ASAP!", chat_id)
>>> notifier.send_photo(photo, chat_id)
>>>
```

## Reference

- [The Telegram Bot API](https://core.telegram.org/bots/api)
- [Requests: HTTP for Humans](https://requests.readthedocs.io/en/latest/)
nbopen 0.7
Open a notebook from the command line in the best available server
Requires Python: >=3.5

Open notebooks from the command line

nbopen looks for the nearest running notebook server - if it finds one, it
opens a web browser to that notebook. If not, it starts a new notebook server
in that directory.

Installation::

    python3 -m pip install nbopen

Usage::

    nbopen AwesomeNotebook.ipynb

To integrate with your file manager, so you can double click on notebooks
to open them, run:

* Linux/BSD: ``python3 -m nbopen.install_xdg``
* Windows: ``python3 -m nbopen.install_win``
* Mac: Clone the repository and run ``./osx-install.sh``
sati-ac 0.1.3
Next generation anti-captcha
Requires Python: >=3.8

# sati-ac - python client for sati.ac
[![NPM version](https://badge.fury.io/py/sati-ac.svg)](https://pypi.org/project/sati-ac)

## usage example
```py
import asyncio
from sati import Sati

async def main():
	sati = Sati(token)
	print(await sati.get_balance())
	task = await sati.solve('Turnstile',
		siteKey = '0x4AAAAAAAHMEd1rGJs9qy-0',
		pageUrl = 'https://polygon.sati.ac/Turnstile'
	)
	print(task.result.token)

asyncio.run(main())
```
simba-prognose-interface 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
simba-lfp-interface 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
simbajobs 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
simba-cloud-sync 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
simbacloud 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
simba-api-client 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
sima-mip 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
sbb-sam-tools 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
sbbpykit 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
sbb-myway-helper 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
sbbcora 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
sam-tekton-template 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
rule-converter 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
romahelper-data 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.
rollingstock 0.0.1rc1
Dummy package to prevent any kind of dependency confusion attacks against internal python packages
Requires Python: >=3.6,<4.0

This is a dummy package intended to prevent any dependency confusion attacks against our internal Python packages at [SBB](https://www.sbb.ch/). For now this is the only foolproof way to prevent some dependency confusion attacks until the following PEP has been implemented: [PEP-708](https://peps.python.org/pep-0708/)

For any questions regarding this package feel free to reach out to <application-security@sbb.ch>.