# Python multi-file Template

This is a template for a Nextmv application with the following characteristics:

* Type: Python
* Content format: `multi-file`. Read/write one or more files from/to disk (a directory).

This is the basic structure:

```text
├── app.yaml
├── main.py
├── pyproject.toml
├── README.md
└── uv.lock
```

* `app.yaml`: App manifest, containing the configuration to run the app with Nextmv.
* `main.py`: Entrypoint for the app.
* `pyproject.toml`: Python project configuration.
* `README.md`: Description of the app.
* `uv.lock`: Lockfile for the Python dependencies. This file is generated by
  `uv` and should not be edited manually.

A sample input file is also provided in `inputs/input.json`.

1. Sync the project.

    With `uv`

    ```bash
    uv sync
    ```

    With `pip`

    ```bash
    pip install .
    ```

2. Run the app.

    With `uv`

    ```bash
    uv run main.py --details true
    ```

    With `python`

    ```bash
    python main.py --details true
    ```
