PyCob
Create web apps using just Python
Install PyCob
pip install pycob
Use PyCob
import pycob as pc
app = pc.App('Test App')
def test_page(server_request: pc.Request) -> pc.Page:
name = server_request.get_query_parameter('name')
page = pc.Page('Test Page')
page.add_header('Test Header', "2")
page.add_text('Test Text')
page.add_alert('Test Alert')
page.add_hero('Hello ' + name, 'Test Subtitle', 'https://source.unsplash.com/random/800x600')
form = pc.FormComponent(action="/")
form.add_formtext('Name', 'name', 'Enter your name')
form.add_formsubmit('Submit')
page.add_component(form)
return page
app.add_page('/', test_page)
app.run()
Quickstart
Learn More
Metadata
Release files for pycob 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycob-0.0.7.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycob-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.6 kB
Release files / pycob-0.0.7.tar.gz
| Download URL | pycob-0.0.7.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f994a63eaaea396ef75191a7f8e2dd79b57b816d8ea07a5233a65366c9b64e87
|
|
BLAKE2b-256 checksum How to use checksums |
9e3bf818ea6c3b385f4c43bb3e0d612b06bc0f7b000642f3d2d043efb884b639
|
| 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.0.7-py3-none-any.whl
| Download URL | pycob-0.0.7-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f07d853a8da90d943f810787c60ad9828fd65977969cc5a5149c56587fb59cee
|
|
BLAKE2b-256 checksum How to use checksums |
d8241a5da29ecced99ad0b1061ea5aa9a21abe100504f4074ccd3b3e78431095
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|