https://github.com/hafaio/homeotopy
A python library for computing homeomorphisms between some common continuous spaces
https://github.com/hafaio/homeotopy
homeomorphism numpy python simplex sphere topology
Last synced: 12 days ago
JSON representation
A python library for computing homeomorphisms between some common continuous spaces
- Host: GitHub
- URL: https://github.com/hafaio/homeotopy
- Owner: hafaio
- License: mit
- Created: 2025-01-23T00:01:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-07-05T01:08:11.000Z (12 days ago)
- Last Synced: 2026-07-05T01:13:27.887Z (12 days ago)
- Topics: homeomorphism, numpy, python, simplex, sphere, topology
- Language: Python
- Homepage: https://hafaio.github.io/homeotopy/
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Homotopy
[](https://github.com/erikbrinkman/homeotopy/actions/workflows/python-package.yml)
[](https://pypi.org/project/homeotopy/)
[](https://erikbrinkman.github.io/homeotopy)
A python library for computing homeomorphisms between some common continuous
spaces.
## Installation
```sh
pip install homeotopy
```
## Usage
```py
import homeotopy
points = ...
# create a mapping from the simplex to the surface of the sphere
mapping = homeotopy.homeomorphism(homeotopy.simplex(), homeotopy.sphere())
sphere_points = mapping(points)
rev_mapping = ~mapping
duplicate_points = rev_mapping(sphere_points)
```
## Development
### Checks
```sh
uv run ruff format --check
uv run ruff check
uv run pyright
uv run pytest
```
### Publishing
Releases are cut manually: run the [`release` workflow](https://github.com/hafaio/homeotopy/actions/workflows/release.yml)
from the Actions tab and pick a version bump (patch/minor/major). It runs the checks,
bumps the version, builds and publishes to PyPI via
[trusted publishing](https://docs.pypi.org/trusted-publishers/) (no API token), tags the
release, and deploys the docs.