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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reactpy_github_buttons-0.0.14-py3-none-any.whl (973.3 kB view details)

Uploaded Python 3

File details

Details for the file reactpy_github_buttons-0.0.14.tar.gz.

File metadata

  • Download URL: reactpy_github_buttons-0.0.14.tar.gz
  • Upload date:
  • Size: 967.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.4 Windows/10

File hashes

Hashes for reactpy_github_buttons-0.0.14.tar.gz
Algorithm Hash digest
SHA256 109faa217c5b11844a6c69d042a7ee2105fcbbfc3ad44eba6d2c173b31036cb0
MD5 15d618a8cc0ee0edcf4ab323aabaf683
BLAKE2b-256 0a45a9f345ae7fc0f2c32f118bc4f0cff7c182771b351e35640f50c6b5f6d74d

See more details on using hashes here.

File details

Details for the file reactpy_github_buttons-0.0.14-py3-none-any.whl.

File metadata

File hashes

Hashes for reactpy_github_buttons-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 2e11c56202cd27bbbcf9d87fd2e0c624aae793d8145262c231e8768ab1b9c309
MD5 be7a7acf5f43ada3760f7b59067fe595
BLAKE2b-256 d82c0a2dc4e28512213590d754ee408aa4def5f8f89fa76fc6846049c7f67af1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.14 This release

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page