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.12.tar.gz
(967.7 kB
view hashes)
Built Distribution
Close
Hashes for reactpy_github_buttons-0.0.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0d2a89015be45310afce867331b1b10b9f5b5a8c7ee145195d8add28d585b1d |
|
MD5 | b922395908eaed451929033efa4f13e3 |
|
BLAKE2b-256 | 0cc55ef509699bd41c1359a30a04c8e23ee0e5c2138191004cad0979998022d1 |
Close
Hashes for reactpy_github_buttons-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2b154177bebe0805dd29cdf7f4f9eb8cd12a5d18926c8737c67ab52f28cafc2 |
|
MD5 | c86a3c6705bab87717b7194c481bc577 |
|
BLAKE2b-256 | e41e3c690939d0872e360e02f9c245ebe5fb9dc3c5532784266d9eb5617f3fc7 |