Skip to main content

rivr

rivr is a Python WSGI Compatible microweb framework. Following a design similar to Django.

Examples

Simple views

def hello_world(request):
    return Response('Hello, World!', content_type='text/plain')

Routing

router = Router()

@router.register(r'^$')
def index(request):
    return Response('Hello world.')

@router.register(r'^test/$')
def test(request):
    return Response('Testing!')

Class based views

class ExampleView(View):
    def get(self, request):
        return Response('Hi')

Testing

rivr exposes a TestClient which allows you to create requests and get a response. Simply pass the TestClient your view, router or application and you can make requests using the testing DSL to get a response.

from rivr.tests import TestClient

class TestCase(unittest.TestCase):
    def setUp(self):
        self.client = TestClient(router)

    def test_status(self):
        assert self.client.get('/status/').status_code is 204

License

rivr is released under the BSD license. See LICENSE.

Metadata

Release files for rivr 0.10.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 rivr 0.10.0
File Size Uploaded Provenance Actions
rivr-0.10.0.tar.gz 16.4 kB Without provenance Details for rivr-0.10.0.tar.gz

Built distribution (wheel)

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

Total release size: 37.8 kB

Release files / rivr-0.10.0.tar.gz

Download URL rivr-0.10.0.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
688fb1cb2906854e681aeb0d1b8b390b12b3cae54a76fbf9b13e18f9183b4690
BLAKE2b-256 checksum
How to use checksums
50662a2b3a61777d478f1e7a0258409170e2f26dbfbe76d786fe2594100b3f9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release files / rivr-0.10.0-py3-none-any.whl

Download URL rivr-0.10.0-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da3e75e99489189ecb8ada796f31654ebf251a097ec12f90eab63d29e6f280d3
BLAKE2b-256 checksum
How to use checksums
875099b341c246118012da38e5a4066e1006ff795038e15dc6513da6de0fb74d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Security for rivr 0.10.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.

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