{ "info": { "author": "Dalwar Hossain", "author_email": "dalwar.hossain@protonmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "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.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# ncprep\nA preparation package for NEOChain (Network Evolution Observation for Blockchain)\n\n# Getting Started\n```python\npython setup.py install\n```\n\n# Description\nThis package filters text based on column indexes (column index starts from 1), clips data from file based on dates and\nintervals and also maps string column values to numeric column values.\n\n## Column based text filtering\n```python\n# Import the ncprep package\nimport ncprep as ncp\n\n# Filter columns from a text file\nncp.filter_columns(input_file='path/to/input/file', column_indexes='1,2,3',\n delimiter=',' , output_file='path/to/output/file')\n```\n\nThis will create a file as `output_file` with `1,2,3` columns from `input_file`. \n\n:exclamation: parameter `output_file` \\[*optional*\\], if not provided, the program will create a `output_file` at the\nsame directory as `input_file` and the new file will have `_cols.txt` at the end of input file.\n\n:exclamation: Parameter `delimiter` is \\[*optional*\\] if not provided, the program will consider `whitespace` as default\ndelimiter.\n\n\n## Date and Interval based text clipping\n```python\n# Import the ncprep package\nimport ncprep as ncp\n\n# Clip rows (text) from a text file based on UNIX timestamp\nncp.clip_text(input_file='/path/to/data/file', delimiter=',', start_date='2017-07-01', interval=15)\n\n```\n\\[*whitespace*\\] delimiter is expected, but can have other delimiters also.\n\nThis will create a file that contains all the rows from `2017-07-01` till next 15 days. The `output_file` will be\ncreated at the same directory as input file with `_clipped.txt` at the end.\n\n:fire: Input file format must match => (source target weight timestamp) (timestamp = UNIX timestamp)\n\n:exclamation: Parameter `delimiter` is \\[*optional*\\] if not provided, the program will consider `whitespace` as default\ndelimiter.\n\n# String to Numeric mapping\n```python\n# Import the ncprep package\nimport ncprep as ncp\n\nncp.numeric_mapper(input_file='/path/to/data/file', delimiter=',', weighted='yes')\n\n```\nThis will create a string to numeric mapping for all the source, target values and create an `output_file` at the same\ndirectory as `input_file` with `_numeric.txt` at the end of the file name.\n\n\\[*whitespace*\\] delimiter is expected, but can have other delimiters also.\n\n:fire: Input file format must match => (source target weight) or (source target)\n\n:fire: Parameter weighted defines if the file is weighted or not, if weighted, returns natural logarithm of weight as\nthird column\n\n:exclamation: Parameter `delimiter` is \\[*optional*\\] if not provided, the program will consider `whitespace` as default\ndelimiter.\n\n# Notes\nDon't forget to import the following at the beginning of the file\n```python\nfrom __future__ import print_function\n```\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/dharif23/ncprep", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dharif23/ncprep", "keywords": "Network,Blockchain,Filtering,Clipping", "license": "MIT", "maintainer": "Dalwar Hossain", "maintainer_email": "dalwar.hossain@protonmail.com", "name": "ncprep", "package_url": "https://pypi.org/project/ncprep/", "platform": "Linux", "project_url": "https://pypi.org/project/ncprep/", "project_urls": { "Download": "https://github.com/dharif23/ncprep", "Homepage": "https://github.com/dharif23/ncprep" }, "release_url": "https://pypi.org/project/ncprep/1.1/", "requires_dist": [ "pip (>=18.0)", "argparse (>=1.2.1)", "numpy (==1.14.5)", "pandas (>=0.23.4)", "pyrainbowterm (>=1.0)", "subprocess32 (>=3.5.2)", "setuptools (>=40.1.0)", "six (>=1.11.0)", "wheel (>=0.31.1)", "python-dateutil (>=2.7.3)", "pytz (>=2018.5)", "wsgiref (>=0.1.2)", "memory-profiler (>=0.52.0)" ], "requires_python": "", "summary": "ncprep - A data preparation package for blockchain transaction data", "version": "1.1" }, "last_serial": 4205271, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "74e78a2f799d1e4386ee2567e691e594", "sha256": "75936017b22cd0642916b2c111e45c82620cb3cecac533a5f235a0092b7642e5" }, "downloads": -1, "filename": "ncprep-1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "74e78a2f799d1e4386ee2567e691e594", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 12060, "upload_time": "2018-08-24T15:04:43", "url": "https://files.pythonhosted.org/packages/64/12/464cf50357c5dc1f066f878e57189455f6ec1544054cf5869d888b2c923d/ncprep-1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3365f3e3b7eda945040fa57d95fb7e11", "sha256": "0d75956f9f8d9bbfa28ecc7e34d02f882f5954d944d85e2d4be9e85cd5c1340a" }, "downloads": -1, "filename": "ncprep-1.0.tar.gz", "has_sig": false, "md5_digest": "3365f3e3b7eda945040fa57d95fb7e11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10269, "upload_time": "2018-08-24T15:04:44", "url": "https://files.pythonhosted.org/packages/1d/78/f34d466f88eed5a074e6f25f0d78bba8d3b7998dbbb7508ff23c086bfcfc/ncprep-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "9340e5231b9907096e3748f3b9e42758", "sha256": "87c05c0065f004248247d9e104070be0ac50d23e7d57c83c648745a35e2bfa61" }, "downloads": -1, "filename": "ncprep-1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "9340e5231b9907096e3748f3b9e42758", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 12311, "upload_time": "2018-08-24T21:47:07", "url": "https://files.pythonhosted.org/packages/81/0a/9817dc28bc0e1fa97af58ddab02d2ea49957382f9ed855403274de3dbdf4/ncprep-1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5dd0512ec1b86bb80666309df845ea9a", "sha256": "4e1c8785a15aed73eaf1ebfe0038e6bc1945608d864215bbcbdba6cca655d34e" }, "downloads": -1, "filename": "ncprep-1.1.tar.gz", "has_sig": false, "md5_digest": "5dd0512ec1b86bb80666309df845ea9a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10579, "upload_time": "2018-08-24T21:47:10", "url": "https://files.pythonhosted.org/packages/00/89/3b286817e01fe0cd7f6481658abf05ef0e3197c31651475261097e6c6338/ncprep-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9340e5231b9907096e3748f3b9e42758", "sha256": "87c05c0065f004248247d9e104070be0ac50d23e7d57c83c648745a35e2bfa61" }, "downloads": -1, "filename": "ncprep-1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "9340e5231b9907096e3748f3b9e42758", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 12311, "upload_time": "2018-08-24T21:47:07", "url": "https://files.pythonhosted.org/packages/81/0a/9817dc28bc0e1fa97af58ddab02d2ea49957382f9ed855403274de3dbdf4/ncprep-1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5dd0512ec1b86bb80666309df845ea9a", "sha256": "4e1c8785a15aed73eaf1ebfe0038e6bc1945608d864215bbcbdba6cca655d34e" }, "downloads": -1, "filename": "ncprep-1.1.tar.gz", "has_sig": false, "md5_digest": "5dd0512ec1b86bb80666309df845ea9a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10579, "upload_time": "2018-08-24T21:47:10", "url": "https://files.pythonhosted.org/packages/00/89/3b286817e01fe0cd7f6481658abf05ef0e3197c31651475261097e6c6338/ncprep-1.1.tar.gz" } ] }