semvec/pypi-packages huggingface dataset:
pandas-cobol-io 0.1.0
Pandas extension for COBOL-style fixed-width files handling multibyte encoding.
Requires Python: >=3.10

# pandas-cobol-io
Pandas extension for COBOL-style fixed-width files (FWF).
## Installation
```bash
pip install pandas-cobol-io
```
## Usage
### To import df.to_fwf and pd.parse_fwf
```python
import pandas as pd
import pandas_cobol_io
```
When user imports **pandas_cobol_io**, these two functions are added to pandas objects.
### df.to_fwf (DataFrame -> Fixed Width Format Text)
**to_fwf** method is added to DataFrame.
```python
df = pd.DataFrame({
    "ID": [1, 20],
    "NAME": ["A", "B"],
})

# Metadata: List of (Type, Length)
# "9": Zero padding (Right aligned)
# "X": Space padding (Left aligned)

metadata = [
    ("9", 5),
    ("X", 10),
]

# Convert to fixed-width strings
lines = df.to_fwf(metadata, enc="cp932")

# Save to file
with open("output.txt", "w", encoding="cp932") as f:
    f.writelines(lines)
# output.txt
# 00001A         # <- White spaces exist here.
# 00020B         # <-
# 123456789111111
#          012345
```
### pd.parse_fwf (Fixed Width Format Text -> DataFrame)
**parse_fwf** function is added to **pd**.
```python
params = {
    "ID": 5,
    "NAME": 10,
}
result = pd.parse_fwf("output.txt", params, enc="cp932")
df, errors, lines = (result[x] for x in ("df", "errors", "lines"))

print(df)
#       ID        NAME
# 0  00001  A         
# 1  00020  B         
```
### miscellaneous

```python
from pprint import pprint

from pandas_cobol_io import Fwf, fwf_row

fwf = Fwf(enc := "cp932")

# header
header_info = {
    "data-distinction": (1, "9", 2),
    "dummy": (" ", "X", 13),
}
fwf.header = fwf_row(header_info, enc)

# contents
df = pd.DataFrame({
    "ID": [1, 20],
    "NAME": ["A", "B"],
})
metadata = [
    ("9", 5),
    ("X", 10),
]
fwf.contents = df.to_fwf(metadata, enc)

# footer
tracker_info = {
    "data-distinction": (9, "9", 2),
    "dummy": (" ", "X", 13),
}
end_info = {
    "dummy": ("EOF", "X", 15),
}
fwf.footer = [fwf_row(x, enc) for x in (tracker_info, end_info)]

pprint(fwf)
pprint(fwf.data)
# Fwf(encoding='cp932',
#     header=['01             \n'],
#     contents=['00001A         \n', '00020B         \n'],
#     footer=[['09             \n'], ['EOF            \n']])
# ['01             \n',
#  '00001A         \n',
#  '00020B         \n',
#  '09             \n',
#  'EOF            \n']
```
## License
MIT License
project-vandal 0.2.0
A deterministic UI mutation testing engine for Playwright
Requires Python: >=3.8

# Project Vandal: UI Mutation Testing Engine

[![Project Vandal CI](https://github.com/godhiraj-code/vandal/actions/workflows/vandal-ci.yml/badge.svg)](https://github.com/godhiraj-code/vandal/actions/workflows/vandal-ci.yml)

Project Vandal is a lightweight, non-LLM UI mutation testing engine integrated with Playwright. It allows you to sabotage your UI in subtle ways to verify if your end-to-end tests are resilient and capable of detecting regressions.

## Features

- **Mutation Strategies**:
    - `stealth_disable`: Disables pointer events on elements, making them unclickable while remaining visually present.
    - `ghost_element`: Makes elements invisible and unclickable.
    - `data_sabotage`: Replaces text or input values with junk data.
    - `logic_sabotage`: Prevents event propagation (e.g., stopping click handlers from firing).
- **Playwright Integration**: Easy-to-use context manager (`Vandal`) for wrapping test logic.
- **Reporting**: Automated mutation report showing which "mutants" were killed (detected by tests) or survived.
- **Detailed Guide**: See [TESTER_GUIDE.md](file:///c:/vandal/TESTER_GUIDE.md) for advanced usage and customization.

## Project Structure

- `core.py`: The heart of the mutation engine (JavaScript-based strategies).
- `playwright_ext.py`: Playwright wrapper and context manager.
- `demo_vandal.py`: A demonstration script showing Vandal in action.
- `vandal_demo_app.html`: A simple demo application for testing.

## Installation

Ensure you have Playwright installed:

```bash
# Clone the repository
git clone https://github.com/godhiraj-code/vandal.git
cd vandal

# Install dependencies
pip install playwright
playwright install chromium
```

## Usage

You can use the `Vandal` class as a context manager in your Playwright tests:

```python
from vandal import Vandal

async with Vandal(page) as v:
    # Aply a mutation to an element
    await v.apply_mutation("stealth_disable", "#login-btn")
    
    # Run your test logic
    await page.click("#login-btn")
    
    # Assert the outcome
    assert await page.inner_text("#msg") == "Success"
```

## Running the Demo

The project includes a demo script that tests a simple login button.

### Headless Mode
```bash
PYTHONPATH="." python demo_vandal.py --headless
```

```bash
PYTHONPATH="." python demo_vandal.py --headed
```

In headed mode, the script includes a `slow_mo` delay and holds the browser open for 5 seconds after completion so you can see the results.

## Why "Vandal"?

Unlike traditional mutation testing that modifies source code, Project Vandal sabotages the **UI layer** directly in the browser. This is particularly effective for catching:
> [!NOTE]
> *Project Vandal is an open-source research initiative by [Dhiraj Das | Automation Architect](https://www.dhirajdas.dev).*
- CSS regressions that block interactions.
- Event listener bugs.
- Data binding failures.
```
zockchinCrypto 0.1.2
A Python library for various encryption algorithms including Fernet, Vigenère, Caesar, and Replacement ciphers.
Requires Python: >=3.6

# zockchinCrypto 🔐

A lightweight and easy-to-use Python library for text and file encryption. It supports modern encryption standards like **Fernet (AES)** and classic algorithms like the **Caesar Cipher**.

## Features
- **Text Encryption:** Secure your strings using Fernet symmetric encryption.
- **File Encryption:** Encrypt any file type (images, PDFs, ZIP files, etc.).
- **Automatic Key Management:** Automatically generates and manages secure keys in `.pem` files.
- **Caesar Cipher:** Includes the classic Caesar shift cipher for educational purposes.
- **Robust:** Built on top of the industry-standard `cryptography` library.

## Installation

Install the library using `pip`:

```bash
pip install zockchinCrypto




#How to use the Vigenere Cipher
import zockchinCrypto

# Encryption using Vigenère (Verna)
Encryption = zockchinCrypto.VigEncryption('egypt is frist', 'key')
print(Encryption)  # Output: okwzx sw pvgcx

# Decryption using Vigenère (Verna)
Deciphering = zockchinCrypto.VigDeciphering('okwzx sw pvgcx', 'key')
print(Deciphering)  # Output: egypt is frist





#How to use the Replacement Cipher
st = string.ascii_letters + string.digits + string.punctuation
key = list(st)
random.shuffle(key)
print(key)
Replacement  = zockchinCrypto.ReplacementEncryption(st , 'zockchin',key)
print(Replacement)

#Add here the previous list you obtained during encryption
Replacement  = zockchinCrypto.ReplacementDecryption(st , '8TlKl"I<',['z', '/', 'l', 'A', 'x', 'G', ':', '"', 'I', '=', 'K', '5', 'C', '<', 'T', '`', 'F', '{', 't', 'p', '?', "'", 'O', 'Z', 'W', '8', ',', ';', '}', 'y', 'g', 'D', 'r', 'h', 'a', 'L', '@', 'N', 'H', 's', 'v', 'j', '^', 'i', ']', 'X', '!', 'E', '-', '#', 'e', 'V', 'Q', 'u', '0', 'Y', 'P', 'B', ')', 'n', '>', 'k', '[', '3', 'M', 'c', '(', 'd', 'q', 'J', '%', '6', 'w', '_', 'R', 'U', '|', '9', '1', 'f', 'b', 'o', '4', '\\', '+', '$', '2', '.', 'S', '*', 'm', '7', '~', '&'])

print(Replacement)




#How to use Caesar cipher
a = zockchinCrypto.CaesarEncryption('zockchin',3,'abcdefghijklmnopqrstuvwxyz')
print('caesar  ',a)

a = zockchinCrypto.CaesarDecryption('cbdg',3,'abcdefghijklmnopqrstuvwxyz')
print('caesar  ',a)




#Method of encrypting and decrypting text using the Ferent code

Encryption = zockchinCrypto.ferentTextEncryption('zockchin')
print(Encryption)

Decryption = zockchinCrypto.ferentTextDecryption('gAAAAABpRzfC7t_hQ26YHtb949YUi5UvwxWT7lelqSwt2gKPeUP5_H-AynkIZW7XGjFej-popoB6AO_erkYOO66SCPkARt7u5Q==')
print(Decryption)



#Method of encrypting and decrypting file using the Ferent code

FileEncryption = zockchinCrypto.ferentFileEncryption('test','rar')

FileDecryption = zockchinCrypto.ferentFileDecryption('encrypted_file','rar')
frykit_data 0.1.0
Data for frykit
Requires Python: >=3.10

# 地理数据

- 省市县：
  - https://lbs.amap.com/api/webservice/guide/api/district/
  - https://cloudcenter.tianditu.gov.cn/administrativeDivision/
- 境界线：https://cloudcenter.tianditu.gov.cn/administrativeDivision/
- 所有国家: http://meteothink.org/downloads/index.html
- 海陆: https://www.naturalearthdata.com/downloads/50m-physical-vectors/

其中高德地图数据的下载方法详见 [amap-shp](https://github.com/ZhaJiMan/amap-shp) 仓库。

# 字体

思源黑体：https://github.com/adobe-fonts/source-han-sans/