semvec/pypi-packages huggingface dataset:
mock-data-forge 0.1.1
A CLI tool to generate mock JSON data from schemas, with optional API posting and file saving.
License: MIT
Requires Python: >=3.7
Keywords: mock, json, data, cli, faker, generator

# Mock Data Forge (CLI)

**Mock Data Forge** is a powerful command-line tool to generate mock JSON data based on custom schemas. It supports saving to files, sending data to APIs, and enforcing constraints for realistic and structured test data.

---

## Features

- **Generate Mock Data**: Quickly produce JSON objects based on your schema.
- **Supports Multiple Data Types**:
  1. **Primitive Data Types**: `string`, `integer`, `float`, `boolean`
  2. **Semantic Data Types**: `name`, `email`, `phone`, `date`
  3. **File Data Types**: `image_url`, `file_url`
  4. **Complex Data Types**: `object`, `array`
- **Constraints & Logic**:
  - **Range**: Set minimum and maximum for numbers.
  - **Choice/Enum**: Pick values from a specific list.
  - **Regex**: Generated strings match a regex pattern.
- **Automated API Support**: If you provide an API endpoint, the generator will automatically send the generated data.

---

## Quick Start

Install the CLI via `pip`:

```bash
pip install mock-data-forge
```

## Usage
Generate data with default schema
```bash
mock-data
```
Specify a custom schema file
```bash
mock-data -s path/to/schema.json
```
Generate multiple objects
```bash
mock-data -c 10
```
Save output to a file
```bash
mock-data -S output.json
```
Send data to API endpoints
```bash
mock-data -a http://example.com/api1 http://example.com/api2
```
Combine options
```bash
mock-data -s schema.json -c 5 -S output.json -a http://example.com/api -n
```

- -n / --no-print prevents output from being printed to the console.

## Options:

`-s, --schema` : Path to schema JSON file (default: example-schema.json)  
`-c, --count` : Number of objects to generate (default: 1)  
`-a, --api` : API endpoints to send the generated data  
`-S, --save` : Save output to a file (default: data-save.json)  
`-n, --no-print` : Do not print generated data to stdout

## Example Schema
```json
{
  "name": { "type": "name" },
  "email": { "type": "email" },
  "age": { "type": "integer", "min": 18, "max": 65 },
  "tags": { "type": "array", "length": 3, "items": { "type": "string", "enum": ["red","green","blue"] } }
}
```

## Repository Structure
```bash
mock-data-forge/  
├── mock_data_forge/  
│   ├── __init__.py
│   ├── __main__.py 
│   └── generator.py  
├── README.md  
├── example-schema.json  
├── pyproject.toml  
├── LICENSE
└── MANIFEST.in
```

## Logging
Mock Data Forge uses Python’s built-in logging module. By default, it logs info and warning messages to the console.

