{ "info": { "author": "TakesxiSximada", "author_email": "sximada+syaml@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development" ], "description": "syaml - YAML parser that environment variable is expanded\n=========================================================\n\n.. image:: https://travis-ci.org/TakesxiSximada/syaml.svg?branch=master\n :target: https://travis-ci.org/TakesxiSximada/syaml\n :alt: TravisCI Status\n\n.. image:: https://circleci.com/gh/TakesxiSximada/syaml/tree/master.svg?style=svg\n :target: https://circleci.com/gh/TakesxiSximada/syaml/tree/master\n :alt: CircleCI Status\n\n.. image:: https://drone.io/github.com/TakesxiSximada/syaml/status.png\n :target: https://drone.io/github.com/TakesxiSximada/syaml/status.png\n :alt: drone.io Status\n\n.. image:: https://requires.io/github/TakesxiSximada/syaml/requirements.svg?branch=master\n :target: https://requires.io/github/TakesxiSximada/syaml/requirements/?branch=master\n :alt: Requirements Status\n\nInstall\n-------\n\n::\n\n $ pip install syaml\n\nHow to use it\n-------------\n\nA syaml is YAML parser that environment variable is expanded.\nIt can use the `path`, `name`, `here` and environment variable in YAML file.\nIt described in syntax of mako template. See http://www.makotemplates.org/ .\n\nA `path` is absolute path to YAML file, and `name` is file name of YAML file,\nand `here` is absolute directory path the YAML file stored.\n\nFor example.\n\n/path/to/test.yaml::\n\n - ${here}\n - ${name}\n - ${path}\n\nThe above file is equivalent to the following a file. ::\n\n - /path/to/\n - test.yaml\n - /path/to/test.yaml\n\nAnd, it can use environment variable in YAML file too.\n\n/path/to/test.yaml::\n\n - email: ${EMAIL}\n\nIf `test@example.com` the environment variable `EMAIL` is set, the above file is equivalent to the following a file. ::\n\n - email: test@example.com\n\nLoad file and Load string\n^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nExample file /path/to/syaml/example.yml::\n\n general:\n - ${here}\n - ${name}\n - ${path}\n\nLoad file object::\n\n >>> import syaml\n >>> with open('example.yml', 'rb') as fp:\n ... syaml.load(fp)\n ...\n {'general': ['/path/to/syaml', 'example.yml', '/path/to/syaml/example.yml']}\n\nLoad byte string object::\n\n >>> syaml.loads(b'general:\\n - ${here}\\n - ${name}\\n - ${path}\\n')\n {'general': ['', '', '']}\n\nLoad string object::\n\n >>> syaml.loads('general:\\n - ${here}\\n - ${name}\\n - ${path}\\n')\n {'general': ['', '', '']}\n >>>\n\n`name` and `path` and `here` will replace to empty string If you passed a string to syaml.loads function.\nThey are for a file object. A string like object don't have file path.\n\n\nUse command line tool\n^^^^^^^^^^^^^^^^^^^^^^\n\nsyaml render\n~~~~~~~~~~~~\n\nIt render the SAYML file.\n\nexample.yml::\n\n general:\n - ${here}\n - ${name}\n - ${path}\n\nExecute syaml render command::\n\n $ syaml render example.yml\n general:\n - /path/to/syaml\n - example.yml\n - /path/to/syaml/example.yml\n\nExecute syaml render command json style::\n\n $ syaml render example.yml --json\n {\"general\": [\"/path/to/syaml\", \"example.yml\", \"/path/to/syaml/example.yml\"]}\n\nExecute syaml render command pre process only::\n\n $ syaml render example.yml --pre\n general:\n - /path/to/syaml\n - example.yml\n - /path/to/syaml/example.yml\n\nOther\n-----\n\n- PyPI: https://pypi.python.org/pypi/syaml\n- Github: https://github.com/TakesxiSximada/syaml\n- CircleCI: https://circleci.com/gh/TakesxiSximada/syaml/\n- drone.io: https://drone.io/github.com/TakesxiSximada/syaml\n- coveralls: https://coveralls.io/github/TakesxiSximada/syaml/\n- requires.io: https://requires.io/github/TakesxiSximada/syaml/requirements/\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/TakesxiSximada/syaml", "keywords": "YAML", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "syaml", "package_url": "https://pypi.org/project/syaml/", "platform": "any", "project_url": "https://pypi.org/project/syaml/", "project_urls": { "Homepage": "https://github.com/TakesxiSximada/syaml" }, "release_url": "https://pypi.org/project/syaml/1.2/", "requires_dist": [ "PyYAML", "jumon", "mako", "six", "zope.component", "zope.interface" ], "requires_python": "", "summary": "YAML parser that environment variable is expanded", "version": "1.2" }, "last_serial": 3511384, "releases": { "0.1.dev0": [], "1.0": [ { "comment_text": "", "digests": { "md5": "ab5a0c02b9e536408066f1c91ae21f55", "sha256": "9505bdfd2935b90ce233b8e62ece44a6218039e7c39212cb047010020cc2a6d8" }, "downloads": -1, "filename": "syaml-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ab5a0c02b9e536408066f1c91ae21f55", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7288, "upload_time": "2016-06-15T04:34:31", "url": "https://files.pythonhosted.org/packages/14/ea/ab21ed8c0d574616058c08da153b618f5847f5a95a9494307fdcbdaf3b09/syaml-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a7c962fefea1a4ad3890e4b55fa71b81", "sha256": "34663d04193c9c11079fcf57e4f0fed37314c10b7e41fdab15936848c9d54647" }, "downloads": -1, "filename": "syaml-1.0.tar.gz", "has_sig": false, "md5_digest": "a7c962fefea1a4ad3890e4b55fa71b81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4563, "upload_time": "2016-06-15T04:34:05", "url": "https://files.pythonhosted.org/packages/4b/9c/15a60c513f40fc62974d550d3ba3e42807ddc76cf8aae1e4e1b6c65ac08d/syaml-1.0.tar.gz" } ], "1.0.post1": [ { "comment_text": "", "digests": { "md5": "3adb08e9013b175a53e72cdbdc382b38", "sha256": "dd282e587025ff4e2d6e8aa0f05b9e878a260a9c41b6a456039ff83e38294b90" }, "downloads": -1, "filename": "syaml-1.0.post1-py3-none-any.whl", "has_sig": false, "md5_digest": "3adb08e9013b175a53e72cdbdc382b38", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7411, "upload_time": "2016-06-15T04:37:31", "url": "https://files.pythonhosted.org/packages/00/3d/c1bb2780ef9fcfbd301f8e4d7cd609034aa399d95fb0da2a8b9cedabea23/syaml-1.0.post1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2f8d932b3540addeea9f6b81d1fcc5db", "sha256": "89389c8372874e68c624b4ef67f9117a399d25030f2e996d2f5cff4137de42e2" }, "downloads": -1, "filename": "syaml-1.0.post1.tar.gz", "has_sig": false, "md5_digest": "2f8d932b3540addeea9f6b81d1fcc5db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4581, "upload_time": "2016-06-15T04:37:03", "url": "https://files.pythonhosted.org/packages/6f/36/91ab75cfd5062ebf9d66a34a90347c876461dd831ce01bd3d87d6e5361d5/syaml-1.0.post1.tar.gz" } ], "1.0rc2": [ { "comment_text": "", "digests": { "md5": "aee73d2ba851655c0b21a1582ca43a0b", "sha256": "2869cc7bec26179edaa2e6663b589f510b3f6039b1ecb13f2583a4dde9422c63" }, "downloads": -1, "filename": "syaml-1.0rc2.tar.gz", "has_sig": false, "md5_digest": "aee73d2ba851655c0b21a1582ca43a0b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4568, "upload_time": "2016-06-15T03:09:40", "url": "https://files.pythonhosted.org/packages/19/92/38dcc161f0e8908e1b1efabf5864a60847aff834afae54be28f7a7946f40/syaml-1.0rc2.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "2d2e1625a0e629516a594e3e525acc9c", "sha256": "2d11ffcf8afe3922fd84993b315ae44db928a7fca8c53cec230eeb985d0c16d1" }, "downloads": -1, "filename": "syaml-1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "2d2e1625a0e629516a594e3e525acc9c", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7682, "upload_time": "2016-06-15T06:19:41", "url": "https://files.pythonhosted.org/packages/d2/2f/254f2a92b3e8dcbacf1c82c4d09efc2df339adb241a9d04a3a808a4b80d2/syaml-1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bb8a2c88c0fe99c650f564114dc725bc", "sha256": "52795e23befdd446f922570f5b7efc883d418ac8d1a98b19ee9ac0ff6c3bf08f" }, "downloads": -1, "filename": "syaml-1.1.tar.gz", "has_sig": false, "md5_digest": "bb8a2c88c0fe99c650f564114dc725bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5269, "upload_time": "2016-06-15T06:15:22", "url": "https://files.pythonhosted.org/packages/99/a4/2813570c1c1e4ed277ad7a61c8ab51b04d0699140312ffc2a570fa3b62d8/syaml-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "a5982a42f6aae52ce8b24dc12d760618", "sha256": "f5d06c04556f8a1920bb8874ae3dd9fb5aa64ab8986d5e4a30354943b6c13e4c" }, "downloads": -1, "filename": "syaml-1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a5982a42f6aae52ce8b24dc12d760618", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8956, "upload_time": "2018-01-22T14:47:56", "url": "https://files.pythonhosted.org/packages/57/d5/baf2dbfef397539dfd2fe84f6dc202ccfcf7276c734d0b0cb426ed188425/syaml-1.2-py3-none-any.whl" } ], "1.2.dev0": [ { "comment_text": "", "digests": { "md5": "466f0a8379d809e8a4a6b5354b111645", "sha256": "968bf63c755d4ead7ecd49e1d5b8b6d271021c1d788b2901734a765d84d7aa99" }, "downloads": -1, "filename": "syaml-1.2.dev0-py3-none-any.whl", "has_sig": false, "md5_digest": "466f0a8379d809e8a4a6b5354b111645", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9001, "upload_time": "2016-07-19T12:03:45", "url": "https://files.pythonhosted.org/packages/6f/69/59a02ac3898a82f0aac7448b737cbf7fd0428d3db20cb57b46519b27a6f1/syaml-1.2.dev0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ed33770e60aa24f3e62cde22f4c9d94", "sha256": "607693b83c0bc58baf728335fec0a01167450fdfd50a3e622b09a64d32a6d9f2" }, "downloads": -1, "filename": "syaml-1.2.dev0.tar.gz", "has_sig": false, "md5_digest": "0ed33770e60aa24f3e62cde22f4c9d94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6109, "upload_time": "2016-07-19T12:03:48", "url": "https://files.pythonhosted.org/packages/f8/5d/b97aa329ba0fd16df2a0df823f11669be234a2b78838b2455d62c4849dfd/syaml-1.2.dev0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a5982a42f6aae52ce8b24dc12d760618", "sha256": "f5d06c04556f8a1920bb8874ae3dd9fb5aa64ab8986d5e4a30354943b6c13e4c" }, "downloads": -1, "filename": "syaml-1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a5982a42f6aae52ce8b24dc12d760618", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8956, "upload_time": "2018-01-22T14:47:56", "url": "https://files.pythonhosted.org/packages/57/d5/baf2dbfef397539dfd2fe84f6dc202ccfcf7276c734d0b0cb426ed188425/syaml-1.2-py3-none-any.whl" } ] }