semvec/pypi-packages huggingface dataset:
pytonapi 0.5.0
Provide access to indexed TON blockchain.

# 📦 PyTONAPI

[![TON](https://img.shields.io/badge/TON-grey?logo=TON&logoColor=40AEF0)](https://ton.org)
[![PyPI](https://img.shields.io/pypi/v/pytonapi.svg?color=FFE873&labelColor=3776AB)](https://pypi.python.org/pypi/pytonapi)
![Python Versions](https://img.shields.io/badge/Python-3.9%20--%203.13-black?color=FFE873&labelColor=3776AB)
[![License](https://img.shields.io/github/license/tonkeeper/pytonapi)](https://github.com/tonkeeper/pytonapi/blob/main/LICENSE)

![Image](https://telegra.ph//file/f88bcf9051073973edbd6.jpg)

![Downloads](https://pepy.tech/badge/pytonapi)
![Downloads](https://pepy.tech/badge/pytonapi/month)
![Downloads](https://pepy.tech/badge/pytonapi/week)

Python SDK for [tonapi.io](https://tonapi.io).\
Information about the API can be found in the  [documentation](https://docs.tonconsole.com/tonapi/api-v2).\
To use the API **you need an API key**, you can get it here [tonconsole.com](https://tonconsole.com/).

<blockquote>
For creating wallets, transferring TON, Jetton, NFTs, and other operations, recommend using <a href="https://github.com/nessshon/tonutils">tonutils</a> in combination with <code>TonapiClient</code>. For more information, refer to the library documentation.
</blockquote>

## Usage

### Installation

```bash
pip install pytonapi
```

### Examples


```python
from pytonapi import AsyncTonapi


# Declare an asynchronous function for using await
async def main():
    # Create a new Tonapi object with the provided API key
    tonapi = AsyncTonapi(api_key="Your API key")

    # Specify the account ID
    account_id = "EQC-3ilVr-W0Uc3pLrGJElwSaFxvhXXfkiQA3EwdVBHNNess"  # noqa

    # Retrieve account information asynchronously
    account = await tonapi.accounts.get_info(account_id=account_id)

    # Print account details
    print(f"Account Address (raw): {account.address.to_raw()}")
    print(f"Account Address (userfriendly): {account.address.to_userfriendly(is_bounceable=True)}")
    print(f"Account Balance (nanoton): {account.balance.to_nano()}")
    print(f"Account Balance (amount): {account.balance.to_amount()}")


if __name__ == '__main__':
    import asyncio

    # Run the asynchronous function
    asyncio.run(main())

```

* **Additional examples** can be found [examples](https://github.com/tonkeeper/pytonapi/tree/main/examples) folder.

## Donations

**TON** - `UQCDrgGaI6gWK-qlyw69xWZosurGxrpRgIgSkVsgahUtxZR0`

**USDT** (TRC-20) - `TDHMG7JRkmJBDD1qd4bNhdfoy2uzVd8ixA`

## Contribution

We welcome your contributions! If you have ideas for improvement or have identified a bug, please create an issue or
submit a pull request.

## Support

Supported by  [TONAPI](https://tonapi.io) and [TON Society](https://github.com/ton-society/grants-and-bounties) (Grants
and Bounties program).

## License

This repository is distributed under the [MIT License](https://github.com/tonkeeper/pytonapi/blob/main/LICENSE). Feel
free to use, modify, and distribute the code in accordance
with the terms of the license.
HRequire 1.0.2
Auto-generate requirements.txt from your Python project imports
Requires Python: >=3.10

|||
|:-:|:-|
|Security|[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/Thanaraklee/hrequire/badge)](https://scorecard.dev/viewer/?uri=github.com/Thanaraklee/hrequire) [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/10889/badge)](https://www.bestpractices.dev/projects/10889) [![CodeQL](https://github.com/Thanaraklee/hrequire/actions/workflows/codeql.yml/badge.svg)](https://github.com/Thanaraklee/hrequire/actions/workflows/codeql.yml) |
|CI Testing |[![Test HRequire](https://github.com/Thanaraklee/hrequire/actions/workflows/ci.yaml/badge.svg?branch=develop)](https://github.com/Thanaraklee/hrequire/actions/workflows/ci.yaml)|
|PyPI|![PyPI - Version](https://img.shields.io/pypi/v/HRequire)|

# hrequire
Auto-generate `requirements.txt` from your Python project by imports

## Usage
```bash
pip install hrequire
hrequire                    # Genereate requirements.txt
hrequire --details          # show detailed import info by file
```
veclib 0.1.0
The `pathlib` of vector mathematics.
Requires Python: <4.0,>=3.10

# veclib

**The `pathlib` of vector mathematics.**  
A clean, object-oriented, and Pythonic interface for vector algebra and vector calculus.

---

## Features

- Generic `Vector` class for n-dimensional vector math
- Elegant interface using Python operators (`+`, `-`, `*`, etc.)
- Support for dot product, scaling, projections, angles, distance
- Strict dimension checks with custom exceptions
- Extensible via subclassing (e.g., `Vector2D`, `Vector3D`, etc.)
- Planned: `VectorField` class for defining vector fields via Python functions

---

## Example Usage

```python
from veclib import Vector

v1 = Vector(1, 2, 3)
v2 = Vector(4, 5, 6)

print(v1 + v2)               # Vector(5.0, 7.0, 9.0)
print(v1 * v2)               # Dot product -> 32.0
print(v1.scale(2))           # Vector(2.0, 4.0, 6.0)
print(v1.unit)               # Unit vector
print(v1.distance_to(v2))    # Euclidean distance
````

---

## Philosophy

`veclib` is inspired by the elegance and minimalism of `pathlib`. Instead of writing low-level
vector operations over and over again, this library lets you express vector math clearly and naturally.

You don’t have to worry about dimensionality errors — those are caught and raised as meaningful exceptions.

---

## Roadmap

* [x] Core `Vector` class with basic operations
* [ ] `Vector2D`, `Vector3D` with dimension-specific methods (e.g. cross product)
* [ ] `VectorField` class (e.g. `gravitational = VectorField(lambda r: (-G * m / r.magnitude_squared ) * r.unit)`)
* [ ] Higher-dimensional operations (wedge product, generalized cross product)

---

## Installation

```bash
pip install veclib
```

(Currently under development — not published yet.)

---

## License

This project is licensed under the **LGPL-2.1** license. See the [LICENSE](./LICENSE) file
for further details.