Metadata-Version: 2.1
Name: code_formatter_cli
Version: 1.1.0
Summary: CLI tool to execute and format code output in txt, docx, or LaTeX formats
Author: Andrew Fernandes
Keywords: cli,code,formatter,python,latex,docx,c,java
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: python-docx

# 🧾 Code Formatter CLI

A simple command-line tool to generate well-formatted **experiment reports** from your code in **Python, C, C++, or Java**, along with its **compiled output**.  
Built out of absolute laziness and the compulsion to **save time** and focus on the really important work at hand (writing the code).

Output formats include: **DOCX**, **LaTeX** and **Plain Text**. (In the order of usage priority)

---

## ✨ Features

- ✅ Supports **Python**, **C**, **C++**, and **Java** code
- 📄 Formats the code and its output into:
  - Microsoft Word (.docx)
  - Plain text (.txt)
  - LaTeX (.tex)
- 🧠 Custom metadata:
  - Student Name
  - Class
  - Roll Number
  - Experiment Number

---

## 📦 Installation

1. Clone the git repository

    ```bash
    git clone https://github.com/yourusername/code-formatter-cli.git
    cd code-formatter-cli
    pip install .
    ```

2. Install the required dependencies:

    ```bash
    pip install -r requirements.txt
    ```

---

## 🚀 Usage

```bash
    formatcode \
    --file sample.py \
    --lang python \
    --format docx \
    --name "Alice Doe" \
    --class_ "Your class name" \
    --roll "Your Roll Number" \
    --expno "Experiment Number"
```

--file: Path to the source code file

--lang: Programming language (python, c, cpp, java)

--format: Output format (docx, txt, latex)

--name, --class_, --roll, --expno: Student details

---

## Output Examples

```docx
Name: Alice Doe              Class: SE-A            Roll No: 42

                EXPERIMENT 03

Code:
[Code block here]

Output:
[Compiled output here]

```

---

## Contributions

Contributions are welcome! If you'd like to contribute, please:

1. Fork the repository.
2. Create a feature branch:

   ```bash
   git checkout -b feature-name
   ```

3. Commit your changes:

   ```bash
   git commit -m "Add feature description"
   ```

4. Push to your forked repository and create a pull request.

---

## Contact

If you have any questions or suggestions, feel free to reach out:

- Email: <write2andrew.important@gmail.com>
