{"repo":"testcontainers/testcontainers-python","free":true,"listed":false,"github":"https://github.com/testcontainers/testcontainers-python","clone":"git clone https://github.com/testcontainers/testcontainers-python.git","description":"Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.","language":"Python","stars":2271,"topics":["python","python3","testing","testcontainers","selenium","database"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Testcontainers Python testcontainers-python facilitates the use of Docker containers for functional and integration testing. For more information, see [the docs][readthedocs]. [readthedocs]: https://testcontainers-python.readthedocs.io/en/latest/ Getting Started The snippet above will spin up a postgres database in a container. The get connection url() convenience method returns a sqlalchemy compatible url we use to connect to the database and retrieve the database version. Contributing / Development / Release See CONTRIBUTING.md for more details. Configuration You can set environment variables to configure the library behaviour: Env Variable Example Description --------------------------------------- --------------------------- ---------------------------------------------------------------------------------- TESTCONTAINERS DOCKER SOCKET OVERRIDE /var/run/docker.sock Path to Docker's socket used by ryuk TESTCONTAINERS RYUK PRIVILEGED false Run ryuk as a privileged container TESTCONTAINERS RYUK DISABLED false Disable ryuk RYUK CONTAINER IMAGE testcontainers/ryuk:0.8.1 Custom image for ryuk RYUK RECONNECTION TIMEOUT 10s Reconnection timeout for Ryuk TCP socket before Ryuk reaps all dangling containers Alternatively you can set the configuration during runtime:","default_branch":null,"files":null,"tree":[],"storefront":"/r/testcontainers","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/testcontainers/testcontainers-python/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}