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.9.tar.gz
(759.1 kB
view hashes)
Built Distribution
Close
Hashes for reactpy_github_buttons-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da0c2f3a66f963808570126f32e2e7d84bb8c3e26128bbe97be01d36ddf3a362 |
|
MD5 | 7f42553aeb110f8aea513c8e17c67c20 |
|
BLAKE2b-256 | 77358c4429d2cb4d824a6815e1346002ef253b179110fbf95fbe24f84674de77 |
Close
Hashes for reactpy_github_buttons-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6148edcfbc3392a3289ab3ecc38a94993e9de8b846f0430f3aefe3cf3272433 |
|
MD5 | e0dff8db638b650315063f0e17572f6e |
|
BLAKE2b-256 | 9008a1ab601942fe06c22ebf3c77eeaede3225e86aa28ad9acec03fc1029c1b6 |