Skip to main content

TNG Python - Advanced Code Audit, Test Generation, and Visualization tool

Project description

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.

Installation

pip install tng-python

Quick Start

  1. Initialize TNG:

    tng init
    
  2. Launch Interactive UI: The most powerful way to use TNG is through its interactive dual-pane UI.

    tng i
    
  3. 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
    

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
--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

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

tng_python-0.4.2-cp38-abi3-manylinux_2_34_x86_64.whl (21.1 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ x86-64

tng_python-0.4.2-cp38-abi3-manylinux_2_34_aarch64.whl (20.9 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ ARM64

tng_python-0.4.2-cp38-abi3-macosx_11_0_arm64.whl (18.7 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tng_python-0.4.2-cp38-abi3-macosx_10_12_x86_64.whl (18.8 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file tng_python-0.4.2-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tng_python-0.4.2-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 22ee72dd44dd3fa0170ca87241852ac30d78da234e3a51366fe8832c1d3ad41b
MD5 8203cd32ff1ac2e28ebf5bffcc3893e6
BLAKE2b-256 057f9514705f1cbbaf9eabccf13d8e1c69ecadee2084de1336c0661e6e736cce

See more details on using hashes here.

File details

Details for the file tng_python-0.4.2-cp38-abi3-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for tng_python-0.4.2-cp38-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 f0cadf59da5ecd8b804558c2452fcc5a3094e3df8a1d469bd54b73c062ded546
MD5 15fcd4357b8147dd89a2e3af130dc56f
BLAKE2b-256 64fde197b47f965e766c0651fd8b28daf4785d85a580b0d70bac003b4e857bd1

See more details on using hashes here.

File details

Details for the file tng_python-0.4.2-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tng_python-0.4.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 657a939f34d2b872c68459972956bc05302a0e531a3e7baec0eac43366661ce5
MD5 08b15198317950c50d615c0c00138ca9
BLAKE2b-256 cbca9021996b2ad663e1e2458b53f6024b312875da6e1479aa01003a202edf07

See more details on using hashes here.

File details

Details for the file tng_python-0.4.2-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for tng_python-0.4.2-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4108c07226118d7841b6105cc23f2cc1415d97cab4418ccaf6e9d994e15ec885
MD5 26b4479f77fe0ec6aedba7cb8b6dc1a5
BLAKE2b-256 bd1f10fb4a00cf5521687fccbbeb98b3af45395ea8db8212e0d11c02dfed6845

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