semvec/pypi-packages huggingface dataset:
shipshape 0.10.0
Open-source parametric vessel design and validation library
Requires Python: >=3.10
Keywords: hydrostatics, naval-architecture, structural-validation, vessel-design

# shipshape

Open-source parametric vessel design and validation library.

Shipshape provides boat-design-independent tools for naval engineering analysis. It is used by [Solar Proa](https://github.com/shipshape-marine/solar-proa) but can be applied to any parametric vessel design.

## Modules

| Module | Description | Requires FreeCAD |
|--------|-------------|------------------|
| `parameter` | Merge base parameters and compute derived values via a project-supplied plugin | No |
| `mass` | Compute component masses from a FreeCAD design and material properties | Yes |
| `buoyancy` | Find equilibrium pose (sinkage, pitch, roll) using Newton-Raphson iteration | Yes |
| `gz` | Compute the GZ righting-arm curve over a range of heel angles | Yes |
| `physics` | Center-of-gravity and center-of-buoyancy calculations | Yes |

## Installation

```bash
pip install shipshape
```

For modules that require FreeCAD geometry (mass, buoyancy, gz, physics), install FreeCAD via conda-forge:

```bash
conda install -c conda-forge freecad
```

## CLI Usage

Each module can be run as a CLI tool via `python -m shipshape.<module>`.

### parameter

Merges boat and configuration JSON files, then calls a project-supplied `compute_derived()` function to calculate derived values.

```bash
PYTHONPATH=. python -m shipshape.parameter \
    --compute myproject.parameter.compute \
    --boat constants/boats/boat.json \
    --configuration constants/configurations/config.json \
    --output artifact/parameters.json
```

The `--compute` argument is a dotted module path. The module must export a `compute_derived(data: dict) -> dict` function.

### mass

```bash
python -m shipshape.mass \
    --design artifact/boat.design.FCStd \
    --materials constants/material/materials.json \
    --output artifact/boat.mass.json
```

### buoyancy

```bash
python -m shipshape.buoyancy \
    --design artifact/boat.design.FCStd \
    --materials constants/material/materials.json \
    --output artifact/boat.buoyancy.json
```

### gz

```bash
python -m shipshape.gz \
    --design artifact/boat.design.FCStd \
    --buoyancy artifact/boat.buoyancy.json \
    --output artifact/boat.gz.json \
    --output-png artifact/boat.gz.png
```

## Releasing a new version

1. Edit `pyproject.toml` — bump the `version` field
2. `git add pyproject.toml`
3. `git commit -m "Bump version to X.Y.Z"`
4. `git push origin main`
5. `git tag vX.Y.Z`
6. `git push origin vX.Y.Z`

Push the commit before the tag so CI has the code when the tag event triggers the PyPI release.

## License

Apache 2.0
ok-script 1.0.53
Automation with Computer Vision for Python
Requires Python: ==3.12.*

# ok-script
* ok-script 是基于图像识别技术, 纯Python实现的, 支持Windows窗口和模拟器的自动化测试框架。
* 框架包含UI, 截图, 输入, 设备控制, OCR, 模板匹配, 框框Debug浮层, 基于Github Action的测试, 打包, 升级/降级。
* 基于开发一个工业级的自动化软件仅需几百行代码。

## 优势

1. 纯Python实现, 免费开源, 依赖库均为开源方案
2. 支持pip install任何第三方库, 可以方便整合yolo等框架
3. 一套代码即可支持Windows安卓模拟器/ADB连接的虚拟机, Windows客户端游戏
4. 自适应分辨率
5. 使用coco管理图片匹配素材, 仅需一个分辨率下的截图就, 支持不同分辨率自适应
6. 可打包离线/在线安装setup.exe, 支持通过Pip/Git国内镜像在线增量更新. 在线安装包仅3M
7. 支持Github Action一键构建
8. 支持多语言国际化

### 使用 目前仅支持Python 3.12

* 在你的项目中通过pip依赖使用
```commandline
pip install ok-script
```
* 本地编译源码使用
```commandline
pip install -r requirements.txt # 安装编译ok-script所需的的依赖
mklink /d "C:\path\to\your-project\ok" "C:\path\to\ok-script\ok" #Windows CMD 创建软链接到你的项目中
in_place_build.bat #如修改__init__.pyx 需要编译Cython代码
```

* 编译国际化文件
```commandline
cd ok\gui\i18n
.\release.cmd
cd ok\gui
.\qrc.cmd
```

## 文档和示例代码

* [游戏自动化入门](docs/intro_to_automation/README.md)
  - [1、基本原理：计算机如何“玩”游戏](docs/intro_to_automation/README.md#一基本原理计算机如何玩游戏)
    - [核心循环：三步走](docs/intro_to_automation/README.md#核心循环三步走)
    - [图像分析：从像素到决策](docs/intro_to_automation/README.md#图像分析从像素到决策)
        - [传统图色算法 (OpenCV 库)](docs/intro_to_automation/README.md#1-传统图色算法-opencv-库)
        - [神经网络推理 (Inference)](docs/intro_to_automation/README.md#2-神经网络推理-inference)
    - [2、编程语言选择](docs/intro_to_automation/README.md#二编程语言选择)
        - [常用库概览](docs/intro_to_automation/README.md#常用库概览)
    - [3、开发工具](docs/intro_to_automation/README.md#三开发工具)
* [快速开始](docs/quick_start/README.md)
* [进阶使用](docs/after_quick_start/README.md)
  - [1. 模板匹配 (Template Matching)](docs/after_quick_start/README.md#1-模板匹配-template-matching)
  - [2. 多语言国际化 (i18n)](docs/after_quick_start/README.md#2-多语言国际化-i18n)
  - [3. 自动化测试](docs/after_quick_start/README.md#3-自动化测试)
  - [4. 使用 GitHub Action 自动化打包与发布](docs/after_quick_start/README.md#4-使用-github-action-自动化打包与发布)
* [API文档](docs/api_doc/README.md)
* 开发者群: 938132715
* pip [https://pypi.org/project/ok-script](https://pypi.org/project/ok-script)


## 使用ok-script的项目：

* 鸣潮 [https://github.com/ok-oldking/ok-wuthering-wave](https://github.com/ok-oldking/ok-wuthering-waves)
* 原神(不在维护,
  但是后台过剧情可用) [https://github.com/ok-oldking/ok-genshin-impact](https://github.com/ok-oldking/ok-genshin-impact)
* 少前2 [https://github.com/ok-oldking/ok-gf2](https://github.com/ok-oldking/ok-gf2)
* 星铁 [https://github.com/Shasnow/ok-starrailassistant](https://github.com/Shasnow/ok-starrailassistant)
* 星痕共鸣 [https://github.com/Sanheiii/ok-star-resonance](https://github.com/Sanheiii/ok-star-resonance)
* 二重螺旋 [https://github.com/BnanZ0/ok-duet-night-abyss](https://github.com/BnanZ0/ok-duet-night-abyss)
* 白荆回廊(停止更新) [https://github.com/ok-oldking/ok-baijing](https://github.com/ok-oldking/ok-baijing)
pypn-habref-api 0.4.4
Python lib related to Habref referential (INPN)

# Habref-api-module

[![pytest](https://github.com/PnX-SI/Habref-api-module/actions/workflows/pytest.yml/badge.svg)](https://github.com/PnX-SI/Habref-api-module/actions/workflows/pytest.yml)
[![codecov](https://codecov.io/gh/PnX-SI/Habref-api-module/branch/master/graph/badge.svg?token=YM6Q6SO4EI)](https://codecov.io/gh/PnX-SI/Habref-api-module)

API d'interrogation d'Habref : référentiel des typologies d’habitats et de végétation pour la France (https://inpn.mnhn.fr/telechargement/referentiels/habitats).

## Technologies

- Python 3
- Flask
- SQLAlchemy

## Installation

- Créer un virtualenv et l'activer :

```
virtualenv -p /usr/bin/python3 venv
source venv/bin/acticate
```

- Installer le module :

```
pip install https://github.com/PnX-SI/Habref-api-module/archive/<X.Y.Z>.zip
```

- Installer le schéma de base de données :

Le module est fourni avec une commande pour installer la base de données. Cette commande télécharge le référentiel Habref et créé un schéma de base de données nommé ``ref_habitats``.

```
# Depuis le virtualenv
install_habref_schema <database uri>
# Exemple :
# install_habref_schema "postgresql://geonatadmin:monpassachanger@localhost:5432/geonature2db"
```
package-creation-tutorial-rmekni 0.1.0
A tutorial package for string operations
Requires Python: <4.0,>=3.8
Keywords: string, tutorial, operations

# package-creation-tutorial-rmekni

A tutorial package for string operations in Python.

## Installation

```bash
pip install package-creation-tutorial-rmekni
```

## Usage

```python
from package_creation_tutorial.string_ops import reverse_string, count_vowels, capitalize_words

# Reverse a string
print(reverse_string("hello"))  # Output: olleh

# Count vowels
print(count_vowels("hello"))  # Output: 2

# Capitalize words
print(capitalize_words("hello world"))  # Output: Hello World
```

## Features

- **reverse_string**: Reverse any string
- **count_vowels**: Count the number of vowels in a string
- **capitalize_words**: Capitalize the first letter of each word

## Documentation

Full documentation is available at: https://rhemmekni.github.io/package_creation_tutorial/

## Repository

Source code: https://github.com/RyhemMekni/package_creation_tutorial

## License

MIT License