Metadata-Version: 2.4
Name: c2m-by-nery
Version: 0.2.0
Summary: Convert code files to Markdown (CLI and library)
Author: c2m-by-nery contributors
License-Expression: MIT
Keywords: cli,converter,markdown,code
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: typer>=0.9.0
Requires-Dist: rich>=13.0.0
Requires-Dist: tiktoken>=0.5.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: pathspec>=0.12.0
Requires-Dist: docling>=2.0.0
Requires-Dist: gitpython>=3.1.0
Requires-Dist: fastapi>=0.100.0
Requires-Dist: uvicorn[standard]>=0.22.0
Requires-Dist: python-multipart>=0.0.6
Requires-Dist: httpx>=0.24.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"

# c2m-by-nery

Convert code files to Markdown. Use it as a CLI or as a Python library.

## Requirements

- Python 3.10+

## Install

```bash
pip install c2m-by-nery
```

Or for a global CLI (available system-wide):

```bash
cd /path/to/c2m-by-nery
pipx install .
```

Editable install for local development:

```bash
pip install -e .
```

## Release

### 3. Build the package (local)

From the project directory:

```bash
python -m pip install --upgrade build
python -m build
```

This creates distribution files in `dist/` (a `.tar.gz` and a `.whl`).

### 4. Upload to PyPI with Twine

Install Twine:

```bash
python -m pip install --upgrade twine
```

Upload:

```bash
python -m twine upload dist/*
```

## Usage

```bash
c2m [PATH] [OPTIONS]
```

Examples:

```bash
c2m .
c2m src --frontmatter
```

## Library

```python
from c2m_by_nery.core import convert_to_markdown

result = convert_to_markdown(root=".", frontmatter=True)
```
