air-convert
Utility for converting HTML to Air Tags
- PyPI package: https://pypi.org/project/air-convert/
- Free software: MIT License
- Documentation: https://github.com/feldroy/air_convert
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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| air_convert-0.3.0.tar.gz | 12.2 kB | Without provenance | Details for air_convert-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| air_convert-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for air_convert-0.3.0-py3-none-any.whl |
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
|
Security for air-convert 0.3.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.