Skip to main content

PySi

Installation

$ pip install pysi

Hello world

import pysi

@pysi.view('/')
def home(rq):
    return 'Hello world!'

if __name__ == '__main__':
    from wsgiref.simple_server import make_server
    make_server('', 8000, pysi.App()).serve_forever()

Another example

from pysi import cfg, view, redirect, abort
from models import Profile
from forms import ProfileForm

@view('/profile/<int:id>/edit/', 'profile/edit.html')
def edit(rq, id):
    obj = Profile.get(id)
    if not obj or obj.user != rq.user:
        abort(404)
    form = ProfileForm(rq.form)
    if rq.method == 'POST' and form.validate():
        form.populate_obj(obj)
        obj.save()
        rq.flash('Profile updated', 'success')
        return redirect('profile.edit')
    return {'form': form, 'post': post}

Metadata

Release files for pysi 0.19.0

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

Source distribution (sdist)

Source distribution for pysi 0.19.0
File Size Uploaded Provenance
pysi-0.19.0.tar.gz 14.7 kB Without provenance Details

Release files / pysi-0.19.0.tar.gz

Download URL pysi-0.19.0.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
642e55dbb394c66cba11fd00550df6b22a74e12414988bdbf11a09767e675001
BLAKE2b-256 checksum
How to use checksums
1ebcc1b77651e70bd79cb784111cd4b1f2b612930b7fa141e9ed517939312cef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pysi 0.19.0

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.19.0 This release

1 release file 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