semvec/pypi-packages huggingface dataset:
pyntruprime 0.0.3
A Python wrapper for the libntruprime microlibrary
Requires Python: >=3.6
Keywords: post-quantum, cryptography, Streamlined NTRU Prime, libntruprime, pyntruprime

# pyntruprime
A Python wrapper for the libntruprime microlibrary

# Installation
## Dependencies
pyntruprime depends only on libntruprime (which also depends on libcpucycles and
librandombytes), available [here](https://libntruprime.cr.yp.to/)

# API
## Instantiated parameters
The API follows the libntruprime API. It implements the following parameter sets:

- sntrup761

More parameter sets may be added later

Each has the following constants defined:
- sntrup761.PUBLICKEYBYTES
Length of the public key
- sntrup761.SECRETKEYBYTES
Length of the private key
- sntrup761.CIPHERTEXTBYTES
Length of the ciphertext
- sntrup761.BYTES
Length of the session key

## Usage
For each instantiation the following functions are available:
### sntrup761.keypair() -> Tuple[bytes, bytes]

Randomly generates a NTRUprime secret key and its corresponding public key.

Example:
```python
>>> from pyntruprime import sntrup761
>>> pk, sk = sntrup761.keypair()
```

### sntrup761.enc(pk: bytes) -> Tuple[bytes, bytes]
Randomly generates a ciphertext and the corresponding session key given a
public key pk.

Example:
```python
>>> from pyntruprime import sntrup761
>>> pk, _ = sntrup761.keypair()
>>> c, k = sntrup761.enc(pk)
```

### sntrup761.dec(c: bytes, pk: bytes) -> bytes
Given a NTRUprime secret key sk and a ciphertext c encapsulated to sk's
corresponding public key pk, computes the session key k.

Example:
```python
>>> from pyntruprime import sntrup761
>>> pk, sk = sntrup761.keypair()
>>> c, k = sntrup761.enc(pk)
>>> sntrup761.dec(c, sk) == k
True
```
harshCrypto 1.0.0
A simple module for file encryption and decryption of the file
Requires Python: >=3.6

# HarshCrypto

HarshCrypto is a Python library that provides simple and secure file encryption and decryption using the Fernet symmetric encryption scheme from the `cryptography` library. It supports individual files and directory

## Features

- Encrypt individual files securely.
- Decrypt encrypted files.
- Process entire directories recursively.
- Ensures files are only encrypted or decrypted once.
- Lightweight and easy to integrate.
---

## Installation

Install the package via pip:

```bash
pip install harshCrypto
```

---
# Quick Start
## Generating a Key
Before encrypting or decrypting files, generate an encryption key:
```python
Copy code
from harshcrypto import generate_key
```
## Generate a key and save it as key.key
```python
generate_key()
```
This creates a key.key file in the current directory.

## Loading the Key
Load the key when needed for encryption or decryption:

```python
from harshcrypto import load_key

key = load_key("key.key")
```

## Encrypting a File
Encrypt a single file using the loaded key:

```python
from harshcrypto import encrypt_file, load_key

key = load_key("key.key")
encrypt_file("example.txt", key)
```

## Decrypting a File
Decrypt a previously encrypted file:

```python
from harshCrypto import decrypt_file, load_key

key = load_key("key.key")
decrypt_file("example.txt", key)
```

## Encrypting or Decrypting an Entire Directory
Encrypt or decrypt all files in a directory recursively:

```python
from harshCrypto import process_directory, load_key

key = load_key("key.key")

# Encrypt all files in the directory
process_directory("path/to/directory", key, operation="encrypt")

# Decrypt all files in the directory
process_directory("path/to/directory", key, operation="decrypt")
```

# Requirements
- Python 3.6 or higher
- Dependencies : `cryptography` 

*__Install the required dependencies using pip:__*

```bash
pip install cryptography
```

# Security Considerations
- **Key Storage:** Ensure the key.key file is stored securely. If lost, the encrypted files cannot be decrypted.
- **Backup Files:** Always backup your files before encryption in case of unforeseen issues.
- **Encryption Scheme:** Uses Fernet, which provides authenticated encryption (AES in CBC mode with PKCS7 padding and HMAC for authentication).

# Contributing
Contributions are welcome! If you have suggestions or improvements, please fork the repository and submit a pull request.

1. Fork the repository.
2. Create a feature branch (`git checkout -b feature-branch`).
3. Commit your changes (`git commit -m 'Add some feature'`).
4. Push to the branch (`git push origin feature-branch`).
5. Open a pull request.


# License
This project is licensed under the MIT License. See the [LICENSE]() file for details.

# Support
If you encounter any issues or have questions, feel free to open an issue in the [GitHub](https://github.com/Geeta-Tech/windows-files-locker) repository.
hfpics 0.1.0
一个用于从Hugging Face数据集下载图片的Python包
Requires Python: >=3.7
Keywords: huggingface, datasets, images, download, cache

# HFPics

一个简单的Python包，用于从Hugging Face数据集下载图片。

## 安装

```bash
pip install hfpics
```

## 使用方法

```python
from hfpics import HfPics

# 使用默认配置
hf = HfPics()

# 或使用自定义配置
hf = HfPics(
    repo="picollect/a_1024",  # 自定义数据集仓库
    cache_dir="/custom/path"   # 自定义缓存目录
)

# 下载图片并获取路径
image_path = hf.pic(11112)
print(f"图片保存在: {image_path}")

# 直接获取图片内容
image_content = hf.pic(11112, return_type="content")
```

## 功能特点

- 支持从Hugging Face数据集下载图片
- 自动缓存已下载的图片
- 支持返回图片路径或二进制内容
- 支持.jpg和.webp格式
- 支持自定义缓存目录

## API文档

### HfPics类

```python
HfPics(repo: str = "picollect/a_1024", cache_dir: str = "~/.cache/hf_pics")
```

参数:
- `repo`: Hugging Face数据集仓库名称，默认"picollect/a_1024"，为a站数据集
- `cache_dir`: 缓存目录路径，默认"~/.cache/hf_pics"

### pic方法

```python
pic(id: int, return_type: Literal["path", "content"] = "path") -> Union[str, bytes, None]
```

参数:
- `id`: 图片ID（整数）
- `return_type`: 返回类型
  - "path": 返回图片文件路径（默认）
  - "content": 返回图片二进制内容

返回值:
- 当 return_type="path" 时返回字符串路径
- 当 return_type="content" 时返回字节内容
- 如果图片不存在返回 None

## 异常处理

```python
try:
    image = hf.pic(11112)
except ValueError as e:
    print(f"参数错误: {e}")
except Exception as e:
    print(f"下载失败: {e}")
```

## 许可证

MIT License
zeroset 0.2.0
Useful collection of features.
Requires Python: >=3.10

# zeroset
Useful collection of features


# Memo

```bash
# 가상환경활성화
venv\Scripts\activate.bat
```


https://gist.github.com/springkim/420a131a738334bf53f29d2fff9fbd16#file-tabulate_formats-md
noting-workspace 1.0.0
A lightweight and efficient notebook application for organizing your ideas


# Note-Book 📓

Effortlessly manage, organize, and search your notes with **`note-book`**, the ultimate note-taking Python package. Perfect for students, professionals, and anyone looking to declutter their digital workspace.

---

## 🚀 Key Features

- **Seamless Note Management**: Add, edit, delete, and organize notes with ease.
- **Powerful Search**: Locate notes by keywords or tags in seconds.
- **Markdown Ready**: Format your notes with Markdown for added clarity.
- **Export Capabilities**: Save notes as Markdown, plain text, or JSON.
- **Lightweight & Fast**: Minimal resource usage for optimal performance.

---

## 🛠️ Installation

Get started by installing `note-book` via pip:

```bash
pip install note-book
```

---

## 📖 Quickstart Guide

### CLI Commands

Create your first note:

```bash
note-book create "Daily Thoughts" --content "Today was a productive day!"
```

Find all notes tagged with "work":

```bash
note-book search --tags "work"
```

Export notes to a Markdown file:

```bash
note-book export --format markdown --output notes.md
```

### Python Integration

```python
from note_book import NoteManager

# Initialize manager
manager = NoteManager()

# Add a note
manager.create_note("Meeting Notes", "Discuss Q1 targets and challenges.")

# Retrieve notes
notes = manager.list_notes()
print("My Notes:", notes)

# Export notes to JSON
manager.export_notes("notes.json", format="json")
```

---

## 📝 Examples

#### 1. Create a To-Do List

```bash
note-book create "To-Do" --content "1. Finish report\n2. Call client\n3. Plan weekend trip"
```

#### 2. Organize Notes with Tags

```bash
note-book create "Project Plan" --content "Phase 1: Research\nPhase 2: Development" --tags "work,planning"
```

#### 3. Search Notes

```bash
note-book search "Phase 1"
```

---

## 💡 Why Choose Note-Book?

1. **Simple & Intuitive**: Designed to simplify note management.
2. **Flexible**: Use it from the command line or integrate it with Python projects.
3. **Feature-Rich**: Markdown support, tagging, exporting, and more!
4. **Open Source**: Fully customizable and community-driven.

---

## 📦 Export Formats

Export your notes to various formats:

| Format     | Command Example                         |
|------------|-----------------------------------------|
| Markdown   | `note-book export --format markdown`    |
| Plain Text | `note-book export --format text`        |
| JSON       | `note-book export --format json`        |

---

## 🤝 Contribute

We welcome contributions! Here's how you can help:

1. Report bugs or request features on our [GitHub Issues](https://github.com/your-repo/note-book/issues).
2. Fork the repository and submit a pull request.
3. Spread the word to fellow developers and note-takers.

---

## 🛡️ License

`note-book` is licensed under the MIT License. Feel free to use, modify, and distribute it.

---

## 📬 Contact & Support

Have questions or need help? Reach out to us on [GitHub Issues](https://github.com/your-repo/note-book/issues). We’d love to hear from you!

Stay organized, one note at a time. 🎉