Skip to main content

air-convert

PyPI version

Utility for converting HTML to Air Tags

Installation

Pip:

pip install air-covert

UV:

uv add air-covert

Usage from the command line

air-convert local/path/to/my/page.html

When combined with curl or wget:

curl -o page.html https://example.com && air-convert page.html
wget -O page.html https://example.com && air-convert page.html

Programmatic usage

from air_convert import html_to_airtags
html_to_airtags("""
<main>
    <article class="prose">
        <h1>Hello, world</h1>
        <p>Let's soar into the air!</p>
    </article>
</main>
""")

Generates:

air.Main(
    air.Article(
        air.H1("Hello, world"),
        air.P("Let\'s soar into the air!"),
        class_="prose"
    )
)

Credits

  • This package was created with the awesome Cookiecutter and the audreyfeldroy/cookiecutter-pypackage project template.
  • Uses the elegant Typer framework to provide a CLI interface
  • Relies on BeautifulSoup4 for parsing of HTML
  • Formatting of generated code provided by Ruff

Release files for air-convert 0.3.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 air-convert 0.3.0
File Size Uploaded
air_convert-0.3.0.tar.gz 12.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for air-convert 0.3.0
File Interpreter ABI Platform
air_convert-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.8 kB

Release files / air_convert-0.3.0.tar.gz

Download URL air_convert-0.3.0.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ca278f3cdb140009e1ec657ca349d8f6c63097c1a9af75f5f8aabc9f7bb5a835
BLAKE2b-256 checksum
How to use checksums
8bf241180baabb64ccc5f19fc9956e6f6088819c9d0b2e243a38a16049bff9a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.9

Release files / air_convert-0.3.0-py3-none-any.whl

Download URL air_convert-0.3.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
986869fac6a303b25ab3dead5153fe554ac51ea9b55cf14f9c5e249696f399d2
BLAKE2b-256 checksum
How to use checksums
97c9838ab957393be304de348bd93004a86282ac69b6fdf67a07218a5989ceec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.9

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

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