semvec/pypi-packages huggingface dataset:
psqlpy 0.11.11
Async PostgreSQL driver for Python written in Rust
Requires Python: >=3.10
Keywords: postgresql, psql, async-driver, psql-driver, postgresql-driver, python-driver

[![PyPI - Python Version](https://img.shields.io/badge/PYTHON-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue?style=for-the-badge
)](https://pypi.org/project/psqlpy/)
[![PyPI - Python Version](https://img.shields.io/badge/Tested%20On%20PostgreSQL-14%20%7C%2015%20%7C%2016%20%7C17-2be28a?style=for-the-badge
)](https://pypi.org/project/psqlpy/)
[![PyPI](https://img.shields.io/pypi/v/psqlpy?style=for-the-badge)](https://pypi.org/project/psqlpy/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/psqlpy?style=for-the-badge)](https://pypistats.org/packages/psqlpy)

# PSQLPy - Async PostgreSQL driver for Python written in Rust.

Driver for PostgreSQL written fully in Rust and exposed to Python.
Main goals of the library is speed and type safety.

## Documentation
You can find full documentation here - [PSQLPy documentation](https://psqlpy-python.github.io/)

## Installation

You can install package with `pip`, `poetry` or `uv`.

poetry:

```bash
poetry add psqlpy
```

pip:

```bash
pip install psqlpy
```

uv:

```bash
uv add psqlpy
```

Or you can build it by yourself. To do it, install stable rust and [maturin](https://github.com/PyO3/maturin).

```
maturin develop --release
```

## Usage

Usage is as easy as possible.
Create new instance of ConnectionPool and start querying.
You don't need to startup connection pool, the connection pool will create connections as needed.

```python
from psqlpy import ConnectionPool, QueryResult


async def main() -> None:
    db_pool = ConnectionPool(
        username="postgres",
        password="pg_password",
        host="localhost",
        port=5432,
        db_name="postgres",
        max_db_pool_size=2,
    )

    async with db_pool.acquire() as conn:
        res: QueryResult = await conn.execute(
            "SELECT * FROM users",
        )

    print(res.result())
    db_pool.close()

```

## Benchmarks

You can find benchmarks with visualization on our [docs](https://psqlpy-python.github.io/benchmarks.html)

## Community
Let's make `PSQLPy` better together!
Join our community in [Telegram](https://t.me/+f3Y8mYKgXxhmYThi)
pzu 0.1.2
Add your description here
Requires Python: >=3.11

<h1 align="center">
  <b>Petting Zoo Utils</b>
</h1>

<p align="center">
  <a href="https://pypi.org/project/pzu">
    <img alt="PyPI" src="https://img.shields.io/pypi/v/pzu">
  </a>
  <a href="https://pypi.org/project/pzu">
    <img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/pzu" />
  </a>
  <a href="">
    <img alt="PyPI - Status" src="https://img.shields.io/pypi/status/pzu" />
  </a>
  <a href="">
    <img alt="PyPI - Implementation" src="https://img.shields.io/pypi/implementation/pzu">
  </a>
  <a href="">
    <img alt="PyPI - Wheel" src="https://img.shields.io/pypi/wheel/pzu">
  </a>
  <a href="https://github.com/nightly/pzu/blob/master/LICENSE">
    <img alt="GitHub" src="https://img.shields.io/github/license/nightly/pzu">
  </a>
</p>

Some helpful utils for Petting Zoo environments.

# Development
1. Clone the repository with `git`
2. Run `uv run pre-commit install`