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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycob-0.0.9.tar.gz
(19.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pycob-0.0.9-py3-none-any.whl
(21.6 kB
view details)
File details
Details for the file pycob-0.0.9.tar.gz.
File metadata
- Download URL: pycob-0.0.9.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35d84479292d92ffda1974215bb6d58b7c0786e3c02febe2b56a114abde48515
|
|
| MD5 |
27551a0b2a34039571c818ff9b7c3630
|
|
| BLAKE2b-256 |
94aedf957edf8bd4d72edf2e6c70d2087ce4159d8169e30ef675e3408a42d4f8
|
File details
Details for the file pycob-0.0.9-py3-none-any.whl.
File metadata
- Download URL: pycob-0.0.9-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e233b5d3f311e2562f2df2978c18b6e1e6eac24497fd28f7c092a92c598e8b0e
|
|
| MD5 |
f0de7637516be944c0192c6f08ac1542
|
|
| BLAKE2b-256 |
6d38dda59e9af31aa2e21a897717f942d91071ce4916cb4c47f908087067a8f0
|