semvec/pypi-packages huggingface dataset:
dash-rotate 1.0.6
Components for smartphones that detect screen rotation
License: MIT

# Dash Rotate

Dash Rotate is a Dash component library.
Components for smartphones that detect screen rotation.

### Installation
***

    $ pip install dash_alert


### Properties
***

- id (string)
- orientation (string)

    Correct orientation of the screen. Valid only if reload is true or if a message is specified.

- message (dash component)

    Message to be displayed in case of unintended screen orientation.

- reload (bool; default: true)

    Reloading on screen rotation?

- timing ("all" | "match"; default: "all")

    When to reload. "all": if the screen is rotated. "match": only if the screen is oriented correctly.

- delay (int; default: 10)

    The time from the time the screen is rotated until it is reloaded (milliseconds).
eateffort 0.8.0
Add a short description here!
License: MIT

.. These are examples of badges you might want to add to your README:
   please update the URLs accordingly

    .. image:: https://api.cirrus-ci.com/github/<USER>/eateffort.svg?branch=main
        :alt: Built Status
        :target: https://cirrus-ci.com/github/<USER>/eateffort
    .. image:: https://readthedocs.org/projects/eateffort/badge/?version=latest
        :alt: ReadTheDocs
        :target: https://eateffort.readthedocs.io/en/stable/
    .. image:: https://img.shields.io/coveralls/github/<USER>/eateffort/main.svg
        :alt: Coveralls
        :target: https://coveralls.io/r/<USER>/eateffort
    .. image:: https://img.shields.io/pypi/v/eateffort.svg
        :alt: PyPI-Server
        :target: https://pypi.org/project/eateffort/
    .. image:: https://img.shields.io/conda/vn/conda-forge/eateffort.svg
        :alt: Conda-Forge
        :target: https://anaconda.org/conda-forge/eateffort
    .. image:: https://pepy.tech/badge/eateffort/month
        :alt: Monthly Downloads
        :target: https://pepy.tech/project/eateffort
    .. image:: https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Twitter
        :alt: Twitter
        :target: https://twitter.com/eateffort

.. image:: https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold
    :alt: Project generated with PyScaffold
    :target: https://pyscaffold.org/

|

=========
eateffort
=========


    Add a short description here!


A longer description of your project goes here...


.. _pyscaffold-notes:

Making Changes & Contributing
=============================

This project uses `pre-commit`_, please make sure to install it before making any
changes::

    pip install pre-commit
    cd eateffort
    pre-commit install

It is a good idea to update the hooks to the latest version::

    pre-commit autoupdate

Don't forget to tell your contributors to also install and use pre-commit.

.. _pre-commit: https://pre-commit.com/

Note
====

This project has been set up using PyScaffold 4.3.1. For details and usage
information on PyScaffold see https://pyscaffold.org/.
dash-alert 1.0.8
Alert component for Dash
License: MIT

# Dash Alert

Dash Alert is a Dash component library.
Alert component for Dash.

### Installation
***

    $ pip install dash_alert


### Properties
***

- id (string)
- message (dash component; require)

    Message to be displayed in the alert.

- title: (dash component)

    Alert Title.

- buttons: (list[dict])

    Button list for alerts.

    - title (string; require)

        Button Title.

    - value (string | int | float; require)

        Value returned when a button is pressed.

    - color (string)

        Button theme color

- value (string | int | float; readonly)

    Value of button pressed.

- is_open (bool)

    Alerts are open or not.

- duration (int)

    Drawing time for opening and closing animation (milliseconds).

- output_target

    For targets in Output. Does not affect anything internally.
touchable-component 2.1.16
Component to acquire coordinates and movements for smartphones
License: MIT

# touchable component

touchable component is a Dash component library.
Component to acquire coordinates and movements for smartphones.

### Installation
***

    $ pip install touchable_component

### Properties
***

- children (dash component)
- id (string)
- className (string)
- n_clicks (int)
- direction (string; readonly)

    Flick-swipe direction.
    - up
    - down
    - left
    - right

- flick (float; readonly)

    Timestamp at end of flick operation.

- swipe (float; readonly)

    Timestamp at end of swipe operation.

- long_tap (float; readonly)

    Timestamp of the start of the long press.

