Metadata-Version: 2.4
Name: leonardo-python-sdk
Version: 0.1.0
Summary: Generate invention descriptions in the style of Leonardo da Vinci — a creative document library
Project-URL: Homepage, https://github.com/brnv/leonardo-python-sdk
Author-email: Artem <brnv@canva.com>
License-Expression: MIT
License-File: LICENSE
Keywords: creative-writing,da-vinci,document-generator,invention,leonardo
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Text Processing :: General
Requires-Python: >=3.10
Requires-Dist: jinja2>=3.1
Description-Content-Type: text/markdown

# leonardo-python-sdk

Generate invention descriptions in the style of Leonardo da Vinci. A creative document library for producing Renaissance-style manuscript pages, notebook entries, and codices.

## Installation

```bash
pip install leonardo-python-sdk
```

## Quick start

```python
from leonardo_python_sdk import Invention, InventionCategory, Codex

inv = Invention(
    title="Self-Propelled Cart",
    purpose="A vehicle that moves without horse or ox, driven by coiled springs",
    category=InventionCategory.MACHINA,
    materials=["oak wood", "steel springs", "brass gears", "leather straps"],
    principles=["Stored energy in coiled springs", "Gear reduction for controlled release"],
    description="A three-wheeled cart powered by two symmetrical spring mechanisms. "
                "As the springs unwind, a series of gears translates their force into "
                "rotation of the rear wheels. A programmable cam controls steering.",
    observations=[
        "The spring must be wound no more than forty turns, lest it break.",
        "A smaller model should be built first from pine wood.",
    ],
)

# Text manuscript
print(inv.to_manuscript())

# HTML manuscript (Renaissance-styled page)
from leonardo_python_sdk import render_manuscript
html = render_manuscript(inv)
```

## CLI

```bash
leonardo invent "Flying Machine" --purpose "To soar above the clouds like a bird" --category volatus --materials "bamboo" "silk" "waxed linen"
leonardo invent "Diving Suit" --purpose "To walk beneath the waves" --category aqua --html diving_suit.html
leonardo codex my_inventions.json --toc
```

## License

MIT
