{ "info": { "author": "Daniel Foote", "author_email": "freefoote@paasmaker.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Other Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Paasmaker Python Interface Library\n==================================\n\nThis is a simple Python library that is designed to read in the Paasmaker\nconfiguration of the container, falling back to a custom configuration\nfile in development.\n\nYou can read more about the Paasmaker PaaS at\n`http://paasmaker.org/ `_.\n\nUsage\n-----\n\nIn the startup of your application create an interface object. Supply the\nconstructor with a list of locations to look for override configuration\nfiles for development. You won't need override configuration files if you\nare using the development directory SCM in Paasmaker.\n\n.. code-block:: python\n\n\timport pminterface\n\n\tinterface = pminterface.PaasmakerInterface(['../my-project.yml'])\n\n\tinterface.is_on_paasmaker() # Returns true if on Paasmaker.\n\n\t# Raises NameError if no such service exists.\n\tservice = interface.get_service('named-service')\n\t# service now is a dict of the parameters. Typically this will\n\t# have the keys 'hostname', 'username', 'password', etc. Use this\n\t# to connect to revelant services.\n\n\t# Get other application metadata.\n\tapplication = interface.get_application_name()\n\nOverride configuration files can be in either YAML or JSON format. If using\nthe YAML format, be sure to install ``pyyaml`` first. If ``pyyaml`` isn't present,\nonly the JSON format is supported, and it will raise an exception when\ntrying to read YAML files.\n\nExample YAML configuration file:\n\n.. code-block:: yaml\n\n\tservices:\n\t parameters:\n\t foo: bar\n\n\tapplication:\n\t name: test\n\t version: 1\n\t workspace: Test\n\t workspace_stub: test\n\nExample JSON configuration file:\n\n.. code-block:: json\n\n\t{\n\t\t\"services\": {\n\t\t\t\"parameters\": {\n\t\t\t\t\"foo\": \"bar\"\n\t\t\t}\n\t\t},\n\t\t\"application\": {\n\t\t\t\"name\": \"test\",\n\t\t\t\"version\": 1,\n\t\t\t\"workspace\": \"Test\",\n\t\t\t\"workspace_stub\": \"test\"\n\t\t}\n\t}\n\nDevelopment\n-----------\n\nYou can run the unit tests with the ``test.py`` script in the\nroot directory.\n\nThe code is currently stored on BitBucket at:\n\ngit@bitbucket.org:paasmaker/paasmaker-interface-python.git\n\nFeel free to fork and submit pull requests.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://paasmaker.org", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "pminterface", "package_url": "https://pypi.org/project/pminterface/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pminterface/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://paasmaker.org" }, "release_url": "https://pypi.org/project/pminterface/0.9/", "requires_dist": null, "requires_python": null, "summary": "Paasmaker Python interface library", "version": "0.9" }, "last_serial": 722960, "releases": { "0.9": [ { "comment_text": "", "digests": { "md5": "36252bda30ef0719b31c940e2e5422ec", "sha256": "b96afa419c2bbb3d34d27754633121b3dc4cb2a0c0a51bc44f6d6d2c2c819582" }, "downloads": -1, "filename": "pminterface-0.9.tar.gz", "has_sig": false, "md5_digest": "36252bda30ef0719b31c940e2e5422ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4296, "upload_time": "2013-03-08T05:57:30", "url": "https://files.pythonhosted.org/packages/0a/74/6e25e521cdfeb7ac79c59711fdfca677c0b890a73f1dc92deffeab52395c/pminterface-0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "36252bda30ef0719b31c940e2e5422ec", "sha256": "b96afa419c2bbb3d34d27754633121b3dc4cb2a0c0a51bc44f6d6d2c2c819582" }, "downloads": -1, "filename": "pminterface-0.9.tar.gz", "has_sig": false, "md5_digest": "36252bda30ef0719b31c940e2e5422ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4296, "upload_time": "2013-03-08T05:57:30", "url": "https://files.pythonhosted.org/packages/0a/74/6e25e521cdfeb7ac79c59711fdfca677c0b890a73f1dc92deffeab52395c/pminterface-0.9.tar.gz" } ] }