{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/19"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/5"},{"label":"Database","url":"https://skillfed.io/packages/category/database/4"}],"enrichment":{"capability":"py-pglite provides a zero-config PostgreSQL testing environment for Python by wrapping PGlite, letting you run real PostgreSQL queries in tests without Docker or server setup.","skillfed_tags":["testing-database","postgresql-fixture","zero-config"],"use_cases":["Unit testing SQLAlchemy or Django models without spinning up a real PostgreSQL server or Docker container.","Testing FastAPI or other web frameworks that depend on a database, with automatic per-test isolation.","Validating complex SQL queries, window functions, and JSON operations in CI/CD pipelines where Docker is unavailable or slow.","Testing vector similarity search and RAG applications using pgvector extension in isolated test environments.","Rapid local development and debugging of database-heavy code without managing a persistent PostgreSQL instance."],"what_it_does":"py-pglite is a Python wrapper around PGlite that spins up an in-memory PostgreSQL instance for testing, eliminating the need for Docker containers, server configuration, or test database management. It works with any PostgreSQL client library\u2014SQLAlchemy, Django ORM, psycopg, asyncpg\u2014and provides pytest fixtures that give each test a fresh, isolated database. The core appeal is speed and simplicity: startup in seconds rather than minutes, and no external dependencies beyond psutil.\n\nThe package supports both Unix domain sockets (default, fastest) and TCP sockets (required for asyncpg and cloud environments). It also exposes PGlite extensions like pgvector for vector search testing. Configuration is minimal\u2014most tests work with a single fixture\u2014but advanced users can customize timeouts, logging, cleanup behavior, and socket modes via PGliteConfig.","worth_installing":"Yes, if you test Python code that uses PostgreSQL and want to eliminate Docker or server setup overhead. The low install friction, permissive license, and broad client library support make it a straightforward drop-in for pytest suites. Caveat: the package is in beta and aging (no release in 331 days), so verify that PGlite's feature set covers your specific PostgreSQL extensions and that performance meets your test suite's needs before committing to production CI/CD."},"id":"py-pglite","links":{"html":"https://skillfed.io/packages/py-pglite","md":"https://skillfed.io/packages/py-pglite.md","pypi":"https://pypi.org/project/py-pglite/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-09-17","license_spdx":"Apache-2.0","license_treatment":"permissive","name":"py-pglite","python_support":"supports_current","summary":"Python testing library for PGlite - in-memory PostgreSQL for tests"},"popularity":{"monthly_downloads":120186,"position":12041,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.5.3"}
