Skip to main content

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.

Release files for nti.recipes.json 1.0.0

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

Source distribution (sdist)

Source distribution for nti.recipes.json 1.0.0
File Size Uploaded
nti.recipes.json-1.0.0.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nti.recipes.json 1.0.0
File Interpreter ABI Platform
nti.recipes.json-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 13.0 kB

Release files / nti.recipes.json-1.0.0.tar.gz

Download URL nti.recipes.json-1.0.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
957f9d5516b8c340a2a2ed9dc3c9849d1dd66ae3ac87a9e9978339000c4a362b
BLAKE2b-256 checksum
How to use checksums
9079ae3e063fa886e64837a9f87f48ea52dad7cef9c0691db6a57dcf0e2d8b65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / nti.recipes.json-1.0.0-py2.py3-none-any.whl

Download URL nti.recipes.json-1.0.0-py2.py3-none-any.whl
Size 7.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
dd051be9a8cb95b74ac75f58fb183056dc9c9ef8ff69dd869a925b272932df6b
BLAKE2b-256 checksum
How to use checksums
b9526a59dc8e099c8716839cf571b02b7a2d12f58a762139f8af807147761d45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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