Skip to main content

rebecca.annotationmapper is viewmapper for pyramid web application. That processes annotations of view arguments.

INSTALL

$ pip install rebecca.annotationmapper

USAGE

rebecca.annotationmapper provides include fook.

config.include('rebecca.annotationmapper')

Annotate arguments using rebecca.annotationmapper.annotations

def hello(context, request, nane: FromMatchDict):
    request.response.text = "Hello, {name}".format(name=name)
    return request.response

config.add_route("hello", "/hello/{name}")
config.add_view(hello, route_name="hello")

The argument name annotated by FromMatchDict is given value from request.matchdict['name'] by rebecca.annotationmapper.AnnotationViewMapper.

For example, you access ‘http://localhost/hello/aodag’ and you get message ‘Hello, aodag’.

Annotations

FromMatchDict

provides value from request.matchdict.

FromParam

provides value from request.params.

FromSession

provides value from request.session.

FromHeader

provides value from request.headers.

FromAttr

provides value from attribute of request.

CHANGES

0.1

  • first release

Metadata

Release files for rebecca.annotationmapper 0.1

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

Source distribution (sdist)

Source distribution for rebecca.annotationmapper 0.1
File Size Uploaded Provenance Actions
rebecca.annotationmapper-0.1.zip 7.3 kB Without provenance Details for rebecca.annotationmapper-0.1.zip

Built distribution (wheel)

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

Total release size: 13.3 kB

Release files / rebecca.annotationmapper-0.1.zip

Download URL rebecca.annotationmapper-0.1.zip
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d705833ea4dd221776a5ae7f726d9e4931aeacb6548af03c8e3084ee89281e5c
BLAKE2b-256 checksum
How to use checksums
92a4944dadecb1891e6fbdfc1b6ebec128088a883ef4ccc364fab230351db537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / rebecca.annotationmapper-0.1-py3-none-any.whl

Download URL rebecca.annotationmapper-0.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
036ba4f60acd479135e5822d05881d085ee117d140ad5e25bad8dd7da90c70b9
BLAKE2b-256 checksum
How to use checksums
1e6eebb212970019a42a28a68e3013a78fd6cf589e06ebdbddcd8f73334d68e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for rebecca.annotationmapper 0.1

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