Skip to main content

pytuist

A TUI (terminal user interface) for pytest

I personally love TUI tools - so why not learn how to make my own and create something that would be valuable for my day-to-day work?

Installation

pip install pytuist

Note this package is only available for Windows at the moment. I will look to add support for Linux and MacOS in the future.

If someone could show me how on earth I specify that with Poetry, that would be great.

Usage

Within a project with tests conforming to pytest requirements, run pytuist to start the UI within the active terminal:

╭─────────────────────────────────────────────────────────────────────────────────────────── pytuist ───────────────────────────────────────────────────────────────────────────────────────────╮
│ arrows: navigate | enter: expand/collapse | space: run | q: quit                                                                                                                              │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭──────────────────── Tests ────────────────────╮ ╭────────────────────────────────────────────────────────────────── Output ───────────────────────────────────────────────────────────────────╮
│ test                                      [-] │ │ Run a test to see the output here                                                                                                           │
│ ├── test_root                             [-] │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
│ │   └── test_in_root                      [-] │
│ ├── test_root_again                       [-] │
│ │   └── test_another_in_root              [-] │
│ ├── child                                 [-] │
│ │   ├── test_child                        [-] │
│ │   │   ├── test_child                    [-] │
│ │   │   └── test_another_in_child         [-] │
│ │   └── grandchild                        [-] │
│ │       ├── test_another_grandchild       [-] │
│ │       │   ├── test_another_grandchild   [-] │
│ │       │   └── test_that_fails           [-] │
│ │       └── test_grandchild               [-] │
│ │           └── test_grandchild           [-] │
│ └── unit                                  [-] │
│     └── actual_test                       [-] │
│         ├── test_construct_test_hierarchy [-] │
│         └── test_render                   [-] │
╰───────────────────────────────────────────────╯

Navigate using arrow keys, press enter to expand/collapse folders, and space to run a test. Output generated by pytest will be shown in the output panel.

Future Work

Current functionality is known to be minimal (and Windows-only), and I hope to continue expanding upon it and making the user experience as easy as possible.

I'm sure there are plenty of configurations where the intended highlighting and functionality doesn't work, so feel free to let me know what horrible bugs you encounter if you'd like to.

This was largely a project to help me become familiar with rich and create TUI apps, so we'll see where it goes from here.

Metadata

Release files for pytuist 0.0.1

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

Source distribution (sdist)

Source distribution for pytuist 0.0.1
File Size Uploaded Provenance Actions
pytuist-0.0.1.tar.gz 18.8 kB Without provenance Details for pytuist-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytuist 0.0.1
File Interpreter ABI Platform Actions
pytuist-0.0.1-py3-none-any.whl Python 3 none any Details for pytuist-0.0.1-py3-none-any.whl

Total release size: 38.2 kB

Release files / pytuist-0.0.1.tar.gz

Download URL pytuist-0.0.1.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
74c9db7d19e83e789e736660b91286bd0c847d7254bf6a3fea87a2b76d44b9b3
BLAKE2b-256 checksum
How to use checksums
d09e02b4f9cd75a7e339f3f1653b34f9ba25b16688fe4b014e301831d4f933a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Windows/10

Release files / pytuist-0.0.1-py3-none-any.whl

Download URL pytuist-0.0.1-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ebde2771da4c2c01d83863cf7827b19327750217bf5546558ef0616f012eec6
BLAKE2b-256 checksum
How to use checksums
f62017db902b94cd4c5cf68582747f79ba0109e27fb218fe0f1f202e55d7dfb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Windows/10

Security for pytuist 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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