TNG Python
TNG Python is an advanced AI-powered tool for Code Auditing, Automated Test Generation, Visualization, and Dead Code Detection. It provides deep insights into your Python codebase and helps ensure code quality and correctness.
Key Features
- Automated Test Generation: Generate unit and integration tests for Flask, FastAPI, Django, and more.
- Deep Code Auditing: Identify logical flaws, security issues, and performance bottlenecks.
- X-Ray Visualization: Generate Mermaid.js flowcharts to visualize complex method logic.
- Dead Code Detection: Find unreachable code, unused variables, and unused parameters.
- Clone Detection: Identify duplicated code blocks across your project.
- Symbolic Tracing: Trace method execution paths to understand complex behavior.
- Call Sites: Find real in-repo usage patterns for a method.
- Regression Check (Impact): Detect breaking changes by analyzing the blast radius of a method update.
Installation
pip install tng-python
Quick Start
-
Initialize TNG:
tng init -
Launch Interactive UI: The most powerful way to use TNG is through its interactive dual-pane UI.
tng i -
Analyze Specific Files:
# Find dead code in a file tng --deadcode -f path/to/file.py # Check for duplicates tng --clones -f path/to/file.py # Generate X-Ray for a method tng x -f path/to/file.py -m my_method # Find call sites for a method tng --callsites -f path/to/file.py -m my_method # Run regression check (impact) for a method tng --impact -f path/to/file.py -m my_method
CLI Reference
| Option | Flag | Description |
|---|---|---|
--file |
-f |
Target Python file path |
--method |
-m |
Target method name |
--deadcode |
-d |
Run dead code analysis |
--clones |
-c |
Run duplicate code detection |
--audit |
Run code audit mode | |
--trace |
Run symbolic trace analysis | |
--callsites |
Find in-repo call sites for a method | |
--impact |
Run regression check (blast radius check) | |
--json |
Output results in JSON format | |
--ui |
Open findings in the interactive Go UI |
Subcommands
tng i: Interactive multi-tool UI.tng xray: Generate Mermaid.js logic diagrams.tng init: Setup project configuration.
Supported Ecosystem
- Frameworks: FastAPI, Flask, Django
- Async: Celery, RQ, Asyncio
- ORM: SQLAlchemy, Django ORM, Tortoise
- Testing: Pytest, Unittest
License
Proprietary - Binary Dreams LLC
Metadata
Release files for tng-python 0.4.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| tng_python-0.4.9-cp38-abi3-manylinux_2_34_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.34+ x86-64 | Details for tng_python-0.4.9-cp38-abi3-manylinux_2_34_x86_64.whl |
| tng_python-0.4.9-cp38-abi3-manylinux_2_34_aarch64.whl | CPython 3.8 | abi3 | Linux glibc 2.34+ ARM64 | Details for tng_python-0.4.9-cp38-abi3-manylinux_2_34_aarch64.whl |
| tng_python-0.4.9-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details for tng_python-0.4.9-cp38-abi3-macosx_11_0_arm64.whl |
| tng_python-0.4.9-cp38-abi3-macosx_10_12_x86_64.whl | CPython 3.8 | abi3 | macOS 10.12+ x86-64 | Details for tng_python-0.4.9-cp38-abi3-macosx_10_12_x86_64.whl |
Total release size: 82.1 MB
Release files / tng_python-0.4.9-cp38-abi3-manylinux_2_34_x86_64.whl
| Download URL | tng_python-0.4.9-cp38-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 21.7 MB |
| Tags | CPython 3.8 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9bd3ec850f139b7361a2de79b1e0b94328803803c3458503bed9c5a4f9e1d936
|
|
BLAKE2b-256 checksum How to use checksums |
6688ca6ec16a3bc54bddb218825a8a4ed7e99fb90190d2b94cca7d3f063dfda4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.10.1
|
Release files / tng_python-0.4.9-cp38-abi3-manylinux_2_34_aarch64.whl
| Download URL | tng_python-0.4.9-cp38-abi3-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 21.5 MB |
| Tags | CPython 3.8 Linux glibc 2.34+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
c7f9f52758842c3c5f43d3b06b8556c9071e5d7742c7327b542a664a2cd0b61e
|
|
BLAKE2b-256 checksum How to use checksums |
369091f3ceea592b77518c90dbe568be18689bf3869be71c560edcd863f3f1eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.10.1
|
Release files / tng_python-0.4.9-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | tng_python-0.4.9-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 19.4 MB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2624b13da421efd9feb8412c8fd21368dd4f3fb2b772e75ead8ba65e30fa850a
|
|
BLAKE2b-256 checksum How to use checksums |
b59fcb456d1ee0c0dd80011cd762c543f55fac78193d3b28ceee650439f1d930
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.10.1
|
Release files / tng_python-0.4.9-cp38-abi3-macosx_10_12_x86_64.whl
| Download URL | tng_python-0.4.9-cp38-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 19.4 MB |
| Tags | CPython 3.8 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
0fd32e49b206a8f3b394fed9d27c34b10b936fb8933e2331a7ee2331e03af0a3
|
|
BLAKE2b-256 checksum How to use checksums |
ca09befe4789452b1d320078f1e7d38b5a9d94d84a559be5d060d950ee62fab3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.10.1
|
Security for tng-python 0.4.9
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.