## GUI Version
- If you prefer a graphical interface, you can check out the GUI version of Mock Data Forge:  
[Mock Data Forge GUI + CLI on GitHub](https://github.com/HattoriMan/Mock-Data-Forge)
- Clone the repo and follow its README to set up the GUI.

## License
MIT License © 2025 HattoriMan
PrintStruct 1.3.1
PrintStruct: print project tree structure and optionally zip it
License: MIT
Requires Python: >=3.8

# PrintStruct

**PrintStruct** is a clean, lightweight Python CLI that prints a directory tree of your project **while respecting `.gitignore`**, with optional zipping support.

The problems it solves:

* sharing project structure in issues or pull requests
* generating directory trees for documentation
* pasting project layouts into LLMs
* zipping projects for feeding to LLMs using `.gitignore` directions

<br>

## Quick Start (10 seconds)

### Installation using pip (recommended):

Run this command in your terminal:

```
pip install printstruct
```

### Usage:

Open a terminal in any project and run:

```
prst
```

This prints the directory structure of the current folder.

You can also specify a path explicitly:

```
prst <directory_path>
```

Example (Windows PowerShell):

```
PS C:/Users/Projects/PrintStruct> prst .
```

Output:

```
PrintStruct
├─ LICENSE
├─ pyproject.toml
├─ README.md
├─ requirements.txt
└─ structure.py
```

### Updating PrintStruct:

To update the tool, reinstall it using pip. Pip will automatically replace the older version with the latest release.

<br>

## Useful CLI arguments

In addition to the directory path, the following options are available:

| Argument | Description |
|--------|-------------|
| `--version`, `-v` | Displays the installed version. |
| `--zip [name]` | Zips the project while respecting `.gitignore`. Example: `--zip a` creates `a.zip`. If no name is provided, a random ID is used. |
| `--max-depth` | Limits recursion depth. Example: `--max-depth 1` shows only top-level files and folders. |
| `--all`, `-a` | Includes hidden files and directories. Does not override `.gitignore`. |
| `--ignore` | Adds extra files or directories to ignore. |
| `--gitignore-depth` | Controls how deeply `.gitignore` files are discovered. Example: `--gitignore-depth 0` uses only the root `.gitignore`. |
| `--no-gitignore` | Ignores all `.gitignore` rules when set. |
| `--max-items` | Limits items shown per directory. Extra items are summarized as `... and x more items`. Default: `20`. |
| `--no-limit` | Removes the per-directory item limit. |


<br>

<br>

## Installation (for Contributors)

Clone the repository:

```
git clone https://github.com/ShahzaibAhmad05/PrintStruct
```

Move into the project directory:

```
cd PrintStruct
```

Install dependencies:

```
pip install -r requirements.txt
```

The tool is now available as a Python CLI on your system.

<br>

## Contributions

Issues and pull requests are welcome.
Ideas that would fit well include improved formatting, colorized output, test coverage, and performance optimizations.

PrintStruct is intentionally small and readable, so contributions that preserve simplicity are especially appreciated.
wincp 1.0.2
WinCP - Secure CMP Compressor with GUI and CLI
License: MIT
Requires Python: >=3.9

# WinCP

**WinCP** is a secure CMP compressor and extractor with both **GUI** and **CLI** interfaces.  
It is designed for simplicity, security, and flexibility. Supports password-protected archives, compression levels, optional custom icons, and intuitive file navigation.

---

## Features

### General

- Compress and extract `.cmp` archives
- AES-GCM encryption with optional password
- Adjustable compression levels (1–9)
- Optional custom icons for archives
- Cross-platform GUI via PySide6
- CLI interface for automation and scripting
- Drag & drop support for files and folders
- Right-click extraction in archive tree

### GUI

- **Compress Tab**:  
  - Browse folders to compress  
  - Set password and compression level  
  - Choose optional icon  
  - Select output file  
  - Start compression and monitor progress

- **Extract Tab**:  
  - Browse and load `.cmp` archives  
  - View file/folder tree structure  
  - Drag & drop archives into the tab  
  - Right-click files or folders to extract  
  - Choose target folder via folder dialog  
  - Recursive extraction of folders and files

### CLI

- Full command-line support for automated workflows
- Compress folders
- Extract archives
- Password-protected and configurable compression levels

---

## Installation

Install via pip:

```bash
pip install wincp

CLI Usage

Compress a folder

wincp compress <folder> <output.cmp> [--password <password>] [--level <1-9>] [--icon <icon_path>]


Example:


wincp compress my_folder backup.cmp --password secret --level 9 --icon myicon.ico

<folder>: path to the folder to compress

<output.cmp>: output archive path

--password: optional encryption password

--level: compression level (1=fastest, 9=maximum)

--icon: optional icon file for the archive

Extract an archive

wincp extract <archive.cmp> <output_folder> [--password <password>]


Example:

wincp extract backup.cmp restored_folder --password secret

<archive.cmp>: path to the archive

<output_folder>: folder where files/folders will be extracted

--password: optional password if archive is protected

GUI Mode

Simply run:

wincp


License

MIT License



Changelog

v0.1.0 – Initial release

GUI with compress/extract tabs

CLI support

Password protection and icon support

Drag & drop and right-click extraction