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

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

tng_python-0.4.4-cp38-abi3-manylinux_2_34_aarch64.whl (21.0 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ ARM64

tng_python-0.4.4-cp38-abi3-macosx_11_0_arm64.whl (18.9 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tng_python-0.4.4-cp38-abi3-macosx_10_12_x86_64.whl (18.9 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for tng_python-0.4.4-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fa0b3af1e575cd79290e7fc5734778b2beaf75496c29bfe6d40194c98f99d0ac
MD5 b746a082886eff5df39497c428c70c32
BLAKE2b-256 569b2cb7a4af0ade5b449e5073ac1c743ac15d5af174e98cbf98177143bceeb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tng_python-0.4.4-cp38-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 3a604503e985a53c1704fbbd67616f57cabd012615b15c1d7e8fa305aa6a8413
MD5 c64b93209e623e8f6568b88b71b2852a
BLAKE2b-256 bef5b0e301984fa8875db0b403951ec93044c449f33d896f00ca25b50bbbd602

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tng_python-0.4.4-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea89e5ccfc634edd57214cffea388f4a85c54c43b4b5e9457a72dc0f3965f3ad
MD5 c065f429014921d64706d7341be9b471
BLAKE2b-256 195cb14c210bd827ab68ced9564c4be822e2a8280a1d9dda64960835cb3e4285

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tng_python-0.4.4-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 00d0c15ebe1825bc6c4d3e36e71a612cf4c814dddcb283bdea7fc73adb5e746f
MD5 0e4b50274f2e02801395abc36f8b3bb9
BLAKE2b-256 9ec2a0b1b717b5b4438f41fe6890b8da0c7fa3b9456b9f8893289523aa70c72b

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