Skip to main content

Workload framework

Project description

dbworkload

dbworkload is a Python utility for creating and running bespoke database workload scripts.

It is designed for cases where you want full control over the workload logic, but do not want to rebuild the surrounding execution machinery every time. You write the workload as a Python class; dbworkload handles the operational pieces around it, such as concurrency, process/thread execution, run duration, iteration limits, scheduling, metrics collection, and result output.

Why use it?

Database workloads are often highly specific: the order of transactions, the statements inside each transaction, the shape of generated data, and the way that data changes over time all matter. dbworkload keeps that logic in your hands while providing a reusable runner around it.

With dbworkload, you can:

  • model realistic application flows as Python code;
  • control which transactions run, in which order, and with which data;
  • scale execution across configurable processes, threads, and connections;
  • run workloads for a fixed duration or number of iterations;
  • collect and export execution statistics;
  • target different databases by installing the driver extras you need.

How it works

A workload is a Python class that defines how connections are set up and what each execution loop should do. At runtime, dbworkload imports that class, starts the requested level of concurrency, opens database connections, executes the workload loop, aggregates stats, and stops when the configured limit is reached or the run is interrupted.

This split keeps the workload script focused on database behavior while the runner handles the repeatable mechanics of executing it.

Documentation

The README is only a short introduction. For installation, examples, CLI reference, supported drivers, and workload authoring details, visit the official documentation:

https://dbworkload.github.io/dbworkload/

License

dbworkload is released under the Apache License Version 2.0 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbworkload-0.12.1.tar.gz (46.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbworkload-0.12.1-py3-none-any.whl (51.1 kB view details)

Uploaded Python 3

File details

Details for the file dbworkload-0.12.1.tar.gz.

File metadata

  • Download URL: dbworkload-0.12.1.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for dbworkload-0.12.1.tar.gz
Algorithm Hash digest
SHA256 2b15bc10b975918c4a1aa57570ecb3172bccf82b03581fa234f91208f0665a15
MD5 989fecaf641ad4658b0fe44db693124b
BLAKE2b-256 7d61be153879426c0f75e75c4301706aec25319337e4521a7eed87d53ad4fd12

See more details on using hashes here.

File details

Details for the file dbworkload-0.12.1-py3-none-any.whl.

File metadata

  • Download URL: dbworkload-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 51.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for dbworkload-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a2a5ab538b44f7128e56f3657207100c5dd39fbd5ee6d01b35daa33d7b1a63d
MD5 7daa99a20b3c5b0d99c2df7cfe53e184
BLAKE2b-256 7ac3575820a285472407d706726b6729f1ad7c720fb00425c4b5e917f325e994

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page