Skip to main content

pycoyote - A Python library for building Web user interfaces

Define your component

# You define a class derived from Component
# You need to implement method render
# You can access self.children which represent all the children of your component
# You can access self.props which contains all the attributes passed to your component
# You can import HTML tags from Component, for example "from pycoyote import DIV"

from pycoyote import Component, DIV, SPAN
class MainPage(Component):
    def render(self):
        return DIV(
            SPAN({"class": "bold", "style": f"background-color: {self.props['color']};"},
                "Hello world!"
            ),
            *self.children
        )

Using your component

# You can pass attributes to your component
# You can pass children to your component
MainPage({"color": "green"}, 
    SPAN("Example ends here.")    # you can pass as much child as you need
)

Examples

Please check Examples for details.

Metadata

Release files for pycoyote 0.0.8

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

Source distribution (sdist)

Source distribution for pycoyote 0.0.8
File Size Uploaded Provenance Actions
pycoyote-0.0.8.tar.gz 6.2 kB Without provenance Details for pycoyote-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pycoyote 0.0.8
File Interpreter ABI Platform Actions
pycoyote-0.0.8-py3-none-any.whl Python 3 none any Details for pycoyote-0.0.8-py3-none-any.whl

Total release size: 11.1 kB

Release files / pycoyote-0.0.8.tar.gz

Download URL pycoyote-0.0.8.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
82dfbaf80ef67052645fcc9bc2e310a32e4c3c3a890246dcd963dc2eb0e91143
BLAKE2b-256 checksum
How to use checksums
e7b3acd337e4c1dd327e30e39ec2f54c7e9a3e1b49dca0e0c9d570782d1e53a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / pycoyote-0.0.8-py3-none-any.whl

Download URL pycoyote-0.0.8-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f48d63884a0df7f93a57e9ebeee8f3148907a13f2f120846e32794382c8593c2
BLAKE2b-256 checksum
How to use checksums
2c90e4a225e66bb09289a4f8adbb7504f9d223556adfa8e6a8387869bf523032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for pycoyote 0.0.8

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.

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