ReactPy wrapper for react-github-btn
Project description
reactpy-github-buttons
Minimal ReactPy wrapper for github-buttons.
Usage
pip install reactpy-github-buttons
Examples
Several examples of usage are in the ./examples folder.
Minimal
./examples/single.py
from reactpy import component, html, run
from reactpy_github_buttons import StarButton
@component
def AppMain():
return StarButton(user='reactive-python', repo='reactpy')
if __name__ == "__main__":
run(AppMain)
With Color Scheme
./examples/color_scheme.py
from reactpy import component, html, run
from reactpy_github_buttons import StarButton, make_color_scheme, ColorScheme
@component
def AppMain():
return StarButton(user='reactive-python', repo='reactpy',
show_count=True,
color_scheme=make_color_scheme(
no_preference=ColorScheme.LIGHT_HIGH_CONTRAST,
light=ColorScheme.LIGHT,
dark=ColorScheme.DARK_HIGH_CONTRAST,
)
)
if __name__ == "__main__":
run(AppMain)
Buttons Playground
The Buttons Playground application has been implemented as a RectPy demonstrator.
python -m examples.button_playground
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
reactpy_github_buttons-0.0.10.tar.gz
(759.1 kB
view hashes)
Built Distribution
Close
Hashes for reactpy_github_buttons-0.0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd58d7a22cfb8f00e9a4d7fbe11bfd9552b79da48003487ae351900c521c1966 |
|
MD5 | 7b11f0a6be082fcf112a65e90c5fe002 |
|
BLAKE2b-256 | 049cbb9224f9c5b6aa035917679a669707b2e703e3b7b8588e6d60e27ad2671c |
Close
Hashes for reactpy_github_buttons-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a30b8e98e45ab7430f26486066855c51261473e076e112dcaaa6a0fd7c88802c |
|
MD5 | 7d4261393a66e0bae5dd576f3bdfd944 |
|
BLAKE2b-256 | 8a663755b96eba6180fd3c8bdd38821071a45d3341712cd404c92bf1ea5426f4 |