Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Elefast 🐘⚡

Using an actual database for testing is nice, but setting everything up can be a pain. Generating the schema, isolating the state, and supporting parallel execution while keeping everything reasonably quick. Elefast helps you by providing utilities for all of these tasks

To learn more, visit the documentation or run through the quickstart guide below.

Quickstart

Install the package from PyPi through your package manager

uv add 'elefast[docker]'

add the recommended set of fixtures to your conftest.py

mkdir tests/ && uv run elefast init >> tests/conftest.py

create a test using your new set of fixtures

from sqlalchemy import Connection, text

def test_database_math(db_connection: Connection):
    result = db_connection.execute(text("SELECT 1 + 1")).scalar_one()
    assert result == 2

When you now run pytest, we'll automatically start a Docker container (if one is not already running), and pass a database connection into the test

Release files for elefast 0.1.0a5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elefast 0.1.0a5
File Size Uploaded
elefast-0.1.0a5.tar.gz 10.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elefast 0.1.0a5
File Interpreter ABI Platform
elefast-0.1.0a5-py3-none-any.whl Python 3 none any Details

Total release size: 25.9 kB

Release files / elefast-0.1.0a5.tar.gz

Download URL elefast-0.1.0a5.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3dd119454d309397e28ea28303164217daf9192e276c504ddc6b904012cdedd0
BLAKE2b-256 checksum
How to use checksums
be256e8502f2ddf3afcb0f81269e5708f85cfb36ca624debb868575b1e67017a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / elefast-0.1.0a5-py3-none-any.whl

Download URL elefast-0.1.0a5-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
487f028cc12b482ec6120f0bd2c1b7b51a79a87066b96756309dbbad8a62f11d
BLAKE2b-256 checksum
How to use checksums
f2d03c2c40932eb9214324f5a1d1eee892795f419de19c76ca745460157abad8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page