yelp_cheetah
Cheetah is an open source template engine and code generation tool.
yelp_cheetah is cheetah with everything we don't / shouldn't use removed.
Differences
0.19.1
- Fix build on pypy.
0.19.0
- Add error message for missing partial template
#extendsunder test. - Fix warnings in python3+.
- Drop support for python 2.
- Build abi3 wheels.
0.18.0
- Some optimizations of list comprehensions
- Lookup speed improvements
- Remove
enable_auto_selfsetting (alwaysFalse) - Remove
useNameMappersetting (alwaysTrue) - Add an
auto_selfkwarg togetVarandvarExistsdefaulting toTrue(will default toFalseand be removed in a future version).
0.17.0
enable_auto_selfsetting now defaults toFalse- Lookup involving partial templates calling partial templates is now optimized.
0.16.1
- Add a parsing hook for cheetah variables
0.16.0
$foo()barno longer compiles tofoo.bar- gettext parsing was removed -- it never worked properly. To get gettext
scannable compiled output, create a compiler, augment
._global_varswith the gettext functions. $()and$[]are now syntax errors -- use${}instead${ foo }is now a syntax error -- placeholders cannot start with whitespace- Escaped newlines in expressions are preserved
- Bug with comments in a multi-line expression fixed
- Fix several parsing issues around expressions
- Fix several parsing issues around
#def
0.15.2
- Add an
enable_auto_selfsetting (defaulted toTrue) which (when enabled) means$foocan mean eitherself.fooorNS['foo'](the behaviour prior to this version). In future versions, this will default toFalseand will eventually be eliminated.
0.15.1
- Introduce unused functions for lookup. These will be used for backwards / forwards compatibility in the next release.
0.15.0
- Remove
#calldirective (port to#withinstead)
0.14.0
- Use
io.StringIOas a replacement forDummyTransaction - Drop python2.6 support
0.13.2
- Require six>=1.4.0 (for six.PY2)
0.13.1
- Add setuptools extension to build templates. To use add
setup_requires=['yelp-cheetah']andyelp_cheetah={'directories': [...]}to automatically build templates in a package on installation.
0.13.0
- Remove
#setand#silent(replaced by#py)
0.12.1
- Fix regression introduced in 0.11.0:
$self.getVar('contains_underscore')
0.12.0
- Fix regression introduced in 0.11.0:
[$x for x in ...]
0.11.0
- Remove instrumentation added in 0.10.0
- Remove
useAutocallingsetting (always False) - Remove
useDottedNotationsetting (always False) - Remove
mainMethodNamesetting (always respond) - Remove
mainMethodNameForSubclassessetting (always writeBody) - Remove
valueForName(now unused) - Implement ContextManagerPartialTemplateTestCase
- Template now only takes a single argument
namespaceinstead of searchList - Support pypy for real
- Template.getVar / Template.varExists no longer support dots
0.10.0
- Added instrumentation to migrate away from autocall / autokey
0.9.0
- Tests pass under pypy (still slow)
- "Blinged" kwargs no longer supported:
$foo($bar='baz') => $foo(bar='baz')
0.8.0
#filterdirective is gone. Useself.set_filter(filter_fn)Template's signature is nowTemplate(search_list, filter_fn)- All templates now have
from __future__ import absolute_import
0.7.0
- removed macro support: use
#withinstead. - much-improved support for context managers.
- Raise on unknown settings
- Remove settings:
cheetahVarStartToken,commentStartToken,directiveStartToken,directiveEndToken - Fix indexing a return value #23
- Add
#pydirective. This will replace#silentand#setin a future version - Remove
<% ... %> - Optimize lookup of builtins, globals, and locals when detected.
0.6.0
- Cheetah classes now invariantly have
YelpCheetahTemplateas the classname - Variable lookup is now
locals(),globals(),builtins,self,searchList #extendsno longer supports#extends foo.fooand should instead be#extends foo
0.5.0
**KWSis no longer added to every template method definition
0.4.1
- Scan gettext variables in attributes
$translator.gettext(...) - Scan more types of gettext variables (
gettext,pgettext,npgettext). - Remove some runtime overhead of gettext variables
0.4.0
- Remove dollarsigns on
forlvalues - Remove
#set globaldirective - Remove
future_unicode_literalssetting - Disallow dollarsigns in
getVar/varExists
0.3.5
- Do not create
__init__.pyin__pycache__directories
0.3.4
- Invariantly create
__init__.pyin subdirectories
0.3.3
- dep argparse
0.3.2
cheetah-compiletakes directories
0.3.1
- Fix partial template testing infrastructure
0.3.0
- Disallow dollarsigns on
#def/#blockname - Disallow dollarsigns in function signatures
- Require argspec for
#def - Requres no argspec for
#block - Require no dollarsign in
#setlvalue - Disallow dollarsigns in macro arguments
- Disallow dollarsigns in
#attrlvalue - Forbid
@classmethod/@staticmethod - Remove
#set moduledirective - Add testing infrastructure for partial template testing
0.2.1
- Add
compile_directories
0.2.0
- Add
#withdirective - 100% test coverage
0.1.4
- Make filters simple functions instead of classes
- Add and make default
markupsafefilter
0.1.3
- Add
Cheetah.partial_template, a system for importable template functions.
0.1.2
- Rename
Cheetah.CompilerandCheetah.ParsertoCheetah.legacy_compilerandCheetah.legacy_parser - Remove
#encodingdirective, cheetah source is now invariantlyUTF-8
0.1.1
- Raise on unknown macros
- Remove
#echodirective - Remove
#* ... *#multiline comment syntax - Remove version checking code
- Remove
#argdirective - Remove
#closuredirective - Make compilation output deterministic
- Remove
<%=...%> - Remove ability to specify argspecs in
#implements - Remove multiple inheritance from
#extends - Remove
#compilerdirective - Remove global imports: (
sys,os,os.path,builtin,getmtime,exists,types) - Default
useDottedNotationto false - Remove
allowNestedDefScopessetting - Remove
useSearchListsetting - Remove
useKWsForPassingTranssetting - Remove
alwaysFilterNonesetting - Remove cheetah ternary
#if ... then ... else ...directive - Remove
namespaceargument fromTemplate.__init__ - Support Python 3
- Expose a global
__YELP_CHEETAH__ = Truein compiled source - Remove
autoImportForExtendssetting (always True) - Disable
#extendsof an imported name - Add setting
future_unicode_literalsfor togglingunicode_literalsin compiled source
0.1.0
- Removed Cheetah Analyzer
- Removed textmate highlight support
- Remove logging of placeholders
- Remove Django support
- Make useAutoCalling default to False
- Remove
#cachedirective - Remove Mondo
- Remove RecursiveNull
- Remove SiteHierarchy
- Remove turbocheetah
- Remove Servlet
- Remove silent placeholders (
$!placeholder) - Remove
#errorCatcherdirective - Remove WebWare support
- Remove FileUtils
- Remove hasName
- Remove Indenter
- Remove
#indentdirective - Remove cheetah eval
c'$var'syntax - Remove import hook, live compiling, compilation cache
- Remove CheetahWrapper
- Remove
#I18nmacro - Improve cmdline interface
- Remove several magical imports (
time,currentTime, etc.) - Remove
#unicodedirective - Remove
#breakpointdirective - Remove
#unlessdirective - Remove
#repeatdirective - Remove
#capturedirective - Improve compiling interface. There are now three functions: (
compile_source,compile_file,compile_to_class) - Remove
#defmacrodirective - Remove
#includedirective - Remove
getFileContents - Remove preprocessors
- Remove
addSrcTimeToOutputsetting - Remove
disabledDirectivessetting - Remove
pre/postParseDirectivehooks - Remove placeholder hooks
- Remove expression hooks
- Remove
I18NFunctionName - Remove
EmptySingleLineMethodssetting - Remove
allowWhitespaceAfterDirectiveStartToken - Remove
templateMetaclasssetting - Require
unicodefor compiling source - Remove
#transformdirective - Remove
Websafe,Markdown,CodeHighlight,Maxlen,Stripfilters - Remove aliases for
BaseFilter - Remove
namespacesargument forTemplateconstructor - Remove
#stopdirective - Remove
useFilterssetting (always True) - Remove
allowPlaceholderFilterArgssetting - Remove
encodingsetting - Remove
EOLSlurpfeature - Remove
#rawdirective - Remove C implementation of filters
- Remove
outputMethodsBeforeAttributessetting - Remove
defDocStrMsgsetting - Remove
handlerForExtendsDirectivesetting - Remove
__str__from all objects - Remove support for pypy (Delete python implementation of NameMapper)
- Remove
useStackFramessetting - Remove
#importsettingsdirective - Remove
#compiler-settings pythondirective - Remove
safeConvert - Remove
*imports - Raise on searchlist collisions
- Fix bug with macros causing out-of-bounds when near end of source
0.0.1
- Correct dependencies
0.0.0
- Before hacking
Metadata
Release files for yelp-cheetah 0.19.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 |
|---|---|---|---|---|
| yelp_cheetah-0.19.1.tar.gz | 28.9 kB | Without provenance | Details for yelp_cheetah-0.19.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yelp_cheetah-0.19.1-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.6 | abi3 | Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 | Details for yelp_cheetah-0.19.1-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
Total release size: 69.6 kB
Release files / yelp_cheetah-0.19.1.tar.gz
| Download URL | yelp_cheetah-0.19.1.tar.gz |
|---|---|
| Size | 28.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b301a0af2fc2c0c841db0dc0fe046c000b3916310662d3f47c044e687623c3cc
|
|
BLAKE2b-256 checksum How to use checksums |
6d8680e67ba0e30045c6ed07320ae1fe179be78d0fdc91ed726282b46d9bda24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / yelp_cheetah-0.19.1-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | yelp_cheetah-0.19.1-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 40.6 kB |
| Tags | CPython 3.6 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
b1ec1fa668c0fb12bf9aa88f150c82ac4e0fe83a974a631204450bfe7a60d5dd
|
|
BLAKE2b-256 checksum How to use checksums |
872a9fc672487e151cf4318c2368034a240fd32544928a70425591ff1a833cd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Security for yelp-cheetah 0.19.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.