Skip to main content

talkback

Respond with your response to requests

Use routes file to map url path to responders

See examples app in https://www.github.com/madhukumarseshadri/talkweb3

Examples of GET / POST / PUT / DELETE

Examples of managing formdata,

In the responder, self.qs is query string.

For GET / POST, form submission html forms,

use

self.processform()

in the responder to get the formdata [ url encoded or multipart or text/plain ]

After using processform, self.formdata.data is,

For GET, self.formdata.data is a dict of field names, value pairs and field name and values are python strings and percent decoded and plus sub-ed. Get the form values as shown below,

type,fieldvalue,filename,content_type=self.formdata.data['fieldname'] #or
type,fieldvalue,filename,content_type=self.formdata['fieldname']
#type - empty or b'f' with f denoting input is file
#fieldvalue -  contents of file as bytes or field value
#filename - name of the file if file
#content_type - content_type of file if file 

For POST, self.formdata.data - dict is byte field name value pairs if post is mutlipart/formdata For url encoding posts, default encoding is utf8 no need to provide, provide python supported encoding or none for bytes in self.processforms(encoding=None). For utf8, values are percent decoded and plus sub-ed

type,fieldvalue,filename,content_type=self.formdata.data['fieldname'] #or
type,fieldvalue,filename,content_type=self.formdata['fieldname']

For multipart/formdata with files,

type,fieldvalue,filename,content_type=self.formdata.data[b'fieldname'] or
type,fieldvalue,filename,content_type=self.formdata[b'file']
for type,fieldvalue,filename,content_type in self.formdata[b'files']:
	#input is multiple files

AJAX formdata GET and POST

GET / POST forms

See examples app

For PUT,

use self.processinput() within a responder

For DELETE

use self.processinput() within a responder

OPTIONS / HEAD / CONNECT AND TRACE for http server to manage

Examples for using session and cookies - see session.py in examples

fskeeper - keeps the sesson as file and pickles the session object to file sqlkeeper - keepes the session in the database in session table

Metadata

Release files for talkback 1.6

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

Source distribution (sdist)

Source distribution for talkback 1.6
File Size Uploaded Provenance Actions
talkback-1.6.tar.gz 15.7 kB Without provenance Details for talkback-1.6.tar.gz

Built distribution (wheel)

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

Total release size: 33.3 kB

Release files / talkback-1.6.tar.gz

Download URL talkback-1.6.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3f2113f6d82b0421e285212379cc553985ab2f6d717ad929e05145851c6be369
BLAKE2b-256 checksum
How to use checksums
e3d693907c6857ac397a18a579337b2da3c46a430c203cc678fb8482510c78aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release files / talkback-1.6-py3-none-any.whl

Download URL talkback-1.6-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
086963409bb26ce97dc94ff259be41dca179758760766f35357b699abca42ed7
BLAKE2b-256 checksum
How to use checksums
b683af242f06ec00dda0b9c48b98b82217ecbbe01b6fca1cc430ef811986c3cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Security for talkback 1.6

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.6 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