semvec/pypi-packages huggingface dataset:
nti.recipes.json 1.0.0
zc.buildout recipe that programatically creates JSON files
License: Apache
Keywords: buildout json

==================
 nti.recipes.json
==================

.. image:: https://travis-ci.org/NextThought/nti.recipes.json.svg?branch=master
    :target: https://travis-ci.org/NextThought/nti.recipes.json

.. image:: https://coveralls.io/repos/github/NextThought/nti.recipes.json/badge.svg?branch=master
    :target: https://coveralls.io/github/NextThought/nti.recipes.json?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.
minicloudstack 1.1.4
Minimal CloudStack Access Library and Utilities
License: Apache
Keywords: cloudstack

minicloudstack
==============

Makes it easy to connect to Apache `CloudStack`_.  Tested with version 4.2 and later.

.. _CloudStack: https://cloudstack.apache.org/

Includes helper scripts to work with zones and hosts and helps you get started with your own scripts.

Alternatives
------------
This library makes it easy to create quick utilities for Operational and Development purposes.
For an interactive shell you should try `cloudmonkey`_ or shell scripting you can try `cs`_.

.. _cloudmonkey: https://pypi.python.org/pypi/cloudmonkey/
.. _cs: https://pypi.python.org/pypi/cs

Installation
------------

    pip install minicloudstack


Quickstart
----------
Export the following environment variables (alternatively arguments can be used):

.. code:: bash

    export CS_API_URL="http://mycloudstackapi.example.com/"
    export CS_API_KEY="1235..."
    export CS_SECRET_KEY="abcdef..."


Start your python shell (python or ipython).

.. code:: python

    import minicloudstack
    mcs = minicloudstack.MiniCloudStack()
    for template in mcs.list("templates", templatefilter="featured"):
        print template.id, template.name


Helper scripts
--------------
Also provided are the following scripts that can be useful:

.. code:: bash

    mcs-createzone
    mcs-deletezone
    mcs-registertemplate
    mcs-addhost
    mcs-volume
    minicloudstack

Start them with --help for detailed instructions.


Background
----------
These scripts were created by `Greenqloud`_ when developing `Qstack`_.

.. _Greenqloud: https://www.greenqloud.com/
.. _Qstack: https://qstack.com/

We hope you find them useful!

Greenqloud Dev Team.