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.13.tar.gz
(967.6 kB
view hashes)
Built Distribution
Close
Hashes for reactpy_github_buttons-0.0.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bd6a1c544deeeed689d07258efb9ea12f54f75ce2d313076b1018d2ecec8dc4 |
|
MD5 | 38c91482d3650754eac95d9d57702b02 |
|
BLAKE2b-256 | e915096b8d7e9be31c1498ebfdf1b8afcd31ed806abf04c275dfae98d649a03b |
Close
Hashes for reactpy_github_buttons-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dbe7e1d6b4cf297cc6b4e6a5c552b24eaf511445346a1f3b5da51fbc7224ce3 |
|
MD5 | 57217559b4aa6ab9fb285530050f67b5 |
|
BLAKE2b-256 | c80990a2b9fa7fcf2c3222b9dcdf7611a40b63f956721fc392bee14f710bd65f |