semvec/pypi-packages huggingface dataset:
harzcoin 4.3.0
Totally better currency frfr (now it's semi-decentralised!?)

# 💰 Harzcoin Python SDK `v4.1.0`

A lightweight Python SDK for interacting with the **Harzcoin** ecosystem — enabling wallet management, SHA256 proof-of-work mining, and secure G-Coin (or Harzcoin) transfers via a Supabase backend.

---

## 🚀 Features

* 🔐 Create and manage wallets
* 🪙 Send and receive Harzcoin (G-Coins)
* ⚒️ Mine Harzcoin with SHA256 + difficulty-based dynamic rewards
* 📡 Works seamlessly with Supabase Functions
* 🛠 Utility functions for wallet creation, viewing, and helpful tips

---

## 📦 Installation

Just clone the repo or download the script:

```bash
git clone https://github.com/yourusername/harzcoin-sdk.git
```

Or directly download `harzcoin.py`.

---

## 🧠 Requirements

* Python 3.7+
* `requests` module (standard, but run below if not installed)

```bash
pip install requests
```

---

## 📚 Usage

### 1. **Initialize a Wallet**

```python
from harzcoin import wallet

mywallet = wallet(walletId="hz8264812", walletKey="bau-2hd-ako")
```

### 2. **Send Harzcoin (Quick Transfer)**

```python
mywallet.quick_send(receiverId="hz1234567", bal=50.0)
```

### 3. **Advanced Transfer (Custom Fee Wallet)**

```python
mywallet.advanced_transfer(
    walletId="hz8264812",
    walletKey="bau-2hd-ako",
    receiverId="hz1234567",
    bal=100.0,
    user_fee="hz000BURN"
)
```

### 4. **Start Mining (SHA256 Proof of Work)**

```python
result = mywallet.mine_sha256()
if result:
    print("✅ Successfully mined block:", result)
```

---

## 🔧 Utility Functions

Import `utilities` for handy tools:

```python
from harzcoin import utilities

util = utilities()
```

### ➕ Create a Wallet

```python
util.create()
```

### 👁 View Wallet Info

```python
util.view("hz8264812")
```

### ❓ Help Command

```python
util.help("burn")  # returns burn wallet address
util.help("hcmc")  # returns central wallet
```

---

## 🧱 Mining Explained

* Uses `SHA256` brute-force with dynamic difficulty.
* Reward = `400 * difficulty`
* You get paid automatically to your wallet once the hash is found.
* Prevents duplicate mining by remembering the last hash.

---

## 🌍 API Endpoint

Hosted on [Supabase Edge Functions](https://supabase.com/):

```
https://wnafumlmiulybbkqauew.supabase.co/functions/v1
```

Built-in endpoints:

* `/create` → Create wallet
* `/wallet-view` → View wallet data
* `/send` → Send Harzcoin
* `/update-mining-block` → Get latest mining info

---

## 🧪 Example Main Script

```python
if __name__ == "__main__":
    mywallet = wallet("hz8264812", "bau-2hd-ako")
    result = mywallet.mine_sha256()
    print(result)
```

---

## 🔐 Security

* Never expose your `walletKey` publicly.
* Always use HTTPS when interacting with APIs.
* This SDK is not production-hardened, so **do not use for real money** without auditing.

---

## 📜 License

MIT License

---

## 🧙‍♂️ Author

Created by **justharsiz**
Powered by **Moracle Softworks**

> *"Build the chain. Be the node. Earn the coin."* 🔗
dagster-qcloud-cos 0.27.4
腾讯云对象存储与 Dagster 集成
Requires Python: >=3.12

# 腾讯云对象存储与 Dagster 集成

该 Dagster 集成是为了更便捷的调用腾讯云对象存储，集成提供了一个 Dagster Resource，和一个 Op 。

## 安装
要安装库，请使用 pip 。

```bash
pip install dagster-qcloud-cos -U
```

## Resource

#### QcloudCosResource

该资源返回一个 CosS3Client 类，该类是腾讯云官方 Python SDK 的类.

可以查看 https://cloud.tencent.com/document/product/436/12269 了解使用方法。


## OP

使用 `InitCosOperations` 类可以为不同的 `resource_key` 搭建一套各自的 op

```python
from dagster_qcloud_cos import InitCosOperations, QcloudCosResource
from dagster import job, Definitions

# 定义一套依赖于 bucket_a 资源的 op
# 该类会创建一套 required_resource_keys={"bucket_a"} 的 op
bucket_a_ops = InitCosOperations(resource_key="bucket_a")

@job
def upload_file():
    etag, pre_signed_url = bucket_a_ops.op_upload_file()    
    ...(etag, pre_signed_url)

defs = Definitions(
    jobs=[upload_file],
    resources={"bucket_a": QcloudCosResource(BucketId="bucket_a")}
)
```

或者直接使用预置的 op ，默认操作会使用 resource_key = 'qcloud_cos' 的资源。

```python
from dagster_qcloud_cos import cos_op, QcloudCosResource
from dagster import job, Definitions

@job
def upload_file():
    etag, pre_signed_url = cos_op.op_upload_file()    
    ...(etag, pre_signed_url)

defs = Definitions(
    jobs=[upload_file],
    resources={"qcloud_cos": QcloudCosResource(BucketId="bucket_a")}
)
```

### op_upload_file

上传 5G 大小以内的文件并获取预签名的临时链接

###### 输入：
- `key`: str, 上传文件KEY
- `file`: bytes, 文件字节数据
- `expired`: int, 预签名下载链接的过期时间，0 为不获取，默认为 0
- `bucket`: str, bucket_id，默认为资源设置的bucket_id

###### 输出：
- `etag`
- `presigned_url`: 预签名下载链接，或空字符串
extepy 1.0.0
Extension of Python Language

# extepy: Extension of Python Language

## Documentation

Docs: <https://extepy.github.io>

## Install

It can be installed with pip.

```shell
pip install --upgrade extepy
```

It works in both Python 2 and Python 3.

## Features

### Extension of `hashlib`

- `extepy.filehash(obj, method="sha256", batchsize=4096)` computes the hash value of a file.

Example:

```python
from extepy import filehash
filehash("test.txt")
```

### Extension of `importlib`

- `extepy.reload(obj, update_global=True, update_local=True)` provides advanced module and object reloading capabilities for Python, so that developer can modify code without restarting the interpreter.

This function solves key limitations of Python's built-in reloading functionality by:

- Supporting all import styles: `import X`, `import A as X`, `from A import X`, and `from A import B as X`;
- Automatically updating references without requiring reassignment;
- Offering granular control over namespace updates (global and/or local namespace).

Examples: Reload modules and objects.

```python
from mymodule import myfunction
# ... modify myfunction() in mymodule.py ...
from extepy import reload
reload(myfunction)  # reload function
```

```python
from mymodule import myfunction as myfunction1
# ... modify myfunction() in mymodule.py ...
from extepy import reload
reload(myfunction1)  # reload function alias
```

```python
import mymodule
# ... modify mymodule.py ...
from extepy import reload
reload(mymodule)  # reload module
reload("mymodule")  # reload module by module name
```

```python
import mymodule as mymodule1
# ... modify mymodule.py ...
from extepy import reload
reload(mymodule1)  # reload module alias
```

```python
from extepy import reload
from mymodule import myfunction as myfunction1, myfunction as myfunction2
# ... modify myfunction() in mymodule.py ...
reload(myfunction1)  # update both myfunction1 and myfunction2
```

Examples: Update selective namespaces

```python
from extepy import reload
myfunction = None  # global reference
def f():
    global myfunction
    from mymodule import myfunction
    # ... modify myfunction() in mymodule.py ...
    reload(myfunction, update_local=False)  # update global namespace only
```

```python
from extepy import reload
def f():
    from mymodule import myfunction
    # ... modify myfunction() in mymodule.py ...
    reload(myfunction, update_global=False)  # update the local namespace only
```
flet-glossy 0.1.0
FletGlossy control for Flet
Requires Python: >=3.9

# flet-glossy
FletGlossy control for Flet

## Installation

Add dependency to `pyproject.toml` of your Flet app:

* **Git dependency**

Link to git repository:

```
dependencies = [
  "flet-glossy @ git+https://github.com/MyGithubAccount/flet-glossy",
  "flet>=0.28.3",
]
```

* **PyPi dependency**  

If the package is published on pypi.org:

```
dependencies = [
  "flet-glossy",
  "flet>=0.28.3",
]
```

Build your app:
```
flet build macos -v
```

## Documentation

[Link to documentation](https://MyGithubAccount.github.io/flet-glossy/)
bigcodec 0.0.3
Python library for bigcodec.
Requires Python: >=3.8

# BigCodec

Python library for bigcodec. This is something that the author of bigcodec didn't do, so I'm doing it for him.

## Setup

```
pip install bigcodec
```

## Usage

```
import torch.accelerator
from bigcodec import BigCodec
import torchaudio

codec = BigCodec.from_pretrained("intexcp/bigcodec")

wav = torchaudio.load("enc.wav")[0]
wav = wav.unsqueeze(0)
device = torch.accelerator.current_accelerator().type if torch.accelerator.is_available() else "cpu"
codec = codec.to(device)
wav = wav.to(device)
with torch.no_grad():
    enc = codec.encode(wav)
    dec = codec.decode(enc)
print(enc)
torchaudio.save("dec.wav", dec.squeeze(0).cpu(), 16000, encoding="PCM_F")
```
p2pshare-cli 0.1.1
A CLI tool for peer-to-peer file sharing with QR codes

# 📡 p2pshare

`p2pshare` is a lightweight, Python-based CLI tool for seamless file transfers between your PC and phone using a local Flask server and QR codes. No cloud, no login — just fast, private, peer-to-peer sharing over your local Wi-Fi.

---

## ✨ Features

- 🔁 Two-way file transfer: phone → PC and PC → phone
- 🌐 Local server (Flask + Waitress) for platform-agnostic access
- 📱 QR code generation for easy phone access
- 🪵 Logs file uploads with size and timestamp
- 🔒 No external hosting or third-party storage — fully offline if on same network

---

## 🚀 Getting Started

### 1. Clone and Install

```bash
pip install p2pshare-cli
```

### 2. Usage
📤 Send Files (Send a file from your phone to your computer)
```
p2pshare --send
```

📥 Receive Files (Send a file from your computer to your phone)
```
p2pshare --receive path/to/file.txt
```

A QR code and webpage will appear. Open it on your phone and upload a file. It will be saved in the uploads/ directory.

###⚙️ Options
```
| Flag       | Description                                     |
|------------|-------------------------------------------------|
| `--send`   | Send a file from PC to phone                    |
| `--receive`| Receive a file from phone to PC                 |
| `--time`   | Auto shutdown server after N seconds idle       |

p2pshare --receive --time 60
```

This shuts the server down after 60 seconds of no uploads.

All dependencies are auto-installed via pip install .

🧠 Why This Project?

Ever emailed yourself a file just to move it between your devices? p2pshare eliminates that pain. This tool makes peer-to-peer file sharing effortless with nothing but Python and a QR code.
std-py-logger 0.0.6
A simple colored logger for Python
Requires Python: >=3.8

# py_logger

A simple colored logger for Python.

## Installation

```bash
pip install .
```

## Usage

```python
from std_py_logger import get_logger

logger = get_logger(__name__)

logger.debug("This is a debug message.")
logger.info("This is an info message.")
logger.warning("This is a warning message.")
logger.error("This is an error message.")
logger.critical("This is a critical message.")
```

```python
from std_py_logger import get_logger

logger = get_logger(__name__, log_file=True) # logs to file

logger = get_logger(__name__, log_prints=True) # redirects prints to INFO


```
furical 0.1.1
A simple calculator package
Requires Python: >=3.6

﻿# Furical Calculator  
A simple, interactive command-line calculator implemented in Python.

---

## Features
- Basic arithmetic: add, subtract, multiply, divide, power  
- Advanced math: square root, factorial, logarithm  
- Trigonometric functions: sine, cosine, tangent (input angles in degrees)  
- Graceful error handling and input validation  
- Interactive CLI with easy-to-use prompts  

---

## Installation

```bash
pip install furical