{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"}],"enrichment":{"capability":"Provides a PostgreSQL Docker container wrapper for integration and functional testing, automatically managing container lifecycle and connection details.","skillfed_tags":["docker-testing","integration-tests","postgres"],"use_cases":["Write integration tests that need a real PostgreSQL database without managing containers manually.","Run CI/CD pipelines that spin up isolated test databases per test suite without external dependencies.","Test database migrations and schema changes against a fresh PostgreSQL instance each run.","Develop multi-service tests where PostgreSQL is one of several containerized services.","Prototype applications that depend on PostgreSQL without installing it locally."],"what_it_does":"testcontainers-postgres wraps PostgreSQL in a Docker container and exposes it for use in tests. It is a component of the larger testcontainers-python framework, which facilitates functional and integration testing by spinning up ephemeral service containers on demand. The package depends on testcontainers-core (which handles Docker lifecycle and cleanup), sqlalchemy (for connection URL generation), and psycopg2-binary (the PostgreSQL driver). You use it by instantiating a PostgresContainer with a Docker image tag, entering its context manager, and retrieving a sqlalchemy-compatible connection URL\u2014the container starts automatically and tears down when the context exits.\n\nThe package is designed to eliminate the need for pre-configured test databases or external services. Configuration is available via environment variables (e.g., TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE, TESTCONTAINERS_RYUK_DISABLED) or runtime settings, allowing control over Docker socket paths, cleanup behavior, and container privileges.","worth_installing":"Yes, if you use Docker for testing and need PostgreSQL containers. The install friction is low, maintenance is active, and there are no known vulnerabilities. However, the package is at 0.0.1rc1\u2014clarify whether this is stable or abandoned before committing to production CI. Also verify the license before use in proprietary projects, as it is currently undeclared."},"id":"testcontainers-postgres","links":{"html":"https://skillfed.io/packages/testcontainers-postgres","md":"https://skillfed.io/packages/testcontainers-postgres.md","pypi":"https://pypi.org/project/testcontainers-postgres/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2023-01-06","license_spdx":null,"license_treatment":"unclear","name":"testcontainers-postgres","python_support":"supports_current","summary":"PostgreSQL component of testcontainers-python."},"popularity":{"monthly_downloads":84200,"position":14018,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.0.1rc1"}
