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.11.tar.gz
(967.6 kB
view hashes)
Built Distribution
Close
Hashes for reactpy_github_buttons-0.0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75e5edf124eceedeb275191f80211d3f321982d4e12d4159f44c921ad4b503af |
|
MD5 | b46dad3385925137ac3497853e41742f |
|
BLAKE2b-256 | c9dfdbc72fad9a690462c58f83692ab468f95f81f4c5a4e7af9999a419112705 |
Close
Hashes for reactpy_github_buttons-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 705a649d73812c79cb8df9eaead2b1fba8e5b375caddc84f3eae077711b7aef6 |
|
MD5 | 2b6caa14752bf1a30e9876f6a6c0ac4e |
|
BLAKE2b-256 | 057fc4598d03b3637a1e9e00b2362465844f48cddd5db86234015db12be724b8 |