Skip to main content

A small example package

Project description

Project Title

License: Apache

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".

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polyhex-0.1.1.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polyhex-0.1.1-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file polyhex-0.1.1.tar.gz.

File metadata

  • Download URL: polyhex-0.1.1.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

Hashes for polyhex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 106bfb69079e55d0fa6b95db035270ac7c3285e5bd85f0b2a2db13906be7d3ae
MD5 0d1f5fa4b8df7dcc4f520d3465587978
BLAKE2b-256 69b8600c2d0301d23e2c9c44d4f61109a901a038272a2c4f7a39975d143b6495

See more details on using hashes here.

Provenance

The following attestation bundles were made for polyhex-0.1.1.tar.gz:

Publisher: python-publish.yml on Emvlt/polyhex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polyhex-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: polyhex-0.1.1-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

Hashes for polyhex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f9ad2e2173110c1ad42dfa35af81a53c5dc6ee967e84eaadff2ef99b250dac01
MD5 663a4877e8e6b549b14de3eb915f1774
BLAKE2b-256 92c898d97c13d5062343c5b98674712a4dffe66cff49febeb8aeab75d1e26faa

See more details on using hashes here.

Provenance

The following attestation bundles were made for polyhex-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on Emvlt/polyhex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page