Metadata-Version: 2.1
Name: hyperscript
Version: 0.0.3
Summary: HyperText with Python
Author-email: Vincent Chan <vincent@qualdata.io>
License: MIT License
Project-URL: Homepage, https://github.com/vchan/hyperscript
Project-URL: Bug Tracker, https://github.com/vchan/hyperscript/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: Text Processing :: Markup :: HTML
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: lint
Requires-Dist: black; extra == "lint"
Requires-Dist: pylint; extra == "lint"

# Hyperscript
Hyperscript is a lightweight library that allows you to write HTML with Python. It is heavily inspired by [HyperScript](https://github.com/hyperhype/hyperscript).

## Example usage
```
>>> print(h("p", "Hello world!"))
<p>Hello world!</p>
```
Class and id selectors
```
>>> print(h("p.class1#id", "Hello world!"))
<p class="class1" id="id">Hello world!</p>
```
Style
```
>>> print(h("p", "Hello world!", {"style": {"color": "red"}}))
<p style="color: red">Hello world!</p>
```
Nesting elements
```
>>> print(h("div", h("p", "Hello world!")))
<div><p>Hello world!</p></div>
```
Properties
```
>>> print(h("a", {"href": "https://www.example.com"}, "link"))
<a href="https://www.example.com">link</a>
```
