semvec/pypi-packages huggingface dataset:
litebook 0.0.1
A fast limit order book in Python utilizing a Rust backend
License: MIT License
Requires Python: >=3.10
Keywords: limit order book, order book

# litebook

[![litebook Downloads](https://static.pepy.tech/personalized-badge/litebook?period=total&units=international_system&left_color=grey&right_color=blue&left_text=Downloads)](https://pepy.tech/project/litebook) [![Build](https://github.com/pnxenopoulos/litebook/actions/workflows/build.yml/badge.svg)](https://github.com/pnxenopoulos/litebook/actions/workflows/build.yml) [![MIT License](https://img.shields.io/badge/license-MIT-lightgrey)](https://github.com/pnxenopoulos/litebook/blob/main/LICENSE)

A fast and performant limit order book in Python utilizing a Rust backend. Install it with

```shell
pip install litebook
```

## Using litebook
Get started with litebook using the following example:

```python
import litebook as lb

# Create an OrderBook
orderbook = lb.OrderBook(tick_size=0.01)

# Create some orders (this not _add_ the order!)
buy_order = book.create_order(lb.OrderType.Buy, price=10.05, quantity=10.0)
sell_order = book.create_order(lb.OrderType.Sell, price=10.05, quantity=5.0)

# Add the orders (this returns a list of Fill objects)
_no_fills = book.add(buy_order)
fills = book.add(sell_order)

# Check the fill
print(fill)

# Check the status of the remainder of the open buy order
# DO NOT rely on the previous `buy_order` or `sell_order` objects
# to be updated! Fetch them from the book, instead
open_buy_order = orderbook.get_order(buy_order.id)
```

#### Need help?
Please [open an issue](https://github.com/pnxenopoulos/litebook/issues) if you need help or have a feature request.
libretro.py 0.6.0
A libretro frontend for Python intended for testing cores.
License: MIT License
Requires Python: >=3.11
Keywords: libretro, retroarch, emulation, testing, retrogaming

# libretro.py

A Python binding for [libretro][libretro] intended for testing cores,
but suitable for any purpose.
Ease of use, flexibility, and complete API support are top priorities.

<div align="center">

[![Workflow Status](https://github.com/JesseTG/libretro.py/actions/workflows/release.yml/badge.svg)](https://github.com/JesseTG/libretro.py/actions/workflows/release.yml)
[![PyPi](https://img.shields.io/pypi/v/libretro.py)](https://pypi.org/project/libretro.py)
[![License](https://img.shields.io/github/license/JesseTG/libretro.py)](LICENSE)

</div>

# Supported Environments

libretro.py has the following requirements:

- Python 3.11 or newer.
  May not work on alternative Python implementations like PyPy.
- Supported on Windows, macOS, and Linux.
  May work on other platforms, but no promises.

Nothing else is required for most functionality,
but some [extra features](#extras) have additional dependencies or constraints.

If contributing then [`just`][just] is optional but recommended,
as it will simplify most development tasks.
For details, run `just` (no arguments) in the project root.

# Installing

libretro.py supports **Python 3.11 or newer**.
Nothing else is required for most functionality,
but some extra features have additional dependencies.

You can install libretro.py with `pip` like so:

```bash
# Install the base libretro.py
pip install libretro.py
```

Using a virtual environment is recommended:

```bash
# Create a virtual environment
python -m venv ./venv

# Activate the virtual environment (in Bash)
source ./venv/bin/activate

# Activate the virtual environment (in PowerShell)
./venv/Scripts/activate.ps1 
```

Or if you have [`just`][just] installed, let it figure out the details for you:

```bash
just venv
```

## Extras

To install additional features,
add one or more of the following extras to the `install` command:

- **`cli`:** Test scripts that don't rely on the nuances of any particular core.
  Use these to simplify your own core's test process.
- **`dev`:** Assorted tools used to help develop libretro.py.
  Required if contributing to libretro.py.
- **`opengl`:** Support for the built-in OpenGL video driver.
  Required if testing a core's OpenGL support.
- **`opengl-window`:** Same as the `opengl` extra,
  but with support for opening an actual window.
  Can help simplify some debugging tasks,
  e.g. RenderDoc usage.

For example, if you want to submit an improvement to the OpenGL video driver,
you would install libretro.py like so:

```bash
pip install libretro.py[opengl,dev]
```

And if you just want to test your libretro core's OpenGL support:

```bash
pip install libretro.py[opengl]
```

Some of these extras have additional dependencies.

### OpenGL

If using OpenGL support on Linux,
you may need to install the `libopengl0` package.

[just]: https://just.systems
[libretro]: https://www.libretro.com