pystachio icon indicating copy to clipboard operation
pystachio copied to clipboard

type-checked dictionary templating library for python

Results 11 pystachio issues
Sort by recently updated
recently updated
newest added

Regular expressions use the backslash character ('\') to indicate special forms or to allow special characters to be used without invoking their special meaning. This collides with Python’s usage of...

I was careful to ensure the indentation in the rendered readme does not change

Today, the interface for using pystachio configs makes it rather hard if not impossible to type with mypy types. The most obvious stumbling block is that the schema, while looking...

Would be nice to support iteration as documented in https://mustache.github.io/mustache.5.html use case. ``` yaml NAMERD_TEMPLATE = """--- admin: port: {{thermos.ports[admin]}} storage: kind: io.l5d.zk experimental: true pathPrefix: /dtabs/{{profile.environment}} zkAddrs: {{#region.zk}} -...

`Choice` of multiple `Struct`s fails when given a valid schema for any but the first option, since the first `Struct` will raise an unhandled `AttributeError` before the others are tried....

Allow accepting any Struct as a field. This is useful if you want non-fixed schemas that can be validated/extracted at runtime.

idea

Hello, Is it hard to make Pystachio's template engine to be pluggable? For example I'd like to use Jinja2 Math expressions in my Pystachio file: http://jinja.pocoo.org/docs/dev/templates/#math

Often we want to restrict the set of values on a field to a subset of those allowed by the type, and often the best place to do this is...

idea

there is more or less a 1:1 correspondence between thrift and pystachio schemas, so we should be able to use a .thrift file as input to pystachio (and pystachio should...

idea

Basically an Optional field that returns a warning when its value is present. Maybe like so ``` python class Configuration(Struct): max_retries = Deprecated(Integer) retry_strategy = Strategy ```

idea