reflex-clerk


Namereflex-clerk JSON
Version 1.0.3 PyPI version JSON
download
home_pageNone
SummaryReflex custom component library for Clerk, a user management platform
upload_time2024-07-25 19:17:27
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseApache-2.0
keywords reflex reflex-custom-components
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # clerk

A Reflex custom component clerk.

## Installation

```bash
pip install reflex-clerk
```

## Usage

```python
import reflex as rx
from reflex_clerk import clerk_provider, sign_in_button, install_signin_page

publishable_key = "your_clerk_publishable_key"


def index() -> rx.Component:
    return clerk_provider(
        rx.vstack(
            sign_in_button(),
            align="center",
            spacing="7",
        ),
        publishable_key=publishable_key,
    )


app = rx.App()
app.add_page(index)
install_signin_page(app)
```

In this example:

1. We import the necessary components from Reflex and the `reflex_clerk` library.
2. We define the `publishable_key` for our Clerk instance.
3. We create a function index that returns a Reflex component.
4. Inside the index function, we use the `clerk_provider` component from reflex_clerk. This component sets up the Clerk
   context for the rest of the components within it.
5. Within the `clerk_provider`, we create a vertical stack (rx.vstack) that contains the sign_in.sign_in_button()
   component from reflex_clerk. This component renders a sign-in button for Clerk.
6. We pass the `publishable_key` to the `clerk_provider` component.

With this setup, you'll have a page that displays a sign-in button powered by Clerk. You can then add more Clerk
components, such as user profile information, sign-out buttons, and more, within the clerk_provider.

Further documentation can be found in [the reference docs](docs/)

## License

Apache-2.0

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## Acknowledgments

- [Reflex](https://github.com/reflexjs/reflex)
- [Clerk](https://clerk.dev/)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "reflex-clerk",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "reflex, reflex-custom-components",
    "author": null,
    "author_email": "Elliot Kroo <elliot@kroo.net>",
    "download_url": "https://files.pythonhosted.org/packages/3c/25/b3e3cf535b634e3e910d05bce32642a0050316fff412df8835818852356d/reflex_clerk-1.0.3.tar.gz",
    "platform": null,
    "description": "# clerk\n\nA Reflex custom component clerk.\n\n## Installation\n\n```bash\npip install reflex-clerk\n```\n\n## Usage\n\n```python\nimport reflex as rx\nfrom reflex_clerk import clerk_provider, sign_in_button, install_signin_page\n\npublishable_key = \"your_clerk_publishable_key\"\n\n\ndef index() -> rx.Component:\n    return clerk_provider(\n        rx.vstack(\n            sign_in_button(),\n            align=\"center\",\n            spacing=\"7\",\n        ),\n        publishable_key=publishable_key,\n    )\n\n\napp = rx.App()\napp.add_page(index)\ninstall_signin_page(app)\n```\n\nIn this example:\n\n1. We import the necessary components from Reflex and the `reflex_clerk` library.\n2. We define the `publishable_key` for our Clerk instance.\n3. We create a function index that returns a Reflex component.\n4. Inside the index function, we use the `clerk_provider` component from reflex_clerk. This component sets up the Clerk\n   context for the rest of the components within it.\n5. Within the `clerk_provider`, we create a vertical stack (rx.vstack) that contains the sign_in.sign_in_button()\n   component from reflex_clerk. This component renders a sign-in button for Clerk.\n6. We pass the `publishable_key` to the `clerk_provider` component.\n\nWith this setup, you'll have a page that displays a sign-in button powered by Clerk. You can then add more Clerk\ncomponents, such as user profile information, sign-out buttons, and more, within the clerk_provider.\n\nFurther documentation can be found in [the reference docs](docs/)\n\n## License\n\nApache-2.0\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## Acknowledgments\n\n- [Reflex](https://github.com/reflexjs/reflex)\n- [Clerk](https://clerk.dev/)\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Reflex custom component library for Clerk, a user management platform",
    "version": "1.0.3",
    "project_urls": {
        "homepage": "https://kroo.github.io/reflex-clerk/",
        "source": "https://github.com/kroo/reflex-clerk"
    },
    "split_keywords": [
        "reflex",
        " reflex-custom-components"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1237ad626bd26d7a7e694d9d8f9d2ecfc330899715ba5eeebbac133559ade182",
                "md5": "f30bc870b5c511d7179ba702154aed59",
                "sha256": "fbbc606a1d1eda024b069976fb4bef69b6cdbb2bbf34baec48c5aec290e2caa5"
            },
            "downloads": -1,
            "filename": "reflex_clerk-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f30bc870b5c511d7179ba702154aed59",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 24377,
            "upload_time": "2024-07-25T19:17:26",
            "upload_time_iso_8601": "2024-07-25T19:17:26.237632Z",
            "url": "https://files.pythonhosted.org/packages/12/37/ad626bd26d7a7e694d9d8f9d2ecfc330899715ba5eeebbac133559ade182/reflex_clerk-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3c25b3e3cf535b634e3e910d05bce32642a0050316fff412df8835818852356d",
                "md5": "2de19046675325f7cdb8a41a2fec5e08",
                "sha256": "1db113d36f2819769c114f5732b27abeb441216ddb85dcdb3c85ca93c89b6449"
            },
            "downloads": -1,
            "filename": "reflex_clerk-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "2de19046675325f7cdb8a41a2fec5e08",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 19110,
            "upload_time": "2024-07-25T19:17:27",
            "upload_time_iso_8601": "2024-07-25T19:17:27.284223Z",
            "url": "https://files.pythonhosted.org/packages/3c/25/b3e3cf535b634e3e910d05bce32642a0050316fff412df8835818852356d/reflex_clerk-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-25 19:17:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kroo",
    "github_project": "reflex-clerk",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "reflex-clerk"
}
        
Elapsed time: 4.29513s