py-pglite is a Python testing library that wraps PGlite to provide in-memory PostgreSQL functionality for tests. It offers seamless integration with SQLAlchemy and SQLModel, automatic process management, and pytest fixtures for database testing without requiring a full PostgreSQL installation. The library supports FastAPI integration, provides utility functions for database operations, and ensures test isolation with automatic cleanup between test runs.
Table of contents
🎯 Why py-pglite?📦 Installation🚀 Quick Start🔧 Features📚 Examples🤝 Contributing📄 License🙏 AcknowledgmentsBest PracticesSort: