semvec/pypi-packages huggingface dataset:
chaincash 0.1.2
ChainCash - Crypto payments library for BEP20
License: MIT
Requires Python: >=3.9
Keywords: crypto, payments, bep20, web3, usdt, bnb

# ChainCash

🚀 **ChainCash** — A Python library for building crypto payment solutions on Binance Smart Chain (BEP20).  

With ChainCash, you can easily create wallets for your users, monitor deposits (BNB & USDT), and process outgoing transactions asynchronously.

---

## ✨ Features

✅ Create unique wallets for each user  
✅ Monitor incoming deposits with a callback mechanism  
✅ Transfer BNB and USDT tokens  
✅ Fully async, built on top of `AsyncWeb3`  
✅ Default support for BSC Mainnet

---

## 📦 Installation

Install the package:
```bash
pip install chaincash
```
---

## 🔷 Requirements


- Python >= 3.9

## Usage/Examples

```python
from chaincash.core.blockchain_client import BlockchainClient
from chaincash.core.wallet_manager import WalletManager
from chaincash.core.monitor import Monitor
from chaincash.core.transfer_service import TransferService

# Initialize blockchain client
client = BlockchainClient()

# Create a wallet
wallet = WalletManager.create_wallet(user_id=1)
print(wallet)

# Monitor deposits
async def on_deposit(event):
    print(f"📥 Deposit detected: {event}")

monitor = Monitor(client, address_map={1: wallet.address})
await monitor.start(on_deposit)

# Send BNB
transfer_service = TransferService(client, wallet.private_key)
await transfer_service.send_bnb(to_address="0x...", amount=0.1)

```


## 🤝 Contributing

Pull requests and issues are welcome!
If you have ideas, improvements, or bug reports — feel free to open a PR or issue. 🌟

## Support

For support, email noroozisaeed7@gmail.com.


## License

[MIT](https://choosealicense.com/licenses/mit/)
terminalpainter 1.0.1
Terminal painter
License: MIT
Requires Python: >=3.10

# TerminalPainter

A Python library for drawing on the terminal.

## Installation
To install the library, run the following command:

```bash
pip install terminalpainter
```

## Usage

## Main Functions
 - Painter: The main class for drawing on the terminal.
 - Canvas: A class for creating and managing a canvas.
 - Colors: A class for working with colors.

## Examples
### Drawing Text

```python
from terminalpainter import Painter

canvas = Canvas((10, 10))
painter = Painter()
painter.paint_text("Hello, World!")
canvas.paint()
```
### Drawing Shapes
```python
from terminalpainter import Canvas, Colors

canvas = Canvas((10, 10))
canvas.draw_rectangle((1, 1), (8, 8), Colors.RED)
canvas.draw_circle((5, 5), 3, Colors.BLUE)
canvas.paint()
```

### Working with Colors

```python
from terminalpainter import Painter, Canvas, Colors, ColorBlendMode
import os

color_red = Colors.to_rgba(Colors.RED, 128)
color_green = Colors.to_rgba(Colors.GREEN, 128)
color_blue = Colors.to_rgba(Colors.BLUE, 128)

os.system('cls' if os.name == 'nt' else 'clear')

canvas = Canvas((36, 36))
canvas.blend_mode = ColorBlendMode.ADD

painter = Painter()

painter.paint_circle(canvas, 17, 10, 10, color_red)
painter.paint_circle(canvas, 10, 24, 10, color_green)
painter.paint_circle(canvas, 24, 24, 10, color_blue)

canvas.paint()
```

## Documentation

`Painter`:
 - `paint_rectangle`: Draws a rectangle on the canvas.
 - `paint_circle`: Draws a circle on the canvas.
 - `paint_text`: Draws text on the canvas.
 - `paint_image`: Draws an image on the canvas.
 - `paint_line`: Draws a line on the canvas.
 - `paint_pieslice`: Draws a pie slice on the canvas.
 - `fill`: Fills the canvas with a color.

`Canvas`:
 - `blend_mode`: The blend mode to use when blending colors.
 - `resize`: Resizes the canvas.
 - `paint`: Paints the canvas to the terminal.
 - `clear`: Clears the canvas.
 - `set_pixel`: Sets a pixel on the canvas.
 - `set_char`: Sets a character on the canvas.
 - `get_pixel`: Gets a pixel from the canvas.
  
`Colors`:
 - `to_rgb`: Converts a color to RGB format.
 - `to_rgba`: Converts a color to RGBA format.
 - `blend`: Blends two colors together.

`ColorBlendMode`:
 - `ADD`: Adds two colors together.
 - `MIX`: Mixes two colors together.
 - `SUB`: Subtracts two colors.
 - `MAX`: Takes the maximum of two colors.
 - `MIN`: Takes the minimum of two colors.

# Authors
professionsalincpp

# License
The library is distributed under the MIT License.