semvec/pypi-packages huggingface dataset:
awive 3.3.2
Adaptive Water Image Velocimetry
Requires Python: <=3.13.7,>=3.9

<div align="center">

# AWIVE

[![python](https://img.shields.io/badge/-Python_3.9-blue?logo=python&logoColor=white)](https://docs.python.org/3.9/)
[![opencv](https://img.shields.io/badge/OpenCV_4.6-ee4c2c?logo=opencv&logoColor=white)](https://opencv.org/releases/)
<br>
[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![pre-commit](https://img.shields.io/badge/Pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
<br>
[![Code Quality](https://github.com/joseph-pq/awive/actions/workflows/code-quality.yml/badge.svg)](https://github.com/joseph-pq/awive/actions/workflows/code-quality.yml)
[![Tests](https://github.com/joseph-pq/awive/actions/workflows/tests.yaml/badge.svg)](https://github.com/joseph-pq/awive/actions/workflows/tests.yaml)
[![codecov](https://codecov.io/gh/joseph-pq/awive/graph/badge.svg?token=JYOVV0D79Iq)](https://codecov.io/gh/joseph-pq/awive)
<br>
[![license](https://img.shields.io/badge/License-MIT-green.svg?labelColor=gray)](https://github.com/nathanpainchaud/lightning-hydra-template?tab=MIT-1-ov-file)

</div>

<br>

AWIVE, an acronym for Adaptive Water Image Velocimetry Estimator, is a
software package designed for estimating the velocity field from a sequence of
images. It comprises two methods: STIV and OTV, both geared towards achieving
velocity estimations with low computational costs.

## Installing

Install and update using pip:

```bash
pip install awive
```

## Usage

OTV usage:

```bash
python awive/algorithms/otv.py data/config.yaml
```
github-bulk-clone 0.0.3
A script that script that helps get a backup of all your github projects.
Requires Python: >=3.9

## README for GitHub Bulk Clone

### Overview

**github-bulk-clone** is a Python package that allows you to efficiently clone all repositories from a specified GitHub user, including private ones if you have access.

### Installation

Install via pip:

```bash
pip install github-bulk-clone
```

### Usage

#### Command-line

Run the following command in your terminal:

```bash
python -m github_bulk_clone <username> <clone_directory> [-t <token>]
```

- `<username>`: GitHub username.
- `<clone_directory>`: Local directory for cloning.
- `-t <token>`: Optional GitHub personal access token.

Or you can just use `blkclone`

```bash
blkclone <username> <clone_directory> [-t <token>]
```

#### Python Script

Import and use the functions directly:

```python
from github_bulk_clone import clone_all_repos_of

clone_all_repos_of('USER_NAME', 'YOUR_TOKEN', './my_repos')
```

### Functions

- **`get_all_repo_names(api_token, username)`**: Fetches repository URLs.
- **`store_repo_names_to_file(repo_list, path)`**: Saves repository URLs to a file.
- **`clone_from_list(repos, clone_directory)`**: Clones repositories from a list.
- **`clone_all_repos_of(username, api_token, clone_directory)`**: Main function to clone repositories.

### License

This project is licensed under the MIT License.

### Contributing

Feel free to contribute via pull requests or by opening issues on GitHub.
pg-scram-sha256 1.0.0
Generate and verify PostgreSQL-compatible SCRAM-SHA-256 password verifiers.
Requires Python: >=3.11
Keywords: postgresql, scram, pgbouncer, authentication, password, security, pbkdf2, crypto

# pg_scram-sha256

Generate and verify PostgreSQL-compatible SCRAM-SHA-256 password verifiers in exactly the same format that PostgreSQL stores inside `pg_authid` and that PgBouncer expects inside `userlist.txt`.

The tool uses Python’s built-in `hashlib`, `hmac`, and `pbkdf2_hmac` and does not depend on OpenSSL. All cryptographic operations strictly follow [RFC7677](https://datatracker.ietf.org/doc/html/rfc7677) and PostgreSQL's `src/common/scram-common.c` logic.

## Usage

### Generate SCRAM verifier

```sh
scram-sha256 mypassword
```

Example output:

```plain
SCRAM-SHA-256$4096:jJtPFbKh8Kbl0JUdhJLiRg==$rLZuvwE5U7S05GbFizTJt8vlTblsBF0o9g1wxI6O8IU=$Bg4xIDb0tsYY6MZU1eQDp6ccq4ImjgJ63NMI0rKq/Zs=
```

#### With custom salt (HEX):

```sh
scram-sha256 -s 00112233445566778899AABBCCDDEEFF mypassword
```

#### With custom salt (BASE64):

```sh
scram-sha256 -s ABBCEEV1sZRbI9twee59Ww== mypassword
```

#### With custiom iteration count

```sh
scram-sha256 -i 8192 mypassword
```

### Verify password

```sh
scram-sha256 mypassword "SCRAM-SHA-256$4096:..."
```

### Using with PostgreSQL

```sql
ALTER ROLE testuser PASSWORD 'SCRAM-SHA-256$4096:...';
```

### Using with PgBouncer

Inside `userlist.txt`:

```plain
"username" "SCRAM-SHA-256$4096:..."
```

### API Reference

```python
from scram_sha256 import scram_sha256, verify_scram_sha256

v = scram_sha256(b"mypassword", iterations=4096, salt=None)
verify_scram_sha256("mypassword", v)  # True
verify_scram_sha256("badpassword", v)  # False
```

## Notes

- Salt must be 16 bytes, same as PostgreSQL.
- Iteration count must be at least 4096 (default), per PostgreSQL defaults.
- The tool uses `hmac.compare_digest()` for constant-time comparison.
- No external C or OpenSSL dependencies, so safe in minimal containers.

## License

MIT license.
scram-sha256 1.0.0
Generate and verify PostgreSQL-compatible SCRAM-SHA-256 password verifiers.
Requires Python: >=3.11
Keywords: postgresql, scram, pgbouncer, authentication, password, security, pbkdf2, crypto

# scram-sha256

Generate and verify PostgreSQL-compatible SCRAM-SHA-256 password verifiers in exactly the same format that PostgreSQL stores inside `pg_authid` and that PgBouncer expects inside `userlist.txt`.

The tool uses Python’s built-in `hashlib`, `hmac`, and `pbkdf2_hmac` and does not depend on OpenSSL. All cryptographic operations strictly follow [RFC7677](https://datatracker.ietf.org/doc/html/rfc7677) and PostgreSQL's `src/common/scram-common.c` logic.

## Usage

### Generate SCRAM verifier

```sh
scram-sha256 mypassword
```

Example output:

```plain
SCRAM-SHA-256$4096:jJtPFbKh8Kbl0JUdhJLiRg==$rLZuvwE5U7S05GbFizTJt8vlTblsBF0o9g1wxI6O8IU=$Bg4xIDb0tsYY6MZU1eQDp6ccq4ImjgJ63NMI0rKq/Zs=
```

#### With custom salt (HEX):

```sh
scram-sha256 -s 00112233445566778899AABBCCDDEEFF mypassword
```

#### With custom salt (BASE64):

```sh
scram-sha256 -s ABBCEEV1sZRbI9twee59Ww== mypassword
```

#### With custiom iteration count

```sh
scram-sha256 -i 8192 mypassword
```

### Verify password

```sh
scram-sha256 mypassword "SCRAM-SHA-256$4096:..."
```

### Using with PostgreSQL

```sql
ALTER ROLE testuser PASSWORD 'SCRAM-SHA-256$4096:...';
```

### Using with PgBouncer

Inside `userlist.txt`:

```plain
"username" "SCRAM-SHA-256$4096:..."
```

### API Reference

```python
from scram_sha256 import scram_sha256, verify_scram_sha256

v = scram_sha256(b"mypassword", iterations=4096, salt=None)
verify_scram_sha256("mypassword", v)  # True
verify_scram_sha256("badpassword", v)  # False
```

## Notes

- Salt must be 16 bytes, same as PostgreSQL.
- Iteration count must be at least 4096 (default), per PostgreSQL defaults.
- The tool uses `hmac.compare_digest()` for constant-time comparison.
- No external C or OpenSSL dependencies, so safe in minimal containers.

## License

MIT license.
v2sim 1.3.1
V2Sim: An Open-Source Microscopic V2G Simulation Platform in Urban Power and Transportation Network
Requires Python: >=3.8

# V2Sim Family

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

**Documents:** http://v2sim.heslab.wiki (Backup links: [HTTPS Link](https://hesl-seu.github.io/v2sim-wiki) | [CN Mirror 中文镜像](https://v2sim.myfrank.cn/#/zh_hans/))

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. (Please scroll down to read instructions.)

+ **V2Sim-UX**: Use uxsim for **MESOCOPIC** traffic simulation. It runs very fast 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. (Link: [V2Sim-UX](https://github.com/hesl-seu/v2sim/tree/uxsim))

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: The Microscopic Version

V2Sim is a microscopic V2G simulation platform in urban power and transportation network. It is open-source under BSD license. 

+ **Note**: Current code of V2Sim is ahead of the paper described. The exact older code used in the paper is [here](https://github.com/fmy-xfk/v2sim/commit/940ebd5d988f53fde90f4d83d107f136334952f9). The code used in [arXiv](https://arxiv.org/abs/2412.09808) is the initial commit.

+ **Note 2**: Code of PDN part is not included in the repository, it is stored in another repository: [FPowerKit](https://gitee.com/fmy_xfk/fpowerkit).

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

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

Visit our documents to see the quick start guide!
Link: https://hesl-seu.github.io/v2sim-wiki/#/v2sim/quick-start (English)
shapley-banckruptcy 0.1.1
Algorithms for computing the Shapley value in bankruptcy games
Requires Python: >=3.11

# Shapley-Banckruptcy

⚠️ **Note:** This package has been moved to [shapley-bankruptcy](https://pypi.org/project/shapley-bankruptcy/)

Please install the new version instead:
```bash
pip install shapley-bankruptcy
```