{ "info": { "author": "Dmitriy Kirichenko", "author_email": "damamaty@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "========\r\ndataview\r\n========\r\n\r\n**dataview** is a module that allows you to create views of your sequences or its slices\r\n\r\nInstall\r\n-------\r\n\r\n.. code-block::\r\n\r\n pip install dataview\r\n\r\nTo upgrade a previous installation, use:\r\n\r\n.. code-block::\r\n\r\n pip install dataview\r\n\r\nUsage && Examples\r\n-----------------\r\n\r\n.. code-block::\r\n\r\n >>> from dataview import DataView\r\n >>> # You have some data, it can be any sequence (str, list, bytes, tuple, etc..)\r\n >>> source_data = list(range(5))\r\n >>> # DataView is just a pointer to your source_data and start/stop/step\r\n >>> DataView(source_data)\r\n [0, 1, 2, 3, 4]\r\n >>> DataView(source_data, 3)\r\n [0, 1, 2]\r\n >>> DataView(source_data, 1, 5)\r\n [1, 2, 3, 4]\r\n >>> DataView(source_data, None, None, -1)\r\n [4, 3, 2, 1, 0]\r\n >>> # You can use slices (completely the same way as list slices)\r\n >>> DataView(source_data)[::-1]\r\n [4, 3, 2, 1, 0]\r\n >>> # Slice return a new DataView object, that points to the previous DataView\r\n >>> DataView(source_data)[::-1][2:4]\r\n [2, 1]\r\n >>> # You can change start/stop/step anytime\r\n >>> view = DataView(source_data, 0, 1)\r\n >>> view.start = 1\r\n >>> view.stop = 2\r\n >>> view\r\n [1]\r\n >>> # View always points to actual data\r\n >>> source_data[1] = 2\r\n >>> view\r\n [2]\r\n >>> # You can change a view source data\r\n >>> view.data = list(range(5))\r\n >>> view\r\n [1]", "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/damamaty/dataview", "keywords": "list slice", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "dataview", "package_url": "https://pypi.org/project/dataview/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/dataview/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/damamaty/dataview" }, "release_url": "https://pypi.org/project/dataview/1.0.5/", "requires_dist": null, "requires_python": null, "summary": "A module that allows you to create views of your sequences or its slices", "version": "1.0.5" }, "last_serial": 1052066, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "427edf6a0ab2f1d5bcae45a8fb13201e", "sha256": "0b9d4801ad5dca35bc6b1bc853d61a74e8ab336603e7d3b479ec13ee08f9c7a1" }, "downloads": -1, "filename": "dataview-1.0.2.zip", "has_sig": false, "md5_digest": "427edf6a0ab2f1d5bcae45a8fb13201e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2987, "upload_time": "2014-04-03T18:19:02", "url": "https://files.pythonhosted.org/packages/55/3e/507ea127adf697be15cdca71a7ee3cc17e433b9d44e7f80359695a318312/dataview-1.0.2.zip" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "404a2cf01328354e4c5fadb1dbd7653f", "sha256": "f7bd00cae9e204e60468ca6b927960f4f346f8f6fa52e116247f77d03c2f9495" }, "downloads": -1, "filename": "dataview-1.0.3.zip", "has_sig": false, "md5_digest": "404a2cf01328354e4c5fadb1dbd7653f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3639, "upload_time": "2014-04-03T18:20:45", "url": "https://files.pythonhosted.org/packages/ed/7f/888510a96c0c126eff1d3eb92813ce7062320cfc812bde341a4b50f41e7c/dataview-1.0.3.zip" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "db6fa90703c9e7f8993f17bd2e1a6bfd", "sha256": "1d57ccc6f75b5392064e24e8d2087da2e194a444488df6664cf4e7c81bc92769" }, "downloads": -1, "filename": "dataview-1.0.4.zip", "has_sig": false, "md5_digest": "db6fa90703c9e7f8993f17bd2e1a6bfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4391, "upload_time": "2014-04-03T18:21:43", "url": "https://files.pythonhosted.org/packages/83/b1/ae294a69be2ff5e8b5e21e34209b418440fab03db0417d057450af303c42/dataview-1.0.4.zip" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "a3fbe1e9b864e7583df7ed1cd06ee76d", "sha256": "c9a8a2fbe4dc1f40b9f577ccd9ec1db62848ec62ae375fcfb825db0c646f3315" }, "downloads": -1, "filename": "dataview-1.0.5.zip", "has_sig": false, "md5_digest": "a3fbe1e9b864e7583df7ed1cd06ee76d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6022, "upload_time": "2014-04-05T14:04:19", "url": "https://files.pythonhosted.org/packages/7c/fb/cbb31c1a74fac878677979922e2e10f74151cbae8f4b4e2240bc9bd8091d/dataview-1.0.5.zip" } ], "v1.0.1": [], "v1.0.2": [] }, "urls": [ { "comment_text": "", "digests": { "md5": "a3fbe1e9b864e7583df7ed1cd06ee76d", "sha256": "c9a8a2fbe4dc1f40b9f577ccd9ec1db62848ec62ae375fcfb825db0c646f3315" }, "downloads": -1, "filename": "dataview-1.0.5.zip", "has_sig": false, "md5_digest": "a3fbe1e9b864e7583df7ed1cd06ee76d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6022, "upload_time": "2014-04-05T14:04:19", "url": "https://files.pythonhosted.org/packages/7c/fb/cbb31c1a74fac878677979922e2e10f74151cbae8f4b4e2240bc9bd8091d/dataview-1.0.5.zip" } ] }