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.8.tar.gz
(759.1 kB
view hashes)
Built Distribution
Close
Hashes for reactpy_github_buttons-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cde24c985fc22554e438d9e3e380ef09ca97179c6c2bfbab9cd29efadd1d8cff |
|
MD5 | cc54a7e758c3e759243f7427fd037a6f |
|
BLAKE2b-256 | 6d5e4bcf0fb7b1f2a285ec7f0dc50a4fb2702f88c69a95221efed78ed39bdd8b |
Close
Hashes for reactpy_github_buttons-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09655465b5195249a14518d8e8de89fc0946d00bc20a7c7787017557d10e1238 |
|
MD5 | 56d844e53542ec70b71bfb0fc63537c0 |
|
BLAKE2b-256 | 5caccadd696d108d66eb6400499134ec27a2771c3d143b6b1680d46bd7d7a152 |