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.14.tar.gz
(967.6 kB
view hashes)
Built Distribution
Close
Hashes for reactpy_github_buttons-0.0.14.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 109faa217c5b11844a6c69d042a7ee2105fcbbfc3ad44eba6d2c173b31036cb0 |
|
MD5 | 15d618a8cc0ee0edcf4ab323aabaf683 |
|
BLAKE2b-256 | 0a45a9f345ae7fc0f2c32f118bc4f0cff7c182771b351e35640f50c6b5f6d74d |
Close
Hashes for reactpy_github_buttons-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e11c56202cd27bbbcf9d87fd2e0c624aae793d8145262c231e8768ab1b9c309 |
|
MD5 | be7a7acf5f43ada3760f7b59067fe595 |
|
BLAKE2b-256 | d82c0a2dc4e28512213590d754ee408aa4def5f8f89fa76fc6846049c7f67af1 |