{ "info": { "author": "Vladislav Belov", "author_email": "vladislavbelovdev@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha" ], "description": "===========\r\nPGen v0.2.1\r\n===========\r\n\r\nPGen provides generating of data and tests with given\r\nformat (numbers, string, graphs, etc).\r\nPGEN IS STILL IN ACTIVE DEVELOPMENT AND CONTAINS\r\nBUGS. If you find a bug please file a report in the\r\n`issues section `_.\r\n\r\nFeatures:\r\n+++++++++\r\n\r\n- Input format is JSON-text or object\r\n- Unlimited depth of data\r\n- Pure python without dependencies\r\n- Basic types generation (int, double, string)\r\n- Generation of complex types (graph, tree, container)\r\n\r\nInstallation:\r\n+++++++++++++\r\n\r\n::\r\n\r\n pip install PGen\r\n\r\nDocumentation:\r\n++++++++++++++\r\n\r\nBasic types:\r\n\r\n- int\r\n- double\r\n- string\r\n\r\nComplex types:\r\n\r\n- pair\r\n- container\r\n- array\r\n- tree\r\n- graph\r\n\r\nWill be extended soon...\r\n\r\nExamples:\r\n+++++++++\r\n\r\nTypical usage often looks like this::\r\n\r\n #!/usr/bin/env python\r\n\r\n from pgen.generator import Generator\r\n\r\n data_description = {\r\n 'seed': 42,\r\n 'count': 3,\r\n 'format': {\r\n 'name': 'N',\r\n 'type': 'int',\r\n 'from': 10,\r\n 'to': 100\r\n },\r\n 'output': {\r\n 'type': 'file',\r\n 'format': 'tests/{0:03d}.dat',\r\n 'start_index': 3\r\n }\r\n }\r\n\r\n generator = Generator(data_description)\r\n generator.write()\r\n\r\nUsing variable name::\r\n\r\n #!/usr/bin/env python\r\n\r\n from pgen.generator import Generator\r\n\r\n data_description = {\r\n 'seed': 42,\r\n 'count': 3,\r\n 'format': {\r\n 'type': 'container',\r\n 'elements': [\r\n {'name': 'n', 'type': 'int', 'from': 3, 'to': 15},\r\n {\r\n 'type': 'array', 'length': 'n', 'subelement': {\r\n 'type': 'int',\r\n 'from': 0,\r\n 'to': 1\r\n }\r\n }\r\n ]\r\n },\r\n 'output': {\r\n 'type': 'file',\r\n 'format': 'tests/y_{0:03d}.dat',\r\n 'start_index': 3\r\n }\r\n }\r\n\r\n generator = Generator(data_description)\r\n generator.write()\r\n\r\nString patterns::\r\n\r\n #!/usr/bin/env python\r\n\r\n from pgen.generator import Generator\r\n\r\n data_description = {\r\n 'seed': 42,\r\n 'count': 3,\r\n 'format': {\r\n 'type': 'string',\r\n 'length': 32,\r\n 'patterns': ['A-B', 'a-b']\r\n },\r\n 'output': {\r\n 'type': 'file',\r\n 'format': 'test/{0:03d}_out.dat',\r\n 'start_index': 3\r\n }\r\n }\r\n\r\n generator = Generator(data_description)\r\n generator.write()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/PGen/", "keywords": "", "license": "LICENSE.txt", "maintainer": "", "maintainer_email": "", "name": "PGen", "package_url": "https://pypi.org/project/PGen/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/PGen/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/PGen/" }, "release_url": "https://pypi.org/project/PGen/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "Useful tool to generate data & tests", "version": "0.2.1" }, "last_serial": 1877017, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "89386870099a8fd0d254c3ed95fda314", "sha256": "4c67c909a3d955bf7212116fd856a24daac6b5d02c6bd335d1fb4f61b256880c" }, "downloads": -1, "filename": "PGen-0.1.zip", "has_sig": false, "md5_digest": "89386870099a8fd0d254c3ed95fda314", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17487, "upload_time": "2015-12-24T20:40:59", "url": "https://files.pythonhosted.org/packages/22/40/5882f0dfb4aa5836eb62291264ddce110c2d9bff38715c7d33eeef80321e/PGen-0.1.zip" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "57afd64756e52f4ffd00170d0b7e1ad7", "sha256": "e6727665d15cbf80039b7e7b33fe8ddc007c5dbf74c35e0c96b455e9721ca02e" }, "downloads": -1, "filename": "PGen-0.2.zip", "has_sig": false, "md5_digest": "57afd64756e52f4ffd00170d0b7e1ad7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17497, "upload_time": "2015-12-24T21:17:15", "url": "https://files.pythonhosted.org/packages/c5/78/c70afa1bb8f7061bc48585920c57a8a8634674dfebb23f786abd287d4752/PGen-0.2.zip" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "4d1f9177e5b1fb8bab01edcb7ed1867e", "sha256": "f71b6a0f6c51c518e6ce2295f19b82f9687bfceb6f9f9be4376203ee4afdf90c" }, "downloads": -1, "filename": "PGen-0.2.1.zip", "has_sig": false, "md5_digest": "4d1f9177e5b1fb8bab01edcb7ed1867e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18618, "upload_time": "2015-12-25T00:20:40", "url": "https://files.pythonhosted.org/packages/3c/68/3cd7faa8bc9b060eea452c5d6f27919dfb664cc4d1259998718a2360e05c/PGen-0.2.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4d1f9177e5b1fb8bab01edcb7ed1867e", "sha256": "f71b6a0f6c51c518e6ce2295f19b82f9687bfceb6f9f9be4376203ee4afdf90c" }, "downloads": -1, "filename": "PGen-0.2.1.zip", "has_sig": false, "md5_digest": "4d1f9177e5b1fb8bab01edcb7ed1867e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18618, "upload_time": "2015-12-25T00:20:40", "url": "https://files.pythonhosted.org/packages/3c/68/3cd7faa8bc9b060eea452c5d6f27919dfb664cc4d1259998718a2360e05c/PGen-0.2.1.zip" } ] }