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.3-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.3-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.3-cp38-abi3-macosx_11_0_arm64.whl (18.8 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tng_python-0.4.3-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.3-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tng_python-0.4.3-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ee4ce89517e883b0c7be897506919f7135b03ebb1c0ada0abadc136451d4c974
MD5 498a231ec0719fcd11abe56009ca0f05
BLAKE2b-256 b42761c13f1339864a9f2f244f3382aef29b36d49429e8d853340af38dee6d14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tng_python-0.4.3-cp38-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 8dcea19e0c546cf97880fba204dcadd2ed022eda8c93cf0ff882c90c7419684f
MD5 89c80df6e9c6ba98c32cea130af33f76
BLAKE2b-256 07483be80f6766b3f44bde42ebd491f46e2dcb294f851cb6e6aad123429e2984

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tng_python-0.4.3-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c735fb25da17868996290973870111eab8464b8f3a58b2ab44b2d9528d63e9db
MD5 3d25dd7acde9fea7698afbdc19e8b02a
BLAKE2b-256 ce91c1405e6523447a8d0463b411e12f68e60cae83a2385c6fdaefed08d02f44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tng_python-0.4.3-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e359e66d0efaa61b930643ba08b9eace231b9bdde26aca233c3042ad6d7e8d2c
MD5 3cbe8616a18f65a3373787985f80e974
BLAKE2b-256 b2c280a204000462cae743cb597d248ccf3daa3e389f6fc603f92c97d6c8eb14

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