{ "info": { "author": "Kyle Kimery", "author_email": "kylekimery@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7" ], "description": "# Simplate\r\nPython Simple Object-Based String Templating\r\n\r\n## Usage\r\nFrom formatted strings create re-usable template objects and implementation objects. The Simplate class (Simplate.Simplate)\r\nallows you to dynamically create new Template classes with the string you initialize with, and (optionally) a title\r\nfor the template which becomes the name of your new class. \r\n\r\n```\r\nimport Simplate\r\n\r\nmySimpleTemplate = Simplate.Simplate( \"Hello {friend} how's your {pet}?\", title=\"FriendlyLetter\" )\r\nprint mySimpleTemplate.ImplementationClass\r\n```\r\n```\r\n\r\n```\r\n```\r\nnewLetterToJohn = mySimpleTemplate.implement()\r\ntype(newLetterToJohn)\r\n```\r\n```\r\n\r\n```\r\n```\r\nnewLetterToJohn.friend = \"John\"\r\nnewLetterToJohn.pet = \"cute puppy\"\r\nstr(newLetterToJohn)\r\n```\r\n```\r\n\"Hello John how's your cute puppy?\"\r\n```\r\n\r\nEvery call to Simplate.implement() will return a new instance of the dynamically-created template class, and the parameters\r\non the template string become the instance variables on the new instances of this new template class, while the template\r\nitself is a shared class variable amongst all instances of this template. \r\n\r\nAn optional third argument when initializing a Simplate is \"defaults\", which is what the default values are for the instance\r\nvariables of the template object. By default, defaults is an empty string.\r\n\r\n## Examples\r\n```\r\nimport Simplate\r\nemailString = \"Dear {name}, thank you for your {item}, unfortunately its sold, sincerely {author}.\"\r\nemailTemplate = Simplate.Simplate(emailString, \"EmailToCustomer\")\r\nemailToBob = emailTemplate.implement()\r\nemailToBob.author = \"Kyle Kimery\"\r\nemailToBob.name = \"Bob\"\r\nemailToBob.item = \"Baseball Merchandise\"\r\nprint emailToBob\r\n```\r\n```\r\nDear Bob, thank you for your inquiry regarding Baseball Merchandise, I regret to inform you that it's gone, sincerely Kyle Kimery.\r\n```\r\n\r\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/krkimery/simplate", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "Simplate", "package_url": "https://pypi.org/project/Simplate/", "platform": "", "project_url": "https://pypi.org/project/Simplate/", "project_urls": { "Homepage": "https://github.com/krkimery/simplate" }, "release_url": "https://pypi.org/project/Simplate/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "Simple object-based string templating in python", "version": "1.0.2" }, "last_serial": 5441786, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "76971cee501277af36d7f42bb8a9e580", "sha256": "d70ab4ff035b4e964a888584693ff33b20f080eb0b7d9874b4cc923d193e7617" }, "downloads": -1, "filename": "Simplate-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "76971cee501277af36d7f42bb8a9e580", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2018, "upload_time": "2019-06-22T19:56:31", "url": "https://files.pythonhosted.org/packages/12/f5/6925b2e9355521200735309087a6c9f19f46e9f3ace58a18a19fbb17e7e2/Simplate-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cea3cf54c59c0b72fd32bfb0355702e2", "sha256": "970b30d65648c9a5de5ef91d293387c31eb4283ff24cf0d5e81e64e63b5d881a" }, "downloads": -1, "filename": "Simplate-0.0.1.tar.gz", "has_sig": false, "md5_digest": "cea3cf54c59c0b72fd32bfb0355702e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 963, "upload_time": "2019-06-22T19:56:33", "url": "https://files.pythonhosted.org/packages/4d/f1/2b68c416587bd713fc276b8579b4bc3ea439119e8bc2df5ce07d967237ad/Simplate-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "49f3addeb4b406bfafdabdc85bf9e61f", "sha256": "7f3fda73c171ef2d3ea73b0880f5fad7268ddcb2b0049f40a8cd9fffc8b0af41" }, "downloads": -1, "filename": "Simplate-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "49f3addeb4b406bfafdabdc85bf9e61f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2237, "upload_time": "2019-06-22T23:55:45", "url": "https://files.pythonhosted.org/packages/24/3d/fa4e3a0d2faa590de1d8505e4eb6ce2d31e011a14595516fba83e3816ffe/Simplate-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9d761d233ed051b6bc3958eb29dbece2", "sha256": "c09ee05b82273959cb7b86573766915e2c9254040bb65031e57b01c7d35e3b50" }, "downloads": -1, "filename": "Simplate-0.0.2.tar.gz", "has_sig": false, "md5_digest": "9d761d233ed051b6bc3958eb29dbece2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1233, "upload_time": "2019-06-22T23:55:47", "url": "https://files.pythonhosted.org/packages/4c/b0/196769da1e2a704545d8253a12b927ab8b379e245ebe603e1119f059a735/Simplate-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "13c7b29c0d67be1c8aadadb3bfeb9082", "sha256": "0e30cbe7fd80a619854116562713c1324650dadef7086336e34e6141fbfa5378" }, "downloads": -1, "filename": "Simplate-0.0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "13c7b29c0d67be1c8aadadb3bfeb9082", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 2945, "upload_time": "2019-06-24T16:47:36", "url": "https://files.pythonhosted.org/packages/b0/33/ee83fefb7a2a2cd151323382085e6b472238ab979e2c7f401d8d8f6f2a87/Simplate-0.0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8606b366f1736b6e533ec4a90fcbfdd4", "sha256": "72a399c9d417d5b507e31c0cb159b2adb0e0cfd065ed663012b288b38199a089" }, "downloads": -1, "filename": "Simplate-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8606b366f1736b6e533ec4a90fcbfdd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1643, "upload_time": "2019-06-24T16:47:38", "url": "https://files.pythonhosted.org/packages/74/c5/893c4ba0c2b30fde544c8d9dedba3acf6c1230e3e32fab2060e543b73747/Simplate-0.0.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "db5623050569f488049437835df9f71b", "sha256": "c6bd9fcb9ecd39b008c7f05d7ab3c4d98ab24a781b645ae8611cbbee96bfb5d2" }, "downloads": -1, "filename": "Simplate-1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "db5623050569f488049437835df9f71b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3473, "upload_time": "2019-06-24T17:24:48", "url": "https://files.pythonhosted.org/packages/65/5e/6d7d66c1bc05f9a63f83bf5223e8382face42e192de42046a854caf0f2ba/Simplate-1.0.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf6939a27b0b1f5c6ec5355922970df3", "sha256": "f6ed4d9148647a62f369d0e2c2d043b2fcf6c98c924db4e2d59607c76cb0d06c" }, "downloads": -1, "filename": "Simplate-1.0.0.tar.gz", "has_sig": false, "md5_digest": "cf6939a27b0b1f5c6ec5355922970df3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2247, "upload_time": "2019-06-24T17:24:49", "url": "https://files.pythonhosted.org/packages/fc/2d/c1628fdb9b7179720a706a7f4dd9e19c0bdd0d2c96887a33aeac4f21fe53/Simplate-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "03364aca0e36cf5a455a3078e74e9f24", "sha256": "11c3810a98fd29d43cc00869d39a80328775377a4b24047751f6f4e1320ac0b6" }, "downloads": -1, "filename": "Simplate-1.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "03364aca0e36cf5a455a3078e74e9f24", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3472, "upload_time": "2019-06-24T17:27:43", "url": "https://files.pythonhosted.org/packages/24/6d/d352fd259e3f3a88410cc23b9bc475937e5f2d98524ed92e9c6a2cfd8f28/Simplate-1.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "17bf4c351b620decbee827a0abea062f", "sha256": "70f713033db6160dfe0db1797f7dbbda72ddc1f3f713f0e5a7bfa24aa1b9e30d" }, "downloads": -1, "filename": "Simplate-1.0.1.tar.gz", "has_sig": false, "md5_digest": "17bf4c351b620decbee827a0abea062f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2251, "upload_time": "2019-06-24T17:27:44", "url": "https://files.pythonhosted.org/packages/68/5b/ab86277425fa6f17ae86aedb464fcdffa18ab3fc6dd03858b80eaa564329/Simplate-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "fa2375475e23be14afa32b106e79f44a", "sha256": "2b90bae1ca598b26316c36bd3ded89a0fd31cd52cc5aaf446b3fa64e781165e1" }, "downloads": -1, "filename": "Simplate-1.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "fa2375475e23be14afa32b106e79f44a", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3468, "upload_time": "2019-06-24T17:33:47", "url": "https://files.pythonhosted.org/packages/7e/4d/c8b4a9893e1b687743280856e7c3d645b0f98c1a8b44a9c8422eb43259fa/Simplate-1.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dd9c7b1f8214f328e2b013f63fe04b83", "sha256": "34d3c5aebefef17d9c5344140c43bfda5b76e7a41236ab19624b3dfe47f3d990" }, "downloads": -1, "filename": "Simplate-1.0.2.tar.gz", "has_sig": false, "md5_digest": "dd9c7b1f8214f328e2b013f63fe04b83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2249, "upload_time": "2019-06-24T17:33:48", "url": "https://files.pythonhosted.org/packages/8e/0e/30187dacdc674e1f618cf7f180f650f9c751dd25f609466485231a86a3d5/Simplate-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fa2375475e23be14afa32b106e79f44a", "sha256": "2b90bae1ca598b26316c36bd3ded89a0fd31cd52cc5aaf446b3fa64e781165e1" }, "downloads": -1, "filename": "Simplate-1.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "fa2375475e23be14afa32b106e79f44a", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3468, "upload_time": "2019-06-24T17:33:47", "url": "https://files.pythonhosted.org/packages/7e/4d/c8b4a9893e1b687743280856e7c3d645b0f98c1a8b44a9c8422eb43259fa/Simplate-1.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dd9c7b1f8214f328e2b013f63fe04b83", "sha256": "34d3c5aebefef17d9c5344140c43bfda5b76e7a41236ab19624b3dfe47f3d990" }, "downloads": -1, "filename": "Simplate-1.0.2.tar.gz", "has_sig": false, "md5_digest": "dd9c7b1f8214f328e2b013f63fe04b83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2249, "upload_time": "2019-06-24T17:33:48", "url": "https://files.pythonhosted.org/packages/8e/0e/30187dacdc674e1f618cf7f180f650f9c751dd25f609466485231a86a3d5/Simplate-1.0.2.tar.gz" } ] }