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

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

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.7-cp38-abi3-manylinux_2_34_x86_64.whl (21.5 MB view details)

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

tng_python-0.4.7-cp38-abi3-manylinux_2_34_aarch64.whl (21.3 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ ARM64

tng_python-0.4.7-cp38-abi3-macosx_11_0_arm64.whl (19.1 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tng_python-0.4.7-cp38-abi3-macosx_10_12_x86_64.whl (19.2 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for tng_python-0.4.7-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 968aab1d11aeda4da4c66326911c93f8df6c6a68b305972c704c83416d7c4436
MD5 00a1210feeba14ae452f181080f087c3
BLAKE2b-256 dcdde8ce958e5861fa3199236987b4e98ababf34d045fa8436bc51f4492a89b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tng_python-0.4.7-cp38-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 073643b30252b0021d5884ed72f83dada4451a4f6454f4802d1709ab19a9d990
MD5 6ec0ed2c353bbc32f007248110c6f0ce
BLAKE2b-256 43106e91fd2e5811ab74a354a367b793f9282f5f715d134554ef808e9b1ffbf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tng_python-0.4.7-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf04a10bb944fbdfe2211f9faf333cd53ae5b9a2ef9218ff16e5abe739531a92
MD5 625831d5da1be6cb645981f265e953f8
BLAKE2b-256 b58f0e226e089981129c74be1f7c3c3be92c03d2adcba155618bacbd0d3cf085

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tng_python-0.4.7-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 50d3e7b24d958a15d24f7d63ff27bd0b25e25fa329da123c23a20300b52b0787
MD5 a2c4ce1ad3ef3d212c5696bd68a8bbcf
BLAKE2b-256 90fcc8f2b6fd2a2b3202f091dc8246684f173231d6cbc8b67049aa5776ec3fb4

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