Skip to main content

Automatically create pytest test signatures

Project description


Pytest-codgen will statically analyze your code to create pytest function stubs.

Built with redbaron, typer and jinja2.


First working version

Future Goals

  • Create templates for tests
  • More customization


This tool is currently in pre-alpha/experimental phase. Usable version will be ^0.1.x


pip install pytest-codegen


Check the supported commands with

pytest-codegen --help

or if you are lazy like me

ptc --help

Suggestions & Contribution

Every suggestion and contribution is welcome!

Set everything up with poetry and you are good to go :)

pip install poetry
poetry install



This project is licensed under the terms of the MIT license.

Project details

Download files

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

Files for pytest-codegen, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pytest_codegen-0.0.3-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pytest-codegen-0.0.3.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page