semvec/pypi-packages huggingface dataset:
raw-telegram-api 1.2
Raw Telegram API
Requires Python: >3

# raw-telegram-api
Raw Telegram API for Python 3\
#Example
```python
from raw_telegram.api import APIClient
token = "<paste your token here>"
api = APIClient(token)
api.send_method("sendMessage", {'chat_id': 5102762920, 'text': 'Hello world!'})
```
substrate-interface-subsquid 0.1
py-substrate-interface extension to utilize Subsquid indexes
Requires Python: >=3.7, <4
Keywords: substrate-interface extension subsquid

# Python Substrate Interface: Subsquid Extension

[![Latest Version](https://img.shields.io/pypi/v/substrate-interface-subsquid.svg)](https://pypi.org/project/substrate-interface-subsquid/)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/substrate-interface-subsquid.svg)](https://pypi.org/project/substrate-subsquid/)
[![License](https://img.shields.io/pypi/l/substrate-interface-subsquid.svg)](https://github.com/polkascan/py-substrate-interface-extension-subsquid/blob/master/LICENSE)


## Description
This extension enables [Substrate Interface](https://github.com/polkascan/py-substrate-interface) to use [Giant Squid indexes](https://docs.subsquid.io/giant-squid-api/statuses/) provided by [Subsquid](https://subsquid.io)   

## Installation
```bash
pip install substrate-interface-subsquid
```

## Initialization

```python
from substrateinterface import SubstrateInterface
from substrateinterface_subsquid.extensions import SubsquidExtension

substrate = SubstrateInterface(url="wss://rpc.polkadot.io")

substrate.register_extension(SubsquidExtension(url='https://squid.subsquid.io/gs-explorer-polkadot/graphql'))
```

## Usage

### Filter events

```python
events = substrate.extensions.filter_events(
    pallet_name="Balances", event_name="Transfer", account_id="12L9MSmxHY8YvtZKpA7Vpvac2pwf4wrT3gd2Tx78sCctoXSE", 
    page_size=25
)
```

### Filter extrinsics

```python
extrinsics = substrate.extensions.filter_extrinsics(
    ss58_address="12L9MSmxHY8YvtZKpA7Vpvac2pwf4wrT3gd2Tx78sCctoXSE",
    pallet_name="Balances", call_name="transfer_keep_alive", page_size=25
)
```

### Search block number

```python
block_datetime = datetime(2020, 7, 12, 0, 0, 0, tzinfo=timezone.utc)

block_number = substrate.extensions.search_block_number(block_datetime=block_datetime)
```

## License
https://github.com/polkascan/py-substrate-interface-extension-subsquid/blob/master/LICENSE
graphce 0.0.3
Working with databases related to IP, phone, and email information.

Readme

This package provides the GraphCE class for working with databases related to IP, phone, and email information.

Usage:
To use the GraphCE class, import it from the graphce.tree module.

Example:
from graphce import GraphCE

Creating an Instance:
To create an instance of GraphCE, provide the following arguments:
- Type: The type of data you want to work with. Choose from IP, PHONE, or EMAIL.
- Path: The path of the database where you want to create or use the database.

Note: When creating an instance, a database file with the specified type will be created at the given path. For example, if the type is "IP", it will create a file called "IPs.sqlite" at the specified path. Additionally, an "edges.sqlite" file will also be created at the given path. This file is used for adding, deleting, and updating edges in the graph.

Operations:
Once you have an instance of GraphCE, you can perform the following operations:

1. Adding Data:
To add data to the database, use the add() function. Provide the following arguments:
- Value: The IP, phone, or email value you want to add.
- Info: Additional information related to the value.

Example:
graph_ce = GraphCE("IP", "path_to_database")
graph_ce.add("192.168.0.1", "Some information about the IP")

2. Searching Data:
To search for data in the database, use the search() function. Provide the value you want to search for.

Example:
result = graph_ce.search("192.168.0.1")
print(result)  # return the True and info if present else return False, -1

3. Updating Data:
To update existing data in the database, use the update() function. Provide the following arguments:
- Value: The IP, phone, or email value you want to update.
- Info: The updated information for the value.

Example:
graph_ce.update("192.168.0.1", "Updated information for the IP")

4. Managing Edges:
To manage the edges between nodes in the graph, use the following functions:

- Creating an Edge:
To create an edge between two nodes, use the create_edge() function. Provide the following arguments:
  - Nodes: A tuple of nodes that form the edge.
  - Value: The value associated with the edge.

Example:
graph_ce.create_edge(("Node1", "Node2"), "Edge value")

- Deleting an Edge:
To delete an existing edge, use the delete_edge() function. Provide the tuple of nodes that form the edge.

Example:
graph_ce.delete_edge(("Node1", "Node2"))

- Updating an Edge:
To update the value of an existing edge, use the update_edge() function. Provide the following arguments:
  - Nodes: A tuple of nodes that form the edge.
  - Value: The updated value for the edge.

Example:
graph_ce.update_edge(("Node1", "Node2"), "Updated edge value")

Please note that the provided examples assume the "grpahce" package is installed and available in your Python environment. Make sure to replace "path_to_database" with the actual path where you want to create or use the database.