Metadata-Version: 2.4
Name: fllab
Version: 0.1.0
Summary: A short CLI tool and library for Flutter Lab experiment codes (exp1 to exp7)
Author: Lokeshwaran S
Keywords: flutter,dart,lab,experiments,fllab,cli
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Utilities
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file
Dynamic: requires-python

# fllab

A fast, lightweight Python package and CLI tool to view, export, and copy Flutter Lab experiment code files (`exp1` to `exp7`).

---

## 📦 Installation

### From local source directory:
```bash
pip install .
```

### Once published to PyPI:
```bash
pip install fllab
```

---

## 🚀 Quick Start (CLI)

### 1. Show experiment code directly
```bash
fllab show exp2
```

> **Flexible naming:** You can also run `fllab show 2` or simply `fllab exp2`.

### 2. Save directly into your Flutter project
You can redirect the output directly into your Flutter project:
```bash
fllab show exp2 > lib/main.dart
```
Or use the built-in `save` command:
```bash
fllab save exp2 -o lib/main.dart
```

### 3. Copy code to your clipboard (macOS & systems with clipboard support)
```bash
fllab copy exp2
```

### 4. List all available experiments
```bash
fllab list
```

---

## 📋 Available Experiments

| ID | File | Description |
|---|---|---|
| `exp1` | `exp1.dart` | Student Application (Basic Widgets & Layout) |
| `exp2` | `exp2.dart` | Fruit Shop (ListView, Cards & Responsive Layout) |
| `exp3` | `exp3.dart` | Budget Calculator (Forms, Validation & Calculations) |
| `exp4` | `exp4.dart` | Photo Gallery (GridView & Image Cards) |
| `exp5` | `exp5.dart` | Attendance App (Multi-Screen Routing & Navigation) |
| `exp6` | `exp6.dart` | Student Profile (AnimatedOpacity & State Management) |
| `exp7` | `exp7.dart` | Student Database (SQLite / sqflite CRUD Operations) |

---

## 🐍 Python Library Usage

```python
import fllab

# Get source code as a string
code = fllab.get_code("exp2")
print(code)

# Print code directly to stdout
fllab.show("exp2")

# Save code to a file
fllab.save_code("exp2", "lib/main.dart")

# List all experiments
experiments = fllab.list_experiments()
for exp in experiments:
    print(exp["id"], exp["title"])
```

---

## 🛠️ Publishing to PyPI

```bash
python3 -m build
twine upload dist/*
```

---

## 📄 License
MIT License
