PyAMS_template package
What is PyAMS?
PyAMS (Pyramid Application Management Suite) is a small suite of packages written for applications and content management with the Pyramid framework.
PyAMS is actually mainly used to manage web sites through content management applications (CMS, see PyAMS_content package), but many features are generic and can be used inside any kind of web application.
All PyAMS documentation is available on ReadTheDocs; source code is available on Gitlab and pushed to Github.
What is PyAMS_template?
PyAMS is using Chameleon internally as HTML templates engine.
This package, which is essentially an adaptation of “z3c.template” package for Pyramid, allows to separate the definition of a view code from it’s rendering template; this template selection can actually be based on the view but also on the request layer (see “PyAMS_layer” package to get more information about layers).
PyAMS_template package provides a “template_config” decorator, which allows you to define a template for a given view, and a “layout_config” decorator, which allows to define a “layout” template; layout templates are particularly useful when using “pagelets”, which are defined into another package (see PyAMS_pagelet).
You can also override a template definition for a given view, without creating a new view class, just by using the “override_template” or “override_layout” functions.
View and layout templates can also be declared using ZCML instead of Python code, by using the <template /> and <layout /> directives.
Changelog
2.0.1
updated Buildout configuration
2.0.0
migrated to Pyramid 2.0
added support for Python 3.10 and 3.11
1.2.0
removed support for Python < 3.7
1.1.3
removed Travis-CI configuration
1.1.2
updated Travis configuration
1.1.1
updated global registry access
1.1.0
removed ZCML directives
updated doctests
1.0.6
updated super-call of layout and template getters
1.0.5
refactored code to reduce duplicated lines
1.0.4
modified required arguments of templates registration
updated doctests
1.0.3
corrected duplicated variable name mismatch in “template_config” and “layout_config” decorators
1.0.2
new version to avoid upload issue!
1.0.1
added Pyramid configuration settings to templates configuration
1.0.0
initial release
Metadata
Release files for pyams-template 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyams_template-2.0.1.tar.gz | 11.4 kB | Without provenance | Details for pyams_template-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyams_template-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for pyams_template-2.0.1-py3-none-any.whl |
Total release size: 27.1 kB
Release files / pyams_template-2.0.1.tar.gz
| Download URL | pyams_template-2.0.1.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
370c2f5a27657684908a2dea87645264b62249aa67563b1229804ceb32b2fc30
|
|
BLAKE2b-256 checksum How to use checksums |
af7681706105f2fa231eacc3b73a2ca76f953c3f99d42b193feab7cd002ebcb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.17
|
Release files / pyams_template-2.0.1-py3-none-any.whl
| Download URL | pyams_template-2.0.1-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b2443454b6c02647696f642122d6f503fa2f6684524e3e3419071006e166563
|
|
BLAKE2b-256 checksum How to use checksums |
ca7e20e4021f0cfc47593afc64e05d1eac8152d030b4227851004663d3fb4bd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.17
|
Security for pyams-template 2.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.