Skip to main content

Hedonic

A Python library for hedonic games.

Installation

pip install hedonic

Usage

import igraph as ig 
from hedonic import Game

g = ig.Graph.Famous("Zachary")  # sample graph: Zachary's karate club
h = Game(g)

Development

This project uses uv for dependency management and building.

To set up development environment:

uv venv
source .venv/bin/activate
uv sync

To build the package:

uv build

To publish to PyPI:

uv publish --token <your-pypi-token>

GitHub Actions Publishing

This repository includes GitHub Actions workflows for automated publishing:

  • TestPyPI workflow: Currently active, publishes to TestPyPI on v* tags
  • PyPI workflow: Currently disabled (can be re-enabled later)
  • Automatic publishing when you push version tags
  • Manual publishing from the Actions tab
  • Secure authentication using OIDC for TestPyPI

Quick Release

# Bump version and prepare release
./scripts/release.sh patch  # or minor/major

# Push everything (triggers TestPyPI workflow)
git push origin main && git push origin v0.0.2

Version Types

  • patch: 0.0.10.0.2 (bug fixes, small changes)
  • minor: 0.0.10.1.0 (new features, backward compatible)
  • major: 0.0.11.0.0 (breaking changes)

Current Status

  • TestPyPI: ✅ Active - publishes on v* tags
  • PyPI: ❌ Disabled - workflow file is commented out

Enabling PyPI Publishing Later

When you're ready to publish to PyPI:

  1. Rename .github/workflows/publish-pypi.yml.disabled to publish-pypi.yml
  2. Add PYPI_API_TOKEN secret to your GitHub repository
  3. Both workflows will then be active with different tag patterns

For detailed setup instructions, see docs/OIDC_SETUP.md.

Download files

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

Source Distribution

hedonic-0.1.0.tar.gz (187.0 kB view details)

Uploaded Source

Built Distribution

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

hedonic-0.1.0-py3-none-any.whl (205.0 kB view details)

Uploaded Python 3

File details

Details for the file hedonic-0.1.0.tar.gz.

File metadata

  • Download URL: hedonic-0.1.0.tar.gz
  • Upload date:
  • Size: 187.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hedonic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 65d540a9c7afe4061d568a94a492fd67a167f8c17bfc28f999844a0a429dbe9e
MD5 66d82b7b84c97d21b61323f7eb95aa80
BLAKE2b-256 0a7f12f8096565cb9aa1c360a57d3b3adac0c50d683d30571c5b2ae020f1e853

See more details on using hashes here.

File details

Details for the file hedonic-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hedonic-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 205.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hedonic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62e3615fe655ec022640463b277518f67f9a3c78b883fde1f7c2c0f62e97e987
MD5 bd2511e1b3f5d6eae742ddd2e5a13709
BLAKE2b-256 a32d38ff5d04871d77775d8db6d80936951832179cd1fa0b07cde357ee0a65f8

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.1

2 files

This release

0.1.0 This release

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.4

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page