semvec/pypi-packages huggingface dataset:
hpyhex 0.2.0.1
Simplified implementations of the HappyHex game components and hexagonal system in Python.

# hpyhex
Simplified implementations of the HappyHex game components and hexagonal system.

## Installation
```bash
pip install hpyhex
```

## Features
- Hexagonal grid representation
- Basic game mechanics for HappyHex
- Utility functions for hexagonal calculations

## Author
Developed by William Wu.

## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## Usage
```python
from hpyhex.hex import Hex, Piece, HexEngine
from hpyhex.game import Game, PieceFactory

# Create a hexagonal coordinate
coo = Hex(0, 1)

# Create a piece by name
piece = PieceFactory.get_piece("triangle_3_a")

# Create a game engine with radius 3
engine = HexEngine(radius=3)

# Add a piece to the engine
engine.add_piece(piece, coo)

# Eliminate lines and get score
score = len(engine.eliminate()) * 5

# Create a game with engine radius and queue size
game = Game(engine=3, queue=5)
print(game)

# Make a move using a custom algorithm
def simple_algorithm(engine, queue):
	# Always place the first piece at the center
	return 0, Hex(0, 0)
game.make_move(simple_algorithm)
```

## Main Classes

- **Hex**: Represents a hexagonal grid coordinate using a custom line-based system. Supports arithmetic, hashing, and tuple compatibility.
- **Piece**: Represents a shape made of 7 blocks, optimized for memory and performance. Use `PieceFactory` to create pieces by name or byte value.
- **HexEngine**: Manages the hexagonal grid, supports adding pieces, eliminating lines, and computing entropy.
- **PieceFactory**: Utility for creating pieces by name, byte, or randomly. Provides access to all predefined pieces.
- **Game**: Manages the game state, piece queue, score, and turn. Supports adding pieces and making moves with algorithms.

## Quickstart

1. Install the package:
   ```bash
   pip install hpyhex
   ```
2. Import and use the main classes as shown above.
3. Create custom algorithms to interact with the game environment.

## Benchmarking Algorithms

The package includes benchmarking tools to evaluate and compare algorithms:

```python
from hpyhex.benchmark import benchmark, compare

# Benchmark a single algorithm
avg_score, avg_turn = benchmark(simple_algorithm, engine_radius=3, queue_size=5, eval_times=10)

# Compare two algorithms
similarity = compare(alg1, alg2, engine_radius=3, queue_size=5, eval_times=100)
```
text-utils-prachi 0.1.0
A basic text utilities package
Requires Python: >=3.6

#text-utils

A simple python package for basic text utilities

##installation

pip install text_utils


#3 usage

from text_utils import clean_text,word_count

text = " Hello   welcome   to   the world    of anlytics"


print(clean_text(text))#\x00 \x00t\x00e\x00x\x00t\x00_\x00u\x00t\x00i\x00l\x00s\x00
\x00
\x00#\x00 \x00t\x00e\x00x\x00t\x00_\x00u\x00t\x00i\x00l\x00s\x00_\x00p\x00r\x00a\x00c\x00h\x00i\x00
\x00
\x00
allianceauth-invoices 0.1.8
Invoice module for AllianceAuth with simplicity and extendability in mind.
Requires Python: >=3.8
Keywords: allianceauth, eveonline

# Invoice Manager

Invoice module for [AllianceAuth](https://gitlab.com/allianceauth/allianceauth) with simplicity and extendability in mind.

Included `Bits and Bobs`:

- Simple Invoice Model
  - Assigned to Character
  - Due Dates
  - Invoice Ref used for tracking payments
  - Notifications
- Simple task for checking for payments

The `ToDo` List:

- Make Payment Corp selectable at invoice level
- Add the Open info in game from SRP-Mod

## Installation

0. this app is built as a sub module of [corptools](https://github.com/pvyParts/allianceauth-corp-tools), please install this first.
1. Install the app `pip install -U allianceauth-invoices`
2. Add `'invoices',` to your `INSTALLED_APPS` in your projects `local.py`
3. run migrations, collect static and restart auth
   - `python manage.py migrate invoices`
   - `python manage.py collectstatic`
   - `supervisorctrl restart all`
4. go go the following address to set up default cron tasks `AUTH ADDRESS/invoice/admin_create_tasks/`
5. setup your perms as documented below
6. add characters and corp tokens as required
7. Setup update tasks if you wish for the data to be auto updated. See Usage Below.

## Updates

1. Install the app `pip install -U allianceauth-invoices`
2. run migrations, collect static and restart auth
   - `python manage.py migrate invoices`
   - `python manage.py collectstatic`
   - `supervisorctrl restart all`

## Set Corp ID

Add the below lines to your `local.py` settings file, Changing the contexts to yours.

```python
## Settings for Invoice Manager
PAYMENT_CORP = 123456789
```

You can optionally se the name of the app in the ui by setting this setting

```python
## name for Invoice Manager
INVOICES_APP_NAME = "Invoices Pay Now!"
```

## Permissions

There are some basic access perms

Admin perms are filtered by main character, if a person has neutral alts loaded their invoices will also be visible to someone who can see their main.

| Perm            | Admin Site | Perm                             | Description                                         |
| --------------- | ---------- | -------------------------------- | --------------------------------------------------- |
| access_invoices | nill       | Can Access the Invoice App.      | Generic Access perm to show the Invoice menu option |
| view_all        | nill       | Can View All Invoices.           | Superuser level access                              |
| view_alliance   | nill       | Can View Own Alliances Invoices. | Alliance only level access                          |
| view_corp       | nill       | Can View Own Corps Invoices.     | Corp restricted level access                        |

## Notification Settings

You can disable the notifications generated by this app for either discord or auth by setting the following to `false` the defaults are `True`

```python
## No Auth Notifications
INVOICES_SEND_AUTH_NOTIFICATIONS = False


## No Discord Notifications
INVOICES_SEND_DISCORD_BOT_NOTIFICATIONS = False
```
bolt-native-macros 0.5.1
Add your description here
Requires Python: >=3.14

# Bolt Native Macros
> Lets you use macros naturally within your bolt code

## Configuration
1. Setup `beet.yml`/`beet.json`
```yml
pipeline:
 - mecha

require:
 - bolt
 - bolt_expressions    # Optional but has compatibility
 - bolt_native_macros
```
2. Start using macros
```mcfunction
if score @s id matches $(id) say me
```
```mcfunction
$execute if score @s id matches $(id) run say me
```