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.

5m read timeFrom github.com
Post cover image
Table of contents
🎯 Why py-pglite?📦 Installation🚀 Quick Start🔧 Features📚 Examples🤝 Contributing📄 License🙏 AcknowledgmentsBest Practices

Sort: