semvec/pypi-packages huggingface dataset:
texventure 0.1.0
A text-based adventure game generator and engine
Requires Python: >=3.12
Keywords: adventure, game, interactive-fiction, text-adventure

# Texventure

A text-based adventure game. It allows you to create and play interactive stories using a command-line interface.

## Installation

Clone the repository and install with `pip install .` from within the repo 

## Requirements

texventure relies on openai for dynamic event generation, so you need to have an OpenAI API key. You can set it as an environment variable:

```bash
export OPENAI_API_KEY="your_api_key_here"
```
You can optionally choose the model to use for dynamic event generation by passing the `--model` argument when running the game. The default model is `gpt-4.1-nano`, but you can change it to any other OpenAI model that suits your needs.

## Creating a story

To create a story, you need to write a TOML file that defines the structure of your adventure. The file should include the following sections:

- `title`: The title of your story.
- `setting`: A description of the world where the story takes place.
- `outline`: A brief overview of the main plot points.
- `n_acts`: The number of acts in your story.
- `n_scenes`: The number of scenes in each act.
- `n_npcs`: The number of non-player characters (NPCs) in your story.

You can optionall also provide the acts and scenes in the TOML file, or you can let the game generate them dynamically based on your outline.

With a template complete, generate a story file with the following command:

```bash
texventure-generate your_story_template.toml -o your_story_file.json
```
See `template.toml` as an example.

## Playing a texventure game
To play a game, run the following command:

```bash
texventure-play your_story_file.json
```
## Commands

Within the game, you are presented with events in the narrative, and you must make choices to progress the story. Additionally, you can use the following commands:
- `look`: Look around the current scene.
- `history`: View the history of your actions.
- `inventory`: Check your inventory for items you have collected.
- `save`: Save your current game state.
- `status`: Check your current status, scene, and other relevant information.
- `choice <choice_number>`: Make a choice based on the available options presented in the current scene.
- `exit`: Exit the game.

The save command will produce a `your_story_file-savegame.json`. To continue your progress where you left off, run the play command with the save file:

```bash
texventure your_story_file-savegame.json
```
prithvi-py-sdk 0.1.0
Official Python SDK for Prithvi in-memory key-value database.
Requires Python: >=3.7

Prithvi Python SDK

Official **Python SDK** for [Prithvi](https://github.com/psidh/prithvi) — a fast, in-memory key-value database built from scratch in Java.  
This SDK allows Python developers to easily connect and interact with a running Prithvi server over TCP.

---

## Features

- Easy connection to Prithvi server over TCP
- Support for all major commands:
  - `SET`, `GET`, `DEL`, `EXISTS`, `KEYS`
  - List ops: `LPUSH`, `RPUSH`, `LPOP`, `RPOP`, `GETLIST`
  - Set ops: `SADD`, `SREM`, `SMEMBERS`
  - Persistence: `SAVE`, `LOAD`, `FLUSH`
  - Auth: `AUTH`, `TOKEN`
- Auto-reconnect with retry logic
- Token storage and reuse
- Tiny and dependency-free

---

## Installation

```bash
pip install prithvi-py-sdk
````

---

## Usage

```python
from prithvi_client import PrithviClient

client = PrithviClient("127.0.0.1", 1902)
client.connect()

print(client.auth("sidharth"))               # Authenticate and store token
print(client.token())                        # Send stored token for verification

print(client.set("mykey", "myvalue"))        # Store key
print(client.get("mykey"))                   # Retrieve key

print(client.lpush("mylist", "1"))           # Push to list
print(client.get_list("mylist"))             # Get list

client.close()                               # Close connection
```

---

## Auth Flow

```python
client.auth("your-username")     # Receives and stores JWT-style token
client.token()                   # Verifies with stored token
```

---

## Available Commands

| Type   | Methods                                          |
| ------ | ------------------------------------------------ |
| Keys   | `set`, `get`, `del`, `exists`, `keys`            |
| Lists  | `lpush`, `rpush`, `lpop`, `rpop`, `get_list`     |
| Sets   | `sadd`, `srem`, `smembers`                       |
| Auth   | `auth`, `token`, `get_stored_token`              |
| System | `save`, `load`, `flush`, `quit`, `help`, `close` |

---

## Requirements

* Python 3.7+
* A running [Prithvi Server](https://github.com/psidh/prithvi) on port `1902`

---

## Contributing

Pull requests are welcome.
For major changes, open an issue first to discuss what you want to change.

---

## License

[MIT](./LICENSE)

---

## 💡 About Prithvi

Prithvi is a custom-built, lightweight, Redis-like in-memory key-value store with TTL, LRU cache, multithreading, authentication, and persistence.

> 🔗 GitHub: [github.com/psidh/prithvi](https://github.com/psidh/prithvi)

```

---
nonebot-plugin-tetris-stats 1.11.0
一款基于 NoneBot2 的用于查询 Tetris 相关游戏数据的插件
Requires Python: >=3.10
Keywords: nonebot2

<div align="center">

<p align="center">
  <img src="img/logo.svg" width="200" height="200" alt="logo" title="Tetris Stats"></a>
</p>

# Tetris Stats

✨ 一款基于 [NoneBot2](https://github.com/nonebot/nonebot2) 的用于查询 Tetris 相关游戏玩家数据的插件 ✨

</div>

<p align="center">
<a href="https://github.com/shoucandanghehe/nonebot-plugin-tetris-stats/blob/main/LICENSE">
  <img
    src="https://img.shields.io/github/license/shoucandanghehe/nonebot-plugin-tetris-stats"
    alt="License"
  />
</a>
<a href="https://www.python.org/">
  <img
    src="https://img.shields.io/badge/Python-3.10+-blue"
    alt="Python"
  />
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-tetris-stats">
  <img
    src="https://img.shields.io/pypi/v/nonebot-plugin-tetris-stats"
    alt="PyPi"
  />
</a>
<a href="https://github.com/charliermarsh/ruff">
  <img
    src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json"
    alt="Ruff"
  />
</a>
<a href="https://gitmoji.dev">
  <img
    src="https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg?style=flat-square"
    alt="Gitmoji"
  />
</a>
<a href="https://wakatime.com/badge/user/138b2226-8e02-42be-b99d-35c05198836f/project/65f5bdf7-45ec-479a-8dd2-18c498c910ca">
  <img
    src="https://wakatime.com/badge/user/138b2226-8e02-42be-b99d-35c05198836f/project/65f5bdf7-45ec-479a-8dd2-18c498c910ca.svg"
    alt="wakatime"
    />
</a>
</p>

## ✨ 目前支持的游戏

- [TETR.IO](https://tetr.io/)
- [茶服](https://teatube.cn/tos/)
- [TOP](http://tetrisonline.pl/)

## 🚀 安装

- 使用 nb-cli

```bash
nb plugin install nonebot-plugin-tetris-stats
```

- 使用 poetry

```bash
poetry add nonebot-plugin-tetris-stats
```

- 使用 pip ~~不推荐~~

```bash
pip install nonebot-plugin-tetris-stats
```

## ♿️ 使用

- 参考 NoneBot2 文档 [加载插件](https://nonebot.dev/docs/tutorial/create-plugin#%E5%8A%A0%E8%BD%BD%E6%8F%92%E4%BB%B6)

## 🎉 鸣谢

- [NoneBot2](https://v2.nonebot.dev/)
- 所有为机器人生态做出贡献的人❤️

## 📝 开源

本项目使用 [AGPL-3.0](https://github.com/shoucandanghehe/nonebot-plugin-tetris-stats/blob/main/LICENSE) 许可证开源

## 🤓☝ 给个 star 吧

<a href="https://star-history.com/#A-Minos/nonebot-plugin-tetris-stats&Date">
 <picture>
   <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=A-Minos/nonebot-plugin-tetris-stats&type=Date&theme=dark" />
   <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=A-Minos/nonebot-plugin-tetris-stats&type=Date" />
   <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=A-Minos/nonebot-plugin-tetris-stats&type=Date" />
 </picture>
</a>
py2md 0.1.3
Run Python code in Jupyter to generate markdown reports.
Requires Python: >=3.10

# py2md

Run python code in Jupyter to generate markdown reports.

**Usage:**

```
py2md test_py2md.py
```

This will then run Jupyter and generate a md file output with associated images.

**Debug Usage:**

```
py2md test_py2md.py -debug
```

This will also print out all Jupyter output to see if anything is missing from the output.

**No Code, No Cell Headers and inline images Usage:**

```
py2md test_py2md.py -nocode -nohead -inline
```

This will hide the python code block as well as cell headers and all images will be part of the markdown file as html code.
vanillacorn 0.1.2
A vanilla ASGI server: a basic implementation of the ASGI specification using pure Python and asyncio.
Requires Python: >=3.9
Keywords: asgi, cli, pure python, server, single file, vanilla

<img src="https://github.com/bRuttaZz/vanillacorn/blob/main/misc/logo.png?raw=true" align="right" width="100px">

# Vanillacorn

**Nothing but a vanilla ASGI server.**

[![pypi](https://img.shields.io/pypi/v/vanillacorn.svg)](https://pypi.org/project/vanillacorn/)
![pyright-status](https://github.com/bruttazz/vanillacorn/actions/workflows/pyright.yml/badge.svg)
![linting-status](https://github.com/bruttazz/vanillacorn/actions/workflows/linting.yml/badge.svg)
[![Release](https://img.shields.io/github/release/bruttazz/vanillacorn.svg?style=flat-square)](https://github.com/bruttazz/vanillacorn/releases/latest)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/bruttazz/vanillacorn/blob/main/LICENSE.txt)


A simple implementation of the ASGI specification 2.5 (2024-06-05) using pure Python and asyncio (**Py3.9 or above**).
The system is meant to use zero external libraries and contained in a single file, because why not...?

# Installation
1. Install using pip (pypi.org)
```sh
pip install vanillacorn
```

2. Single file server
```sh
# 1. Download `vanillacorn.py`
wget https://raw.githubusercontent.com/bRuttaZz/vanillacorn/refs/heads/main/vanillacorn.py

# 2. Make it executable
chmod +x vanillacorn.py

# 3. Run the server
./vanillacorn.py --help

# [or] run it with python interpreter
python3 vanillacorn.py --help
```

# Usage

```sh
usage: vanillacorn [-h] [-v] [-p PORT] [-b HOST] [-w WORKERS] [-s] [--verbose] [-l FILE] [--ssl-keyfile FILE] [--ssl-certfile FILE] [asgi_app]

A simple ASGI server: a basic implementation of the ASGI specification using pure Python and asyncio.

positional arguments:
  asgi_app              ASGI app module

options:
  -h, --help            show this help message and exit
  -v, --version         App version
  -p, --port PORT       Bind socket to this port (default: 8075)
  -b, --host HOST       Bind socket to this host. (default: localhost)
  -w, --workers WORKERS
                        Number of worker processes
  -s, --silent          Suppress console logging
  --verbose             Show detailed logging
  -l, --log-file FILE   Write server logs into log file
  --ssl-keyfile FILE    SSL key file for TLS
  --ssl-certfile FILE   SSL certfile for TLS

```

### Sample Use case
To start a simple asgi application say `main:app`
```sh
vanillacorn -p 8000 main:app

# to run in https mode
vanillacorn -p 8000 --ssl-key key.pem --ssl-cert cert.pem main:app

```

## Caveats
- Currently ignoring ws subprotocols and ws extensions


# TODO:
- [ ] implement http/ws read and buffering limits
- [ ] test cases