semvec/pypi-packages huggingface dataset:
codediagram 0.1.0
Add your description here
Requires Python: >=3.11

# Codediagram

A Python library to **generate flowcharts, class diagrams, and execution traces** from **Python, C++, C, and JavaScript code**.  
Ideal for **educational videos, documentation, and visualizing code workflows**.  

---

## Features

- **Multi-language support**: Python, C++, C, and JavaScript.  
- **Diagram types**:  
  - Control-flow (flowcharts)  
  - Class diagrams (inheritance, methods)  
  - Execution trace diagrams  
- **Automatic language detection** from file extension.  
- **Graphviz rendering** for PNG/SVG diagrams.  

---

## Installation

```bash
pip install codediagram
```

# System requirement for Graphviz

## Graphviz binaries are required for rendering:

```bash
# macOS
brew install graphviz

# Ubuntu/Debian
sudo apt install graphviz

# Windows
# Download and install from https://graphviz.org/download/
```

# Quick Usage

```bash
from codediagram import flowchart, class_diagram, trace_diagram

# Generate a Python control-flow diagram
flowchart("example.py", render_file="flowchart.png")

# Generate a C++ class diagram
class_diagram("main.cpp", render_file="class.png")

# Generate a Python execution trace diagram
trace_diagram("example.py", render_file="trace.png")
```

```bash
| Language   | Flowchart | Class Diagram | Execution Trace |
| ---------- | --------- | ------------- | --------------- |
| Python     | ✅         | ✅             | ✅               |
| C++        | ✅         | ✅             | ❌               |
| C          | ✅         | ❌             | ❌               |
| JavaScript | ✅         | ❌             | ❌               |
```

# Project Structure
```bash
codediagram/
├── parsers/
├── diagram_builders/
├── renderers/
├── utils/
└── __init__.py

```

- **parsers**: Convert code to AST.

- **diagram_builders**: Generate flowchart, class, and trace graphs.

- **renderers**: Graphviz renderer.

- **utils**: File loading and tree traversal helpers.
PyTac3D 3.3.0.9
Tac3D sensor interface
Requires Python: <3.12,>=3.8

PyTac3D: Python Interface for Tac3D Tactile Sensor
==================================================

**Python Compatibility**: Requires Python 3.7 through 3.11

Installation
------------
.. code-block:: bash
   
   conda create -n tac3d python=3.11 tk
   conda activate tac3d
   pip install pytac3d

Quick Start
-----------
1. Export demonstration files:

   .. code-block:: bash

      pytac3d-demo  # Exports examples to current directory

2. Navigate to examples directory:

   .. code-block:: bash

      cd pytac3d_examples

3. Execute the example scripts:

   .. code-block:: bash

      python get_object_info.py  # View tactile sensor outputs

4. You can also use the Tac3D sensor through a GUI tool:

   .. code-block:: bash

      pytac3d-gui  # run the gui tool

Simple Usage
--------------
For more complex implementations, reference the following pattern:

.. code-block:: python

   import PyTac3D

   import time

   # Initialize sensor interface
   sensor = PyTac3D.Sensor(port=9988)

   sensor.waitForFrame()

   # Stream data acquisition
   while True:

       time.sleep(0.03)

       frame = sensor.getFrame()

       if not frame is None:
       
           print(frame['index'])