Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. JMeter
  3. pymeter

pymeter

Apache-2.0Pythonv1.3.0

A Python API for scripting JMeter performance tests using Java JMeter-DSL via pyjnius.

Visit WebsiteGitHubGitHub
130 stars12 forks0 contributors

What is pymeter?

pymeter is a Python library that provides an API for creating and executing Apache JMeter performance tests programmatically. It solves the problem of JMeter's GUI dependency and manual processes by allowing developers to script load tests in Python, leveraging the Java-based JMeter-DSL through pyjnius for seamless integration.

Target Audience

Python developers, QA engineers, and DevOps practitioners who need to automate performance testing within their Python-based workflows or CI/CD pipelines.

Value Proposition

Developers choose pymeter because it enables code-driven JMeter testing with Python's simplicity, eliminates the need for JMeter's GUI, supports version control and code reuse, and integrates smoothly with existing testing frameworks.

Overview

Simple JMeter performance tests API for python

Use Cases

Best For

  • Automating JMeter load tests in Python CI/CD pipelines
  • Writing performance tests as code for better maintainability
  • Integrating load testing with unittest or pytest frameworks
  • Scripting complex JMeter scenarios with programmatic logic
  • Managing JMeter test versions and collaboration via Git
  • Bridging JMeter's Java ecosystem with Python development environments

Not Ideal For

  • Teams that heavily depend on JMeter's GUI for visual test creation and real-time debugging
  • Environments with strict no-Java policies or where additional runtime dependencies are prohibitive
  • Projects requiring immediate, ad-hoc load testing without any coding or setup overhead
  • Use cases needing niche JMeter plugins or features not yet implemented in the underlying JMeter-DSL

Pros & Cons

Pros

Pythonic Test Scripting

Enables writing JMeter tests using familiar Python syntax and classes, as shown in the example with HttpSampler and ThreadGroupWithRampUpAndHold, reducing the learning curve for Python developers.

Git-Friendly Test Management

Facilitates version control and collaboration by storing performance tests as code, aligning with modern DevOps practices and CI/CD integration highlighted in the philosophy.

Built-in Reporting and Stats

Provides programmatic access to detailed performance metrics like percentiles and mean response times, and generates HTML reports without external tools, as demonstrated in the example script.

Framework Agnostic Integration

Works seamlessly with any Python testing framework such as unittest or pytest, allowing performance tests to coexist with functional tests in the same codebase.

Cons

Java Runtime Dependency

Requires a Java installation and JAVA_HOME configuration, adding setup complexity and maintenance overhead compared to pure Python load testing tools.

Feature Limitations via JMeter-DSL

Inherits constraints from JMeter-DSL, which may lack support for advanced JMeter plugins or GUI-specific features, limiting extensibility for specialized needs.

Complex Initial Setup

Necessitates both Python and Java environments with proper setup, as noted in the pre-requisites, which can be a barrier for quick adoption or in constrained environments.

Frequently Asked Questions

Quick Stats

Stars130
Forks12
Contributors0
Open Issues6
Last commit2 years ago
CreatedSince 2022

Tags

#load-testing#performance-testing#jmeter#python-api#java#python#qa-automation#test-automation#qa-tools#automation#java-integration

Built With

M
Mypy
p
pylint
P
Python
J
Java
B
Black
p
pytest

Links & Resources

Website

Included in

JMeter781
Auto-fetched 1 day ago

Related Projects

jmeter-as-codejmeter-as-code

Jmeter as code is the easy way to write jmeter test as code.

Stars39
Forks4
Last commit10 days ago
jmeter-groovy-dsljmeter-groovy-dsl

A Groovy-based DSL for building and running JMeter test plans from command line and more.

Stars14
Forks3
Last commit2 years ago
jmeter-dotnet-dsljmeter-dotnet-dsl

Simple .Net API to run JMeter performance tests in an VCS and programmers friendly way

Stars0
Forks0
Last commit
JMeter DSL.javaJMeter DSL.java

Load tests with JMeter as simple as a JUnit test

Stars0
Forks0
Last commit
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub