## 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](https://buttons.github.io/) application has been implemented
as a RectPy demonstrator.
python -m examples.button_playground

[github-buttons]: https://github.com/buttons/github-buttons
[ReactPy]: https://github.com/reactive-python/reactpy
Raw data
{
"_id": null,
"home_page": "https://github.com/stevej2608/reactpy-github-buttons",
"name": "reactpy-github-buttons",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<4.0.0",
"maintainer_email": "",
"keywords": "",
"author": "Steve Jones",
"author_email": "jonesst2608@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/e9/15/096b8d7e9be31c1498ebfdf1b8afcd31ed806abf04c275dfae98d649a03b/reactpy_github_buttons-0.0.13.tar.gz",
"platform": null,
"description": "## reactpy-github-buttons\n\n\n\n\n Minimal [ReactPy] wrapper for [github-buttons].\n\n## Usage\n\n pip install reactpy-github-buttons\n\n\n## Examples\n\nSeveral examples of usage are in the *./examples* folder.\n\n### Minimal\n\n*./examples/single.py*\n```\nfrom reactpy import component, html, run\nfrom reactpy_github_buttons import StarButton\n\n@component\ndef AppMain():\n return StarButton(user='reactive-python', repo='reactpy')\n\nif __name__ == \"__main__\":\n run(AppMain)\n```\n\n### With Color Scheme\n\n*./examples/color_scheme.py*\n```\nfrom reactpy import component, html, run\nfrom reactpy_github_buttons import StarButton, make_color_scheme, ColorScheme\n\n@component\ndef AppMain():\n return StarButton(user='reactive-python', repo='reactpy',\n show_count=True,\n color_scheme=make_color_scheme(\n no_preference=ColorScheme.LIGHT_HIGH_CONTRAST,\n light=ColorScheme.LIGHT,\n dark=ColorScheme.DARK_HIGH_CONTRAST,\n )\n )\n\nif __name__ == \"__main__\":\n run(AppMain)\n```\n\n### Buttons Playground\n\nThe [Buttons Playground](https://buttons.github.io/) application has been implemented \nas a RectPy demonstrator.\n\n python -m examples.button_playground\n\n\n\n\n[github-buttons]: https://github.com/buttons/github-buttons\n[ReactPy]: https://github.com/reactive-python/reactpy",
"bugtrack_url": null,
"license": "MIT",
"summary": "ReactPy wrapper for react-github-btn",
"version": "0.0.13",
"project_urls": {
"Homepage": "https://github.com/stevej2608/reactpy-github-buttons",
"Repository": "https://github.com/stevej2608/reactpy-github-buttons"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c80990a2b9fa7fcf2c3222b9dcdf7611a40b63f956721fc392bee14f710bd65f",
"md5": "57217559b4aa6ab9fb285530050f67b5",
"sha256": "7dbe7e1d6b4cf297cc6b4e6a5c552b24eaf511445346a1f3b5da51fbc7224ce3"
},
"downloads": -1,
"filename": "reactpy_github_buttons-0.0.13-py3-none-any.whl",
"has_sig": false,
"md5_digest": "57217559b4aa6ab9fb285530050f67b5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0.0",
"size": 973324,
"upload_time": "2024-01-25T09:30:19",
"upload_time_iso_8601": "2024-01-25T09:30:19.855409Z",
"url": "https://files.pythonhosted.org/packages/c8/09/90a2b9fa7fcf2c3222b9dcdf7611a40b63f956721fc392bee14f710bd65f/reactpy_github_buttons-0.0.13-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e915096b8d7e9be31c1498ebfdf1b8afcd31ed806abf04c275dfae98d649a03b",
"md5": "38c91482d3650754eac95d9d57702b02",
"sha256": "2bd6a1c544deeeed689d07258efb9ea12f54f75ce2d313076b1018d2ecec8dc4"
},
"downloads": -1,
"filename": "reactpy_github_buttons-0.0.13.tar.gz",
"has_sig": false,
"md5_digest": "38c91482d3650754eac95d9d57702b02",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0.0",
"size": 967577,
"upload_time": "2024-01-25T09:30:24",
"upload_time_iso_8601": "2024-01-25T09:30:24.027468Z",
"url": "https://files.pythonhosted.org/packages/e9/15/096b8d7e9be31c1498ebfdf1b8afcd31ed806abf04c275dfae98d649a03b/reactpy_github_buttons-0.0.13.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-25 09:30:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "stevej2608",
"github_project": "reactpy-github-buttons",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "reactpy-github-buttons"
}