Skip to main content

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

Metadata

Release files for leonardo-python-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for leonardo-python-sdk 0.1.0
File Size Uploaded Provenance Actions
leonardo_python_sdk-0.1.0.tar.gz 7.2 kB Without provenance Details for leonardo_python_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for leonardo-python-sdk 0.1.0
File Interpreter ABI Platform Actions
leonardo_python_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for leonardo_python_sdk-0.1.0-py3-none-any.whl

Total release size: 16.9 kB

Release files / leonardo_python_sdk-0.1.0.tar.gz

Download URL leonardo_python_sdk-0.1.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1ea2547cec362e9e1048b7f2d114ac93e2b1abba513a6e9ebb44f5ca12eb2c87
BLAKE2b-256 checksum
How to use checksums
e1f4a72ab7b824b3960d0e087333f47d7262baad62967682757062c6cb756847
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / leonardo_python_sdk-0.1.0-py3-none-any.whl

Download URL leonardo_python_sdk-0.1.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d492664c14a493c3ae3431b8a654a2e6ce055a59bcbf76337ed8645c3763c42
BLAKE2b-256 checksum
How to use checksums
8c66cfd2cbeb6209c1c1ebee6a2d080a1bc3877f56d0fa4a41bff1f545ce64c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for leonardo-python-sdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page