{ "info": { "author": "podhmo", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: Implementation :: CPython" ], "description": "filegen\n========================================\n\n.. code-block:: python\n\n fg = Filegen()\n with fg.dir(\"foo\"):\n with fg.file(\"hello.txt\") as wf:\n wf.write(\"hello\")\n\n with fg.dir(\"bar\"):\n with fg.file(\"x\") as wf:\n wf.write(\"x\")\n\n with fg.file(\"bye.txt\") as wf:\n wf.write(\"bye\")\n\n fg.to_python_module()\n\n\ngenerated files ::\n\n foo/\n \u251c\u2500\u2500 __init__.py\n \u251c\u2500\u2500 bar\n \u2502 \u251c\u2500\u2500 __init__.py\n \u2502 \u2514\u2500\u2500 x\n \u251c\u2500\u2500 bye.txt\n \u2514\u2500\u2500 hello.txt\n\nmaking file-structure generating application\n----------------------------------------\n\nUsing `FilegenApplication` for creating file structure generating command.\nWriting a script file such as below.\n\n.. code-block:: python\n\n # myscript.py\n if __name__ == \"__main__\":\n from filegen import Filegen, FilegenApplication\n\n fg = Filegen()\n with fg.dir(\"foo\"):\n with fg.file(\"bar.py\") as wf:\n wf.write(\"# this is comment file\")\n with fg.file(\"readme.txt\") as wf:\n wf.write(\"# foo\")\n FilegenApplication().run(fg)\n\nthen.\n\n.. code-block:: shell\n\n $ python myscript.py --action=string /tmp\n d:/tmp\n d:/tmp/foo\n f:/tmp/foo/bar.py\n # this is comment file\n d:/tmp/foo\n f:/tmp/foo/readme.txt\n # foo\n\n $ python myscript.py --action=string /foo/bar\n d:/foo/bar\n d:/foo/bar/foo\n f:/foo/bar/foo/bar.py\n # this is comment file\n d:/foo/bar/foo\n f:/foo/bar/foo/readme.txt\n # foo", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/podhmo/filegen", "keywords": "filegen,file generation,scaffold", "license": "mit", "maintainer": null, "maintainer_email": null, "name": "filegen", "package_url": "https://pypi.org/project/filegen/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/filegen/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/podhmo/filegen" }, "release_url": "https://pypi.org/project/filegen/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "file structure generator with onefile script", "version": "0.2.1" }, "last_serial": 2126502, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "bbdc9fc0e70a227ac2fde4eb95538933", "sha256": "d768b28dd97d8964a026c8e37b655f6f786d3fd3e763d58061f88f6e55d86499" }, "downloads": -1, "filename": "filegen-0.1.tar.gz", "has_sig": false, "md5_digest": "bbdc9fc0e70a227ac2fde4eb95538933", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2961, "upload_time": "2015-02-22T07:29:46", "url": "https://files.pythonhosted.org/packages/dd/de/790927edd1c023b5e162eecd82bb934dca9c2c0d366eb933e591b0ee1acb/filegen-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "1c8641b0d931a9adef512e1be56a8dbf", "sha256": "bf5b33dc40ae334e517801a86f110e161ba3d0d4b630d76a2d62c16b4f2372cc" }, "downloads": -1, "filename": "filegen-0.1.1.tar.gz", "has_sig": false, "md5_digest": "1c8641b0d931a9adef512e1be56a8dbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2999, "upload_time": "2015-02-22T07:50:18", "url": "https://files.pythonhosted.org/packages/5b/f7/d267ff693add8a946e96afb747c510005f61e6bcc66b11d7c73a86fc2043/filegen-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a7cb8de9450b45e31d68459189bf6c74", "sha256": "76275b2c550fd62fc5abb4c7dbdc5824b9d0b1f5d5bd0b9519c400c2b0fb17d0" }, "downloads": -1, "filename": "filegen-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a7cb8de9450b45e31d68459189bf6c74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3004, "upload_time": "2015-02-22T14:40:52", "url": "https://files.pythonhosted.org/packages/b9/c5/ca3748e4e5bb30c07c373c9e0f523ab268b0c138de1c7d5044af891837fa/filegen-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "63f48b17e5216bea9ec28159590c18df", "sha256": "0e01b3d0f43e0188b41d79c5082773fd098f5dea032b6c1ad2b02fecca481e7a" }, "downloads": -1, "filename": "filegen-0.1.3.tar.gz", "has_sig": false, "md5_digest": "63f48b17e5216bea9ec28159590c18df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3002, "upload_time": "2015-02-22T15:04:16", "url": "https://files.pythonhosted.org/packages/3f/35/033fb8e91578d62e49c1158b307a04b95a357ad92afc91cf205d3777a5b8/filegen-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "73c002b973abb6de01b32761d48dab68", "sha256": "168cd4097a132da41ffad9076af83723727abdf5576771ee2a6c9cac822cb5e0" }, "downloads": -1, "filename": "filegen-0.1.4.tar.gz", "has_sig": false, "md5_digest": "73c002b973abb6de01b32761d48dab68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3048, "upload_time": "2015-02-23T11:56:50", "url": "https://files.pythonhosted.org/packages/00/7b/fac77cc73196a717c5b0e95260233aa6ae061a92a2323582444ba6d3eadb/filegen-0.1.4.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "f43552af99311a01a9e201182a73deb6", "sha256": "41962f2a78e3b81e61fabae9f13566240273ca975bfea3aba5748d933008f917" }, "downloads": -1, "filename": "filegen-0.2.0.tar.gz", "has_sig": false, "md5_digest": "f43552af99311a01a9e201182a73deb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14407, "upload_time": "2015-03-11T14:39:07", "url": "https://files.pythonhosted.org/packages/fd/39/ed87610dc0198b21b92029347a78505f6bc442997390df3aef6658d60900/filegen-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "42022c9643f737976044f4375dede732", "sha256": "d65d36b8896e1a29800af5060ef6cd4b75ea8a93e751908de221a19f089ba938" }, "downloads": -1, "filename": "filegen-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "42022c9643f737976044f4375dede732", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 15544, "upload_time": "2016-05-21T09:56:28", "url": "https://files.pythonhosted.org/packages/02/2e/4959e582cbdde46ec2fbe4ca0b77f492e9dda2ee140e856696c17418db73/filegen-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "35551ec35e5fb9632ede6ce24cadbbf4", "sha256": "ff7425a6322e5d7cb4d221e1d543dca6973fbca11a1b35e09221afc96218b2d9" }, "downloads": -1, "filename": "filegen-0.2.1.tar.gz", "has_sig": false, "md5_digest": "35551ec35e5fb9632ede6ce24cadbbf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10975, "upload_time": "2016-05-21T09:56:19", "url": "https://files.pythonhosted.org/packages/fc/cb/f6b2b13b08afb291e8603e31724510cfb9935d3d017eaa4adc908eb90e4b/filegen-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "42022c9643f737976044f4375dede732", "sha256": "d65d36b8896e1a29800af5060ef6cd4b75ea8a93e751908de221a19f089ba938" }, "downloads": -1, "filename": "filegen-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "42022c9643f737976044f4375dede732", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 15544, "upload_time": "2016-05-21T09:56:28", "url": "https://files.pythonhosted.org/packages/02/2e/4959e582cbdde46ec2fbe4ca0b77f492e9dda2ee140e856696c17418db73/filegen-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "35551ec35e5fb9632ede6ce24cadbbf4", "sha256": "ff7425a6322e5d7cb4d221e1d543dca6973fbca11a1b35e09221afc96218b2d9" }, "downloads": -1, "filename": "filegen-0.2.1.tar.gz", "has_sig": false, "md5_digest": "35551ec35e5fb9632ede6ce24cadbbf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10975, "upload_time": "2016-05-21T09:56:19", "url": "https://files.pythonhosted.org/packages/fc/cb/f6b2b13b08afb291e8603e31724510cfb9935d3d017eaa4adc908eb90e4b/filegen-0.2.1.tar.gz" } ] }