{ "info": { "author": "Tsuyoshi Hombashi", "author_email": "tsuyoshi.hombashi@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing" ], "description": ".. contents:: **tblfaker**\n :backlinks: top\n :depth: 2\n\n\nSummary\n============================================\ntblfaker is a Python library to generate fake tabular data.\n\n.. image:: https://badge.fury.io/py/tblfaker.svg\n :target: https://badge.fury.io/py/tblfaker\n :alt: PyPI package version\n\n.. image:: https://img.shields.io/pypi/pyversions/tblfaker.svg\n :target: https://pypi.org/project/tblfaker\n :alt: Supported Python versions\n\n.. image:: https://img.shields.io/travis/thombashi/tblfaker/master.svg?label=Linux/macOS%20CI\n :target: https://travis-ci.org/thombashi/tblfaker\n :alt: Linux/macOS CI status\n\n.. image:: https://img.shields.io/appveyor/ci/thombashi/tblfaker/master.svg?label=Windows%20CI\n :target: https://ci.appveyor.com/project/thombashi/tblfaker/branch/master\n :alt: Windows CI status\n\n.. image:: https://coveralls.io/repos/github/thombashi/tblfaker/badge.svg?branch=master\n :target: https://coveralls.io/github/thombashi/tblfaker?branch=master\n :alt: Test coverage\n\n\nUsage\n============================================\n\nBasic Usage\n--------------------------------------------\n\nGenerate tabular data at random\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n:Sample Code:\n .. code-block:: python\n\n from tblfaker import TableFaker\n\n faker = TableFaker()\n\n print(\"[1]\")\n for row in faker.generate([\"name\", \"address\"], rows=4).as_tuple():\n print(row)\n\n print(\"\\n[2]\")\n for row in faker.generate([\"name\", \"address\"], rows=4).as_tuple():\n print(row)\n\n:Output:\n .. code-block::\n\n [1]\n Row(name='Jonathan Hendrix', address='368 Melanie Inlet Suite 890\\nLake Stephanie, MT 17441')\n Row(name='Kristina Simmons', address='3867 Perry Alley Suite 957\\nLindafurt, FL 12507')\n Row(name='Rebecca Velasquez', address='107 Karla Forges Apt. 925\\nEast Jonathan, NC 85462')\n Row(name='Jordan Morris', address='6341 Jessica Walks\\nReynoldsshire, MD 05131')\n\n [2]\n Row(name='Caitlin Bush', address='87380 Barbara Haven Suite 042\\nHutchinsonburgh, IA 39544')\n Row(name='Jennifer King', address='39729 Gray Inlet Apt. 693\\nPort Peter, AL 80733')\n Row(name='Stephanie Smith', address='256 Emily Street\\nCooperhaven, MS 70299')\n Row(name='Nicholas Miller', address='59845 Daniel Ford Suite 729\\nDamontown, UT 19811\n\n\nReproduce same tabular data\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nFake tabular data can reproduce by passing the same ``seed`` value to ``TableFaker`` constructor.\n\n:Sample Code:\n .. code-block:: python\n\n from tblfaker import TableFaker\n\n seed = 1\n\n print(\"[1]\")\n faker = TableFaker(seed=seed)\n for row in faker.generate([\"name\", \"address\"], rows=4).as_tuple():\n print(row)\n\n print(\"\\n[2]\")\n faker = TableFaker(seed=seed)\n for row in faker.generate([\"name\", \"address\"], rows=4).as_tuple():\n print(row)\n\n:Output:\n .. code-block::\n\n [1]\n Row(name='Ryan Gallagher', address='6317 Mary Light\\nSmithview, HI 13900')\n Row(name='Amanda Johnson', address='3608 Samuel Mews Apt. 337\\nHousebury, WA 13608')\n Row(name='Willie Heath', address='868 Santiago Grove\\nNicolehaven, NJ 05026')\n Row(name='Dr. Jared Ortega', address='517 Rodriguez Divide Suite 570\\nWest Melinda, NH 85325')\n\n [2]\n Row(name='Ryan Gallagher', address='6317 Mary Light\\nSmithview, HI 13900')\n Row(name='Amanda Johnson', address='3608 Samuel Mews Apt. 337\\nHousebury, WA 13608')\n Row(name='Willie Heath', address='868 Santiago Grove\\nNicolehaven, NJ 05026')\n Row(name='Dr. Jared Ortega', address='517 Rodriguez Divide Suite 570\\nWest Melinda, NH 85325')\n\n\nSet locale for fake data\n--------------------------------------------\n:Sample Code:\n .. code-block:: python\n\n from tblfaker import TableFaker\n\n faker = TableFaker(locale=\"ja_JP\")\n\n for row in faker.generate([\"name\", \"address\"], rows=4).as_tuple():\n print(row)\n\n:Output:\n .. code-block::\n\n Row(name='\u5de5\u85e4 \u5065\u4e00', address='\u5bae\u5d0e\u770c\u6b66\u8535\u6751\u5c71\u5e02\u516d\u756a\u753a19\u4e01\u76ee15\u756a11\u53f7')\n Row(name='\u4e95\u4e0a \u8061\u592a\u90ce', address='\u611b\u5a9b\u770c\u9577\u751f\u90e1\u767d\u5b50\u753a\u8c4a\u753a33\u4e01\u76ee7\u756a20\u53f7 \u6238\u5cf6\u30b3\u30fc\u30c8620')\n Row(name='\u5927\u57a3 \u7f8e\u52a0\u5b50', address='\u4eac\u90fd\u5e9c\u5c71\u6b66\u90e1\u829d\u5c71\u753a\u4e09\u30ce\u8f2a34\u4e01\u76ee15\u756a8\u53f7 \u30af\u30ec\u30b9\u30c8\u6240\u91ce560')\n Row(name='\u5b87\u91ce \u304f\u307f\u5b50', address='\u5bae\u57ce\u770c\u516b\u8857\u5e02\u897f\u6d45\u834920\u4e01\u76ee24\u756a6\u53f7')\n\n\nGenerate data in other data formats\n--------------------------------------------\n\nGenerate data in dict\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n:Sample Code:\n .. code-block:: python\n\n from tblfaker import TableFaker\n import json\n\n faker = TableFaker(seed=1)\n\n print(json.dumps(faker.generate([\"name\", \"address\"], rows=2, table_name=\"dict\").as_dict(), indent=4))\n\n:Output:\n .. code-block:: json\n\n {\n \"dict\": [\n {\n \"name\": \"Ryan Gallagher\",\n \"address\": \"6317 Mary Light\\nSmithview, HI 13900\"\n },\n {\n \"name\": \"Amanda Johnson\",\n \"address\": \"3608 Samuel Mews Apt. 337\\nHousebury, WA 13608\"\n }\n ]\n }\n\nGenerate data in pandas.DataFrame\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n:Sample Code:\n .. code-block:: python\n\n from tblfaker import TableFaker\n\n faker = TableFaker(seed=seed)\n\n print(faker.generate([\"name\", \"address\"], rows=4).as_dataframe())\n\n:Output:\n .. code-block::\n\n name address\n 0 Ryan Gallagher 6317 Mary Light\\nSmithview, HI 13900\n 1 Amanda Johnson 3608 Samuel Mews Apt. 337\\nHousebury, WA 13608\n 2 Willie Heath 868 Santiago Grove\\nNicolehaven, NJ 05026\n 3 Dr. Jared Ortega 517 Rodriguez Divide Suite 570\\nWest Melinda, ...\n\n\nInstallation\n============================================\n::\n\n pip install tblfaker\n\n\nDependencies\n============================================\nPython 2.7+ or 3.5+\n\n- `faker `__\n- `tabledata `__\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/thombashi/tblfaker", "keywords": "table,faker", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "tblfaker", "package_url": "https://pypi.org/project/tblfaker/", "platform": "", "project_url": "https://pypi.org/project/tblfaker/", "project_urls": { "Homepage": "https://github.com/thombashi/tblfaker", "Source": "https://github.com/thombashi/tblfaker", "Tracker": "https://github.com/thombashi/tblfaker/issues" }, "release_url": "https://pypi.org/project/tblfaker/0.0.5/", "requires_dist": [ "setuptools (>=38.3.0)", "Faker (<2.0.0,>=1.0.5)", "tabledata (<1.0.0,>=0.9.1)", "twine ; extra == 'build'", "wheel ; extra == 'build'", "releasecmd (<0.1.0,>=0.0.18) ; extra == 'release'", "pytablewriter (>=0.46) ; extra == 'test'", "pytest ; extra == 'test'", "six ; extra == 'test'" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "summary": "tblfaker is a Python library to generate fake tabular data.", "version": "0.0.5" }, "last_serial": 5255911, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "86225e057185c966b25de343a81619d5", "sha256": "2ca3f3c9df62897fda5e7d716c6b6d44cc7d2ddab82edae0cfd49c793dada1be" }, "downloads": -1, "filename": "tblfaker-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "86225e057185c966b25de343a81619d5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", "size": 5934, "upload_time": "2019-01-03T13:22:39", "url": "https://files.pythonhosted.org/packages/3e/fb/7dfafcc8e964eb03a928dcbaa3a03448621b7a79d4ad96f6b796c0a143e0/tblfaker-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "95b9bf082bdb31facce36522b57096e5", "sha256": "962fbbe0c2a63cac23684a572d1389393fc96e3e33cc2387ce55fc0153159872" }, "downloads": -1, "filename": "tblfaker-0.0.1.tar.gz", "has_sig": false, "md5_digest": "95b9bf082bdb31facce36522b57096e5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", "size": 8402, "upload_time": "2019-01-03T13:22:41", "url": "https://files.pythonhosted.org/packages/65/be/4975792a15feb8a5a121527f80b75d7fed9f056347491c523c71ea56c7ca/tblfaker-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "02fb19cdbdd9217fae0f83edfb80b1ba", "sha256": "02dac414153fcdb62a24ea610709a84bc65ce26c872e2887b1d690744c5186bb" }, "downloads": -1, "filename": "tblfaker-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "02fb19cdbdd9217fae0f83edfb80b1ba", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 6218, "upload_time": "2019-01-19T08:43:04", "url": "https://files.pythonhosted.org/packages/82/70/92a21c9443848e0505f606789f4071297821942b3dfecc3da1e638ded5b8/tblfaker-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4e0b2f08af13bebb3459605ba6277a5a", "sha256": "ea7de0e67769940b4433602fd54132eb5aa9c36516cbb80b7b065aa0689b5330" }, "downloads": -1, "filename": "tblfaker-0.0.2.tar.gz", "has_sig": false, "md5_digest": "4e0b2f08af13bebb3459605ba6277a5a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 8911, "upload_time": "2019-01-19T08:43:05", "url": "https://files.pythonhosted.org/packages/2f/3d/9f95bea8831c477b268bdb929c25929b59ec4b7411bd6ac320cb02bdc10e/tblfaker-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "b9e15ab31690a1b7ee56178da6d31787", "sha256": "8567721939e0a52b1d5c590717edc5db66847ddea217ec9c69d6fd1a4fe5662c" }, "downloads": -1, "filename": "tblfaker-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b9e15ab31690a1b7ee56178da6d31787", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 6217, "upload_time": "2019-02-12T14:36:59", "url": "https://files.pythonhosted.org/packages/c9/ab/07746d541588ad5b693982e0b9051a42d082159156e06282d87cec8e349a/tblfaker-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9b2347f4ac6357c4e03d9f472f344416", "sha256": "c780ec4daee86524422bac713e4429d10d39cb911b026f9df59e1793c0362449" }, "downloads": -1, "filename": "tblfaker-0.0.3.tar.gz", "has_sig": false, "md5_digest": "9b2347f4ac6357c4e03d9f472f344416", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 8917, "upload_time": "2019-02-12T14:37:01", "url": "https://files.pythonhosted.org/packages/57/96/3364b8a659951e347b4075e1014c7315ce03b1e74963db9037fb23116948/tblfaker-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "504c8a917cdfe685b7b07af7e6c5e035", "sha256": "92822710b40afbc330e89d6881adf2b2827ae38c6f2acaa53d9b23d0bfb0cf10" }, "downloads": -1, "filename": "tblfaker-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "504c8a917cdfe685b7b07af7e6c5e035", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 6214, "upload_time": "2019-05-05T08:55:18", "url": "https://files.pythonhosted.org/packages/f1/88/c1b1764352f63e49422dcc6834629936c890b612b93715a125d2bbe24ab1/tblfaker-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ef9afa3226ddf2b734c27cc7d0ec3736", "sha256": "9705bd6d5e4a0fe8ca26b2ad2a29738fd1122fe7e7f6a619d702d98bda1d2a67" }, "downloads": -1, "filename": "tblfaker-0.0.4.tar.gz", "has_sig": false, "md5_digest": "ef9afa3226ddf2b734c27cc7d0ec3736", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 8906, "upload_time": "2019-05-05T08:55:20", "url": "https://files.pythonhosted.org/packages/3b/25/606b7a1da3e936865ab8510788d016eedd4edaedf5b223dff539b9ee20d6/tblfaker-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "0265ab3246b9db28497d3b84b7df5065", "sha256": "ba47d30ab75ce72c21636201d80bf9399a08e2e0d944d47c5a95096917af30bf" }, "downloads": -1, "filename": "tblfaker-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0265ab3246b9db28497d3b84b7df5065", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 6218, "upload_time": "2019-05-11T12:10:48", "url": "https://files.pythonhosted.org/packages/53/4c/ffc70e096ad6cfab158cf799271faeb6f4c45aaa67898838ce920c132384/tblfaker-0.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4e5b5597696aaffdbbc6a1f383451746", "sha256": "11c9dc00612e78ce77edf2a23adca9c35e47f3f66bd76d8d50d222effb140d11" }, "downloads": -1, "filename": "tblfaker-0.0.5.tar.gz", "has_sig": false, "md5_digest": "4e5b5597696aaffdbbc6a1f383451746", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 8905, "upload_time": "2019-05-11T12:10:49", "url": "https://files.pythonhosted.org/packages/2b/c1/fa16272c160a67bd3401be3d8590b8a5987951fd5a748fe17ec124caeff9/tblfaker-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0265ab3246b9db28497d3b84b7df5065", "sha256": "ba47d30ab75ce72c21636201d80bf9399a08e2e0d944d47c5a95096917af30bf" }, "downloads": -1, "filename": "tblfaker-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0265ab3246b9db28497d3b84b7df5065", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 6218, "upload_time": "2019-05-11T12:10:48", "url": "https://files.pythonhosted.org/packages/53/4c/ffc70e096ad6cfab158cf799271faeb6f4c45aaa67898838ce920c132384/tblfaker-0.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4e5b5597696aaffdbbc6a1f383451746", "sha256": "11c9dc00612e78ce77edf2a23adca9c35e47f3f66bd76d8d50d222effb140d11" }, "downloads": -1, "filename": "tblfaker-0.0.5.tar.gz", "has_sig": false, "md5_digest": "4e5b5597696aaffdbbc6a1f383451746", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 8905, "upload_time": "2019-05-11T12:10:49", "url": "https://files.pythonhosted.org/packages/2b/c1/fa16272c160a67bd3401be3d8590b8a5987951fd5a748fe17ec124caeff9/tblfaker-0.0.5.tar.gz" } ] }