- long_tap_end (float; readonly)

    Timestamp of the end of the long press.

- long_swipe (float; readonly)

    Timestamp when swiped after long press.
- start_timestamp (float; readonly)

    Timestamp of the start of the touch.

- end_timestamp (float; readonly)

    Timestamp of the end of the touch.

- touches (list[dict]; readonly)
    List of coordinate information.
    - x
        x-coordinate in component.
    - y
        y-coordinate in component.
    - clientX
        Relative x-coordinates, not including the scroll offset from the viewport of the touch points.
    - clientY
        Relative y-coordinates, not including the scroll offset from the viewport of the touch points.
    - top
        Relative position of the upper left corner of the browser's display area as a base point.
    - left
        Relative position of the upper left corner of the browser's display area as a base point.
qrcode-xcolor 0.1.1
Custom QRCode Modules
License: MIT

# QRCode XColor

_Note: This does not work with the qrcode version 7.3.1 in pypi. pypi will not allow git sources in the setup.py requirments so mush be manually installed_

**Install qrcode from master branch**
```bash
pip install git+https://github.com/lincolnloop/python-qrcode.git@8a37658d68dae463479ee88e96ee3f1f53a16f54
```

This library recreates a few of the `moduledrawers` classes already found in https://github.com/lincolnloop/python-qrcode.  

This was done to greatly speed up the generation of creating colored qrcodes, as well as supporting for different colors and styles for the location marker in the corners.  

Using these custom classes you do lose support for the full features of the `color_mask` argument in the original `QRCode` library like having the colors be a gradient across the qrcode.  

I chose for speed over having that feature with still getting full color and transparency support of the qrcode.  


All supported module drawers:

```python
from qrcode_xcolor import (
    XStyledPilImage,
    XSquareModuleDrawer,
    XGappedSquareModuleDrawer,
    XCircleModuleDrawer,
    XRoundedModuleDrawer,
    XVerticalBarsDrawer,
    XHorizontalBarsDrawer
)
```
Here are some examples of the speed difference:

```python
import time

import qrcode
from qrcode.image.styledpil import StyledPilImage
from qrcode.image.styles.moduledrawers import GappedSquareModuleDrawer, RoundedModuleDrawer
from qrcode.image.styles.colormasks import SolidFillColorMask

from qrcode_xcolor import XStyledPilImage, XGappedSquareModuleDrawer, XRoundedModuleDrawer

st = time.time()
qr = qrcode.QRCode()
qr.add_data("https://example.com")
img = qr.make_image(
    image_factory=StyledPilImage,
    color_mask=SolidFillColorMask(
        front_color=(59, 89, 152),
        back_color=(255, 255, 255),
    ),
    module_drawer=GappedSquareModuleDrawer(),
    eye_drawer=RoundedModuleDrawer(),
    embeded_image_path='docs/gitlab.png',
)
img.save("qrcode_color_mask.png")
print(f"qrcode color_mask: {time.time() - st:.4f}s")


st = time.time()
qr = qrcode.QRCode()
qr.add_data("https://example.com")
# The 4th value in all the colors is the opacity the color should use (0=clear <--> 255=solid)
img = qr.make_image(
    # Custom image factory
    image_factory=XStyledPilImage,
    back_color=(255, 255, 255, 255),  # Background color with opacity support
    module_drawer=XGappedSquareModuleDrawer(
        front_color=(59, 89, 152, 255),
    ),
    eye_drawer=XRoundedModuleDrawer(
        front_color=(255, 110, 0, 255),
        inner_eye_color=(65, 14, 158, 255),  # Only valid with the eye_drawer
    ),
    embeded_image_path='docs/gitlab.png',  # Still supports embedding logos in the middle
)
img.save("qrcode-xcolor.png")
print(f"qrcode-xcolor: {time.time() - st:.4f}s")
```

From this test we get the results (exact timings will vary but the difference is always there):
```
qrcode color_mask: 0.5071s
```
![qrcode color_mask](docs/qrcode_color_mask.png "qrcode color_mask")
```
qrcode-xcolor: 0.0430s
```
![qrcode-xcolor](docs/qrcode-xcolor.png "qrcode-xcolor")