semvec/pypi-packages huggingface dataset:
cubox 1.0.0
python get cubox article
License: MIT
Requires Python: >=3.6

# cubox
python get cubox article

demo.py
```python
import os

from cubox import CuboxApi, CuboxOutput


def main():
    """Cubox导出Markdown示例"""

    # 初始化API客户端（替换为你的域名和API密钥）
    domain = "cubox.pro"  # 替换为实际域名
    api_key = "https://cubox.pro/c/api/save/xxxxxxxx"  # 替换为你的API密钥链接
    api = CuboxApi(domain, api_key)

    print("开始导出Cubox文章到Markdown...")

    has_more = True
    last_card_id = None
    last_card_update_time = None
    all_articles = []
    while has_more:
        # 可以自定义筛选条件，例如只获取特定标签或文件夹的文章
        articles, has_more = api.get_articles(
            last_card_id=last_card_id, last_card_update_time=last_card_update_time)
        all_articles.extend(articles)
        print(f"成功获取 {len(all_articles)} 篇文章, {has_more}")
        last_card = articles[-1]
        last_card_id = last_card.id
        last_card_update_time = last_card.update_time

    # 如果没有文章，则退出
    if not all_articles:
        print("没有找到任何文章，退出导出")
        return

    export_dir = f"cubox_export"
    output = CuboxOutput(api, all_articles)
    output.to_markdown(export_dir)

    print(f"\n导出完成! 文件已保存到 {os.path.abspath(export_dir)} 目录")


if __name__ == "__main__":
    main()
```
PyECCIntegrity 0.1.0
ECC-based Integrity Verification using ECDSA and SHA-256
License: MIT
Requires Python: >=3.6

# ECC Integrity Verification

`ecc-integrity` is a lightweight Python package that ensures **message authenticity and integrity** using **Elliptic Curve Cryptography (ECC)** and **ECDSA (Elliptic Curve Digital Signature Algorithm)** with SHA-256. It is ideal for cryptographic use-cases in secure communications, IoT, digital documents, and authentication protocols.

---

## 🔒 Key Features

- ECC Key Pair Generation (SECP256R1 curve)
- Digital Signature Generation using ECDSA and SHA-256
- PEM-format Public Key Export
- Signature Verification by the Receiver
- CLI Tool: `verify-integrity` for terminal-based demo
- Lightweight, fast, and secure

---

## 📦 Requirements

- Python >= 3.6
- [cryptography](https://pypi.org/project/cryptography/)

Install dependencies with:

```bash
pip install -r requirements.txt
```

---

## ⚙️ Installation

### 1. Clone and Install

```bash
git clone https://github.com/yourusername/ecc_integrity.git
cd ecc_integrity
pip install .
```

### 2. From PyPI (after uploading)

```bash
pip install ecc-integrity
```

---

## 🚀 Example Usage

### 🐍 In Python Script

```python
from ecc_integrity import ECCIntegrity

# Sender side
sender = ECCIntegrity()
message = b"Secure Communication"
signature = sender.sign_message(message)
pub_key = sender.export_public_key()

# Receiver side
receiver = ECCIntegrity()  # Simulated receiver
is_valid = receiver.verify_signature(message, signature, pub_key)

if is_valid:
    print("✅ Integrity Verified")
else:
    print("❌ Message has been tampered with")
```

---

### 💻 CLI Demo

```bash
verify-integrity
```

This command:
- Generates key pair
- Signs a demo message
- Exports the public key
- Verifies integrity of both original and tampered message

---

## 🧪 Output Sample

```bash
Message: Confidential Data Integrity Check
Signature (Base64): MEUCIQD0...
Sender Public Key:
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYI...
-----END PUBLIC KEY-----
✅ Integrity Verified: The message is authentic.
❌ Integrity Check Failed! Tampered message detected.
```

---

## 📈 Applications

- Secure messaging protocols
- Software update validation
- Blockchain and cryptocurrency
- IoT communication
- Digital document integrity

---

## 🔐 Security Notes

- Uses **SECP256R1** for ECC, a widely accepted and NIST-approved curve.
- Uses **SHA-256** hashing within **ECDSA**.
- Public key is exportable in PEM format for easy sharing and verification.


---

## 🗃️ Future Enhancements

- Add support for additional ECC curves
- Include symmetric encryption with integrity
- Provide integration demo with Flask or FastAPI
- Include public key distribution examples (QR, files, web)

---

## 📜 License

MIT License © 2025 Mohammad Luqman, Salman Ali

---

## ✨ Author

- **Mohammad Luqman** – [GitHub Profile](https://github.com/mohdluqman)
- **Salman Ali** – [GitHub Profile](https://github.com/salmanali)

---