Skip to main content

zc.buildout recipe that programatically creates JSON files

Project description

nti.recipes.json

https://travis-ci.org/NextThought/nti.recipes.json.svg?branch=master https://coveralls.io/repos/github/NextThought/nti.recipes.json/badge.svg?branch=master

This is a zc.buildout recipe that programatically creates JSON files

Lets look at an example using a buildout part:

[nodeserver-env]
recipe = nti.recipes.json
output-file = /home/user/etc/nodeserver-env.json
contents-section = nodeserver-env-root

[nodeserver-env-root]
stripe-section = nodeserver-stripe
jquery-payment-section = nodeserver-jquery.payment

[nodeserver-jquery.payment]
requires =
  jquery
  stripe
  **end-list**
url = https://my.server.com/libs/jquery.payment/1.3.2/jquery.payment.min.js
definesSymbol = jQuery.payment

[nodeserver-stripe]
url = https://js.stripe.com/v2/
definesSymbol = Stripe

The output for /home/user/etc/nodeserver-env.json will be:

{
    "jquery-payment": {
                "definesSymbol": "jQuery.payment",
                "requires": [
                        "jquery",
                        "stripe"
                ],
                "url": "https://my.server.com/libs/jquery.payment/1.3.2/jquery.payment.min.js"
        },
        "stripe": {
                "definesSymbol": "Stripe",
                "url": "https://js.stripe.com/v2/"
        }
}

Changes

1.0.0 (2018-02-19)

  • First PyPI release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nti.recipes.json-1.0.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

nti.recipes.json-1.0.0-py2.py3-none-any.whl (7.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nti.recipes.json-1.0.0.tar.gz.

File metadata

File hashes

Hashes for nti.recipes.json-1.0.0.tar.gz
Algorithm Hash digest
SHA256 957f9d5516b8c340a2a2ed9dc3c9849d1dd66ae3ac87a9e9978339000c4a362b
MD5 366d12293b76c5861bbb7f25a902a11a
BLAKE2b-256 9079ae3e063fa886e64837a9f87f48ea52dad7cef9c0691db6a57dcf0e2d8b65

See more details on using hashes here.

File details

Details for the file nti.recipes.json-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for nti.recipes.json-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dd051be9a8cb95b74ac75f58fb183056dc9c9ef8ff69dd869a925b272932df6b
MD5 627dc41209671c29de38e887c93fd8b0
BLAKE2b-256 b9526a59dc8e099c8716839cf571b02b7a2d12f58a762139f8af807147761d45

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page