semvec/pypi-packages huggingface dataset:
Qmorse 2.0.2
Binary Morse encoding and decoding for real-world signal use.
Requires Python: >=3.7
Keywords: morse binary encoding decoding signal communication

# Qmorse

**Qmorse** is a lightweight Python library for working with **Binary Morse code**.  
It provides a precise, timing-aware representation of Morse that can be used for messaging systems, digital signal experiments, custom broadcasting formats, or any project where Morse must behave like an actual timed signal rather than decorative characters.

Binary Morse in Qmorse uses:

- `0` → short pulse (dot)  
- `1` → long pulse (dash)  
- `.` → silence  

This format mirrors the structure of real Morse transmissions, making it suitable for practical encoding, decoding, and transportation across different media.

---

## Features

- **Binary Morse Encoding & Decoding**  
  Convert between readable text and a strict binary-timed Morse representation.

- **Realistic Morse Timing**  
  Silence (`.`) is preserved explicitly, enabling accurate reconstruction and physical signaling.

- **File Handling**  
  Save or load `.txt` and `.bimorse` files containing binary Morse sequences.

- **Minimal & Flexible**  
  Small footprint, no external dependencies, designed for embedding into larger systems.

---

## Installation

Install from PyPI:

```bash
pip install Qmorse

Local installation:

git clone https://github.com/amiralihabibzadeh/Qmorse.git
cd Qmorse
pip install .

Usage Example

from Qmorse import bimorse as bim

text = bim.to_bimorse("Cogito, ergo sum")
bim.save_file(text, "rene.bimorse")

About

Qmorse provides the low-level binary form of Morse where timing is explicit and machine-interpretable.
This allows it to integrate naturally with optical signaling, audio pulses, embedded systems, or formats such as video-encoded Morse.
v2simux 1.3.1
V2Sim-UX: An Open-Source Mesoscopic V2G Simulation Platform in Urban Power and Transportation Network
Requires Python: >=3.9

# V2Sim Family

> Open-Source V2G Simulation Platform in Urban Power and Transportation Network

**Documents:** https://hesl-seu.github.io/v2sim-wiki

V2Sim family includes several open-source software for coupled urban power and transportation network. They are different in the transportation simulation part.

+ **V2Sim**: Use SUMO for **MICROSCOPIC** traffic simulation. It could identify the microscopic motion of a single vehicle, including its lane, speed, accerlation, etc. This version is suitable if your research concerns the implication of delicate motion of EVs on power grid. (Link: [V2Sim](https://github.com/hesl-seu/v2sim/))

+ **V2Sim-UX**: Use UXsim for **MESOCOPIC** traffic simulation. It runs much faster than the microscopic version, and can be accelerated furthermore with free-threading Python (3.14+). This version is suitable if your research need fast iterations and focus on the overall implication of the traffic flow. (Please scroll down to read instructions.)

If you are using V2Sim family, please cite the paper:
```
@ARTICLE{10970754,
  author={Qian, Tao and Fang, Mingyu and Hu, Qinran and Shao, Chengcheng and Zheng, Junyi},
  journal={IEEE Transactions on Smart Grid}, 
  title={V2Sim: An Open-Source Microscopic V2G Simulation Platform in Urban Power and Transportation Network}, 
  year={2025},
  volume={16},
  number={4},
  pages={3167-3178},
  keywords={Vehicle-to-grid;Partial discharges;Microscopy;Batteries;Planning;Discharges (electric);Optimization;Vehicle dynamics;Transportation;Roads;EV charging load simulation;microscopic EV behavior;vehicle-to-grid;charging station fault sensing},
  doi={10.1109/TSG.2025.3560976}}
```
Paper link for the microscopic version: https://ieeexplore.ieee.org/document/10970754

## V2Sim-UX: The Mesoscopic Version

V2Sim-UX is a mesoscopic V2G simulation platform in urban power and transportation network. It is open-source under BSD license. The traffic simulation is based on [UXsim](https://github.com/toruseo/UXsim).

## Quick start
This package has been uploaded to PyPI. It can be installed by:
```
pip install v2simux
```

Then, input the following command to open the GUI:
```
v2simux-gui
```

Visit our documents to see the quick start guide!
Link: https://hesl-seu.github.io/v2sim-wiki/#/v2simux/quick-start (English)
uzip 0.1.1
A compact Python library for archiving and extracting ZIP files.
Requires Python: >=3.8

# uzip

![Zip Archiver Logo](https://img.shields.io/badge/uzip%20-v0.1.0-blue?style=for-the-badge&logo=python)  
[![PyPI version](https://badge.fury.io/py/uzip.svg)](https://badge.fury.io/py/uzip)  
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)  
[![Python Version](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://www.python.org/downloads/)  

A compact and easy-to-use Python library for archiving files and directories into ZIP files, as well as extracting ZIP archives. Built with standard Python libraries—no external dependencies required! 🚀

## Features ✨
- **Archive Files & Directories**: Recursively zip files or entire folders with customizable compression.
- **Extract ZIPs**: Easily unpack archives to any directory.
- **Lightweight**: Uses only `zipfile` and `os` from the standard library.
- **Flexible Compression**: Supports various ZIP compression methods (e.g., DEFLATED, STORED).
- **Cross-Platform**: Works on Windows, macOS, and Linux.

## Installation 📦
#### Install via pip from PyPI:

```bash
pip install uzip
```

## Quick Start ⚡
### Archiving Files
#### Create an instance of archiver and use the archive method:
```Python
from uzip import archiver

zip = archiver()  # Default compression: ZIP_DEFLATED

# Archive a file and a directory
zip.archive('my_archive.zip', ['example.txt', 'my_folder/'])
```
### Extracting Archives
#### Use the extract method to unpack:
```Python
from uzip import archiver

zip = archiver()

# Extract to current directory
zip.extract('my_archive.zip')

# Or to a specific folder
zip.extract('my_archive.zip', extract_to='output/')
```

### Custom Compression
#### Specify compression during initialization:
```Python
import zipfile
from uzip import archiver

zip = archiver(compression=zipfile.ZIP_STORED)  # No compression
zip.archive('fast_archive.zip', ['large_file.bin'])
```
## API Reference 📖
### Class: archiver
- `__init__(self, compression: int = zipfile.ZIP_DEFLATED)`: Initializes with optional compression type.
- `archive(self, zip_path: str, paths: list[str]) -> None`: Archives files/directories to a ZIP.
- `extract(self, zip_path: str, extract_to: str = '.') -> None`: Extracts ZIP to a directory.

## Error Handling ⚠️
Wrap calls in `try-except` for robustness:
```Python
try:
    archiver.archive('archive.zip', ['nonexistent.txt'])
except FileNotFoundError as e:
    print(f"Error: {e}")
```
## License 📄
This project is licensed under the MIT License - see the LICENSE file for details.