Skip to main content

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

Metadata

Release files for reactpy-github-buttons 0.0.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reactpy-github-buttons 0.0.14
File Size Uploaded
reactpy_github_buttons-0.0.14.tar.gz 967.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for reactpy-github-buttons 0.0.14
File Interpreter ABI Platform
reactpy_github_buttons-0.0.14-py3-none-any.whl Python 3 none any Details

Total release size: 1.9 MB

Release files / reactpy_github_buttons-0.0.14.tar.gz

Download URL reactpy_github_buttons-0.0.14.tar.gz
Size 967.6 kB
Tags Source
SHA-256 checksum
How to use checksums
109faa217c5b11844a6c69d042a7ee2105fcbbfc3ad44eba6d2c173b31036cb0
BLAKE2b-256 checksum
How to use checksums
0a45a9f345ae7fc0f2c32f118bc4f0cff7c182771b351e35640f50c6b5f6d74d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.4 Windows/10

Release files / reactpy_github_buttons-0.0.14-py3-none-any.whl

Download URL reactpy_github_buttons-0.0.14-py3-none-any.whl
Size 973.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e11c56202cd27bbbcf9d87fd2e0c624aae793d8145262c231e8768ab1b9c309
BLAKE2b-256 checksum
How to use checksums
d82c0a2dc4e28512213590d754ee408aa4def5f8f89fa76fc6846049c7f67af1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.4 Windows/10

Release history Release notifications | RSS feed

This release

0.0.14 This release

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page