semvec/pypi-packages huggingface dataset:
DoSP 0.1.3
A DoSP (Data over Socket Protocol) client and server
Requires Python: >=3.8

# DoSP Protocol Specification
![PyPI - Version](https://img.shields.io/pypi/v/DoSP)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/RandNameOfOrg/DataOverSocketProtocol/python-publish.yml)

**DoSP** (Default or Simple Protocol) — TCP-протокол, работающий по умолчанию на порту `7744`. Используется для маршрутизации и пересылки сообщений между клиентами через центральный сервер.

---

## 📦 Message Format

```
B = Byte(s)
b = bit(s)  
[2B TYPE] [4B LENGTH] [optional 4B DST_IP] [PAYLOAD]
````

- `TYPE`: Тип сообщения (1 байт)
- `LENGTH`: Длина пакета, включая payload и DST_IP (если присутствует)
- `DST_IP`: Адрес получателя (если требуется)
- `PAYLOAD`: Полезная нагрузка

---

## 🔤 Message Types

| Name   | Hex   | Description        |
|--------|-------|--------------------|
| `MSG`  | `x01` | Сообщение          |
| `PING` | `x02` | Ping               |
| `S2C`  | `x03` | Отправка другому   |
| `GCL`  | `x04` | Получения клиентов |
| `FN`   | `x05` | Запустить функцию  |
| `SD`   | `x06` | Server Data        | 
| `RQIP` | `x07` | Запрос IP          |
| `GSI`  | `x08` | Получить self-info |
| `SA`   | `x10` | Ответ сервера      |
| `EXIT` | `x11` | Выход              |
| `ERR`  | `x12` | Ошибка             |
| `AIP`  | `x13` | Назначенный IP     |
| `HSK`  | `x14` | HandShake          |

types before 0x20 are reserved for build-in functions
other types are reserved for future use
---

## 🌐 vIPv4 — Virtual IP v4

Каждому клиенту сервер присваивает виртуальный IPv4-адрес по шаблону:

`"7.10.0.{x}"  # x начинается с 2`

* Адрес назначается при подключении (`AIP`)
* Используется для маршрутизации в `S2C`
* IP может быть задан как `10.0.0.{x}`, `192.168.1.{x}` и т.д.

---

## 🧠 Assign IP example

При старте сервера:

```python
import dosp.server as dosp_server
server = dosp_server.DoSP(ip_template="10.0.0.{x}")
server.start()
```

Клиенты получат IP вида `10.0.0.2`, `10.0.0.3`, …

---

## Interactive Client (IMC)
Interactive Message Client is client (made by [__themaster1970sf__](https://github.com/themaster1970sf)) allows to send messages to server and other clients, for full command list type `/help` after starting client 

---

## TODO

- \[X] allow `SD` (Save/Load data) in server (Not planned anymore)
rio-stac-io 0.3.5
A rasterio extension to open STAC Items and ItemCollections using native GDAL drivers
Requires Python: >=3.10

# rio-stac-io

![From Metadata to Pixels](docs/img/rio-stac-io.png "rio-stac-io")

rio-stac-io is a [rasterio](https://github.com/rasterio/rasterio) extension to open STAC Items and ItemCollections using native GDAL drivers including [STACIT](https://gdal.org/en/stable/drivers/raster/stacit.html), [STACTA](https://gdal.org/en/stable/drivers/raster/stacta.html) and [GTI](https://gdal.org/en/stable/drivers/raster/gti.html). The library is build on top of rasterio and pystac.

## Documentation

https://planetlabs.github.io/rio-stac-io


## Installation

```
pip install rio-stac-io
```

When using the GTI driver you will need to install `gti` extras. Your GDAL binaries need to be compiled with geoparquet support.

```
pip install rio-stac-io[gti]
```

## Usage

```python

from pystac_client import Client

import rio_stac_io as stacio

client = Client.open(...)
search = client.search(...)

with stacio.open(search, asset_key="data") as src:
    data = src.read()

```

## Development

This repository requires [Pixi](https://pixi.sh/latest/) v0.52.0 or later.

```
git clone git@github.com:planetlabs/rio-stac-io.git
cd rio-stac-io
pixi shell -e dev
```
gap-mapper 0.2.0
Add your description here
Requires Python: >=3.12

# gap-mapper

[![PyPI version](https://badge.fury.io/py/gap-mapper.svg)](https://badge.fury.io/py/gap-mapper)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

A simple Python utility to find a "gapped" or "sparse" string within a text and return its original offsets.

This is useful when you need to find a string that has had extra, arbitrary spaces inserted into it.

## Installation

Install the package from PyPI:

```bash
pip install gap-mapper
```

## Usage

The main function is `gapmap()`.

It takes an `original_text` (the haystack) and a `spaced_needle` (the gapped string to find). It finds the needle (ignoring its spaces) within the original text (also ignoring its spaces) and returns the correct `(start, end)` offsets of the match *in the original text*.

```python
import gap_mapper

# The full text to search within
haystack = "Hello, world! This is the main text."

# The string to find, which has extra, inconsistent spaces
needle = "w   o r l   d"

# Find the offsets
offsets = gap_mapper.gapmap(haystack, needle)

if offsets:
    print(f"Match found at offsets: {offsets}")
    
    start, end = offsets
    print(f"Matched string: '{haystack[start:end]}'")
else:
    print("No match found.")

```
Match found at offsets: (7, 12)
Matched string: 'world'

As you can see, gapmap correctly located "world" in the haystack and returned its true offsets (7, 12), even though the needle was "w o r l d".
pibs 0.1.0
PIBS: Permutational Invariance Block Solver implements a numerically exact method for solving the dissipative Tavis-Cummings model with local losses
Requires Python: <3.14,>=3.10
Keywords: cavity-qed, computational-physics, open-quantum-system, physics, superradiance

# PIBS: Permutational Invariance Block Solver


This python package implements an efficient, numerically exact method for solving the dynamics of the dissipative Tavis-Cummings model with local loss and dephasing processes (no gain!). The method exploits the weak permutation symmetry and the weak U(1) symmetry of the Lindblad master equation.

This code has been used in the publication [1].


## Installation
PIBS can be installed using pip:
```
$ python3 -m pip install pibs
```

## Example/Tutorial
An example for using PIBS is given in `tutorials/example.py`, and a jupyter-notebook with more detailed explanation in `tutorials/pibs_example.ipynb`


- **[1]** L. Freter, P. Fowler-Wright, J. Cuerda, B. W. Lovett, J. Keeling, and P. Törmä, ‘Theory of dynamical superradiance in organic materials’, arXiv: arXiv:2509.03067 (https://doi.org/10.48550/arXiv.2509.03067) (2025)