semvec/pypi-packages huggingface dataset:
flask-composed-views 0.0.3
Class-based components for Flask
Requires Python: >=3.9

This module defines classes that can be rendered as "views" in a flask application.

The following example define a form to input some text as a component class (this additionally uses [tailwindcss](https://tailwindcss.com/) classes):
```python
from flask_composed_views.components import BaseComponent, Form, FormTextInput, Span, PlainText, FormSubmit

class WordInputForm(BaseComponent):
    def __init__(self, id = None, classes = None, csrf_token: str | None = None):
        form = Form(id='word-input-form',
                    classes=classes,
                    csrf_token=csrf_token,
                    action='/',
                    children=[
                        FormTextInput(label=Span(classes="p-2 font-bold",
                                                 children=PlainText('Wort >', safe=True,)),
                                      name='word',
                                      id=id,
                                      classes="border-1 border-solid broder-gray-400",
                                      max_len=44),
                        FormSubmit(label=PlainText('Suchen'),
                                   classes=" ".join([
                                        "rounded-lg px-2 py-1 font-bold bg-yellow-200 hover:bg-yellow-300",
                                        "active:bg-yellow-200 active:border-2 active:border-yellow-200",
                                        "mx-4"
                                   ]))
                    ])
        super().__init__(id, classes, children=[form])
```
This form is rendered using:
```python
csrf_token = ... # for example, using `flask_wtf.csrf.generate_csrf`
WordInputForm(csrf_token=csrf_token).render()
```
which could theoretically be used as the output of an `@app.route`-decorated function. Normally you would embed it within a page layout, etc. **[The result](https://alexn11.eu.pythonanywhere.com/)**.
datacollectors 0.7.35
Datacollectors to load energy market data from various sources
Requires Python: >=3.9
Keywords: collectors

# TCF datacollectors

Data collectors from energy data sources

## Installation

Run the following to install 
```
python -m pip install datacollectors
```

## Usage

```
import datacollectors

# connectors: Entsoe, ECB, Trading Economics, Energidataservice and ICE
```
pylsqpack 0.3.23
Python wrapper for the ls-qpack QPACK library
Requires Python: >=3.10

pylsqpack
=========

.. image:: https://img.shields.io/pypi/l/pylsqpack.svg
   :target: https://pypi.python.org/pypi/pylsqpack
   :alt: License

.. image:: https://img.shields.io/pypi/v/pylsqpack.svg
   :target: https://pypi.python.org/pypi/pylsqpack
   :alt: Version

.. image:: https://img.shields.io/pypi/pyversions/pylsqpack.svg
   :target: https://pypi.python.org/pypi/pylsqpack
   :alt: Python versions

.. image:: https://github.com/aiortc/pylsqpack/workflows/tests/badge.svg
   :target: https://github.com/aiortc/pylsqpack/actions
   :alt: Tests

.. image:: https://readthedocs.org/projects/pylsqpack/badge/?version=latest
   :target: https://pylsqpack.readthedocs.io/
   :alt: Documentation

``pylsqpack`` is a wrapper around the `ls-qpack`_ library. It provides Python
`Decoder` and `Encoder` objects to read or write HTTP/3 headers compressed
with QPACK.

To learn more about ``pylsqpack`` please `read the documentation`_.

.. _ls-qpack: https://github.com/litespeedtech/ls-qpack/
.. _read the documentation: https://pylsqpack.readthedocs.io/en/latest/