Skip to main content

Lilliepy Protect

a decorator to protect you components

how to use

from lilliepy_protect import protect
from reactpy import component, html

@component
def fallback():
    return html.h1("u werent logged in...")

@protect(fallback=fallback, attr="logged_in")
@component
def ProtectedPage():
    return html.h1("welcome")
# ...

protect -> (
    comp: reactpy.types.ComponentType, # the component to be protected
    fallback: reactpy.types.ComponentType, # the return url or component to navigate/render
    attr: str # the value to find in the scope (basically the granter code)(defaulted to "granted")
)

# ...

Metadata

Release files for lilliepy-protect 1.0

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

Source distribution (sdist)

Source distribution for lilliepy-protect 1.0
File Size Uploaded Provenance Actions
lilliepy_protect-1.0.tar.gz 2.0 kB Without provenance Details for lilliepy_protect-1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lilliepy-protect 1.0
File Interpreter ABI Platform Actions
lilliepy_protect-1.0-py3-none-any.whl Python 3 none any Details for lilliepy_protect-1.0-py3-none-any.whl

Total release size: 4.4 kB

Release files / lilliepy_protect-1.0.tar.gz

Download URL lilliepy_protect-1.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
19ed2bfd996765778e3d1af4876b1681b3b7ab847c8585071ede11697f105e17
BLAKE2b-256 checksum
How to use checksums
3cc8638609533a0b1e72c606d85ab4ce8b34cacfa9efc6f5715b215aa12fc807
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.1

Release files / lilliepy_protect-1.0-py3-none-any.whl

Download URL lilliepy_protect-1.0-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8dfb63640f64a34ab78e50394d0137d7be8f725438daa74f39abcef84bd6e6cc
BLAKE2b-256 checksum
How to use checksums
f6c175e4e9b9266bda9c336268efdcfb48dbad2fc77e3ec1b1f6b3a09f8d5630
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.1

Security for lilliepy-protect 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files No provenance

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