Generate invention descriptions in the style of Leonardo da Vinci — a creative document library
Project description
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
pip install leonardo-python-sdk
Quick start
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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file leonardo_python_sdk-0.1.0.tar.gz.
File metadata
- Download URL: leonardo_python_sdk-0.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ea2547cec362e9e1048b7f2d114ac93e2b1abba513a6e9ebb44f5ca12eb2c87
|
|
| MD5 |
5580d660ea00d2761ae8c27fff9d4680
|
|
| BLAKE2b-256 |
e1f4a72ab7b824b3960d0e087333f47d7262baad62967682757062c6cb756847
|
File details
Details for the file leonardo_python_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: leonardo_python_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d492664c14a493c3ae3431b8a654a2e6ce055a59bcbf76337ed8645c3763c42
|
|
| MD5 |
6698b96bd9e66eb5ede933ef2b0be968
|
|
| BLAKE2b-256 |
8c66cfd2cbeb6209c1c1ebee6a2d080a1bc3877f56d0fa4a41bff1f545ce64c1
|