semvec/pypi-packages huggingface dataset:
snowdrop-tangled-game-engine 1.1.0
A package for the Tangled game engine and support classes.
License: MIT
Requires Python: <3.14,>=3.11

# snowdrop-tangled-game-package
This repo contains base classes for the Tangled game and agents. It is also where the
game graphs I use repeatedly are stored. While Tangled can be played on any connected
graph, I selected some specific graphs to demonstrate certain aspects of the game. The game
graphs exposed on the tangled-game.com website include the graphs here that I analyzed
for the [X-Prize Phase 1 Submission document](https://fqodzpifyovgmqjlluin.supabase.co/storage/v1/object/public/pdfs/XPRIZE_Phase_I_Submission_Snowdrop.pdf), with an additional graph added (graph 5,
the Petersen graph).

## Game Graphs
The `game_graph_ground_truth.py` file contains a set of game graphs and game parameters for those
graphs. The numbering on these is historical and doesn't make much sense, but I got used to it. 
To define a game graph, define the graph itself in the `GRAPH_DATABASE` dict, the vertex ownership 
choice in `VERTEX_OWNERSHIP`, the draw boundary for your graph in `EPSILON_VALUES`, and the anneal time 
for the quantum hardware in `ANNEAL_TIMES`. `ALLOWED_GRAPHS` is a filter to return only a subset of 
all the graphs. The current filter only returns the graphs in the X-Prize submission plus the Petersen graph.

## Game Base Classes
Most of the other stuff here are base classes that you will subclass to build game playing agents and
adjudicators in the snowdrop-tangled-agents and snowdrop-adjudicators repos respectively. In those repos
I'll describe how this works. The three most important base classes are the `Game` and `GameState` classes 
in `game.py` and the `GameAgentBase` class in `base_agent.py`.
ast-grep-py 0.40.5
Structural Search and Rewrite code at large scale using precise AST pattern.
License: MIT
Requires Python: >=3.8
Keywords: ast, pattern, codemod, structural search, rewrite

# ast-grep python binding

[![PyPI](https://img.shields.io/pypi/v/ast-grep-py.svg?logo=PyPI)](https://pypi.org/project/ast-grep-py/)
[![Website](https://img.shields.io/badge/ast--grep-Ast--Grep_Website-red?logoColor=red)](https://ast-grep.github.io/)

<p align=center>
  <img src="https://ast-grep.github.io/logo.svg" alt="ast-grep"/>
</p>

## ast-grep

`ast-grep` is a tool for code structural search, lint, and rewriting. 

This crate intends to build a native python binding of ast-grep and provide a python API for programmatic usage.

## Installation

```bash
pip install ast-grep-py
```

## Usage

You can take our tests as examples. For example, [test_simple.py](./tests/test_simple.py) shows how to use ast-grep to search for a pattern in a file.

Please see the [API usage guide](https://ast-grep.github.io/guide/api-usage.html) and [API reference](https://ast-grep.github.io/reference/api.html) for more details.

Other resources include [ast-grep's official site](https://ast-grep.github.io/) and [repository](https://github.com/ast-grep/ast-grep).

## Development

### Setup virtualenv

```shell
python -m venv venv
```

### Activate venv

```shell
source venv/bin/activate
```

### Install `maturin`

```shell
pip install maturin[patchelf]
```

### MacOS: Install `patchelf` and `maturin`

```shell
brew install patchelf
pip install maturin
```

### Build bindings

```shell
maturin develop
```

### Run tests

```shell
pytest
```

All tests files are under [tests](./tests) directory.

## License

This project is licensed under the MIT license.