Skip to main content

PyCob

PyCob Logo on Hexagon

Create web apps using just Python

Install PyCob

pip install pycob

Use PyCob

import pycob as cob
import pandas as pd

# Create a PyCob app
app = cob.App('Sample App')

# Define the page
def test_page(server_request: cob.Request) -> cob.Page:
    name = server_request.get_query_parameter('name')
    
    page = cob.Page('Sample Page')

    if name != "":
        page.add_header("Hello, " + name)
    else:
        page.add_header('Sample Header')

    page.add_text('Sample Text')
    page.add_alert('Sample Alert', "Sample Badge")
    
    card = page.add_card()
    card.add_header("Sample Card", size=3)

    form = card.add_form(action="/")
    form.add_formtext('Name', 'name', 'Enter your name')
    form.add_formsubmit('Submit')

    data = {
        "data_int": [420, 380, 390],
        "data_float": [50.2, 39.6, 100.3],
        "large_numbers": [123123.123, 12312512.123, 113453252334.123],
    }

    df = pd.DataFrame(data)

    page.add_pandastable(df)

    return page

# Give the page a route
app.add_page('/', "Home", test_page)

# Run the server
app.run()

Quickstart

Quickstart Template Repo

Learn More

PyCob

Metadata

Release files for pycob 0.1.14

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

Source distribution (sdist)

Source distribution for pycob 0.1.14
File Size Uploaded Provenance Actions
pycob-0.1.14.tar.gz 32.5 kB Without provenance Details for pycob-0.1.14.tar.gz

Built distribution (wheel)

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

Total release size: 66.2 kB

Release files / pycob-0.1.14.tar.gz

Download URL pycob-0.1.14.tar.gz
Size 32.5 kB
Tags Source
SHA-256 checksum
How to use checksums
524d6c1e54e8b0fb9e554380d351cdc2b064a61f9ce33749c65e77d2002776c7
BLAKE2b-256 checksum
How to use checksums
a38724686374b9c6e76a8c97e66d4b85cd985da785c7b74183d4fb43fc4f8c31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / pycob-0.1.14-py3-none-any.whl

Download URL pycob-0.1.14-py3-none-any.whl
Size 33.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e60891709550d05ca66a31b96005f6eca83daee228d0b44dcf131447ebab981
BLAKE2b-256 checksum
How to use checksums
0bb3e740c8e0cfef7b6795b9bf14f8c0b7321e5cf62a1f4cb8fc19afca6cde19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for pycob 0.1.14

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

0.1.14 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