A small example package
Project description
Project Title
Polyhex is a Python library to easily create polyhexes from regular hexagons and export their underlying graph structure to deep-learning frameworks.
✨ About The Project
Polyhex aims to be at the interface between a natural creation of polyhexes and a reliable graph representation of the polyhexes' attributes.
It was designed for the Material Science and Reinforcement Learning communities, but can surely be used for other purposes.
Key Features:
- Beginner friendly. Create a polyhex, from
▶️ A list of hexagons or a number of hexagons
▶️ Predefined shapes with flexible dimensions - Modular. Record a polyhex's graph structure: record the edges, the vertices, the hexagons and the border of a polyhex in a simple call.
- Built for Machine-Learning. Polyhex offers an off-the-shelf export of your graphs to PyGeom, a popular framework for deep-learning on graphs.
🚀 Getting Started
Installing polyhex should be as easy as
pip install polyhex
You can then have a look at the examples folder.
📓✏️ Documentation
Work in progress
🗺️ Roadmap
- Ability to create a polyhex and export it to PyGeom's data format.
- Implementation of games rules and scoring, like Cascadia
- Game assets
- C++ routines
- OpenSpiel binders
🤝 Contributing
Any contribution and feedback is greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📜 License
Distributed under the Apache License. See LICENSE for more information.
📧 Contact
Contact the authors directly at: emilienvalat@gmail.com
🙏 Acknowledgments
Huge thanks to Amit Patel (Red Blob Games) for all the resources about hexagons.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polyhex-0.1.3.tar.gz.
File metadata
- Download URL: polyhex-0.1.3.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef6727ae1ef5ef400eaa206f163972a2681521cb4c0fd73a1131f54bce506bff
|
|
| MD5 |
d6ba6fea1c65abb716ee7f75c3a03f0b
|
|
| BLAKE2b-256 |
1e909ffe109f8e71c77cabd97e746534f577214eadd338cbb1a2a8d429404966
|
Provenance
The following attestation bundles were made for polyhex-0.1.3.tar.gz:
Publisher:
python-publish.yml on Emvlt/polyhex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polyhex-0.1.3.tar.gz -
Subject digest:
ef6727ae1ef5ef400eaa206f163972a2681521cb4c0fd73a1131f54bce506bff - Sigstore transparency entry: 465014347
- Sigstore integration time:
-
Permalink:
Emvlt/polyhex@fce1a27ca8f80f5e9bc78f94415f59326d5c59f2 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/Emvlt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@fce1a27ca8f80f5e9bc78f94415f59326d5c59f2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file polyhex-0.1.3-py3-none-any.whl.
File metadata
- Download URL: polyhex-0.1.3-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6028c0b0d39e0583df25f6aa4fc634e9712c6dede18592af7fbc32e98b579c68
|
|
| MD5 |
1012760874c7aec1975c26c146bac254
|
|
| BLAKE2b-256 |
a48e2c2fc508c2a3c65af583ec33276d41a9b196add95499357d0d8d691ae4dd
|
Provenance
The following attestation bundles were made for polyhex-0.1.3-py3-none-any.whl:
Publisher:
python-publish.yml on Emvlt/polyhex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polyhex-0.1.3-py3-none-any.whl -
Subject digest:
6028c0b0d39e0583df25f6aa4fc634e9712c6dede18592af7fbc32e98b579c68 - Sigstore transparency entry: 465014384
- Sigstore integration time:
-
Permalink:
Emvlt/polyhex@fce1a27ca8f80f5e9bc78f94415f59326d5c59f2 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/Emvlt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@fce1a27ca8f80f5e9bc78f94415f59326d5c59f2 -
Trigger Event:
release
-
Statement type: