{ "info": { "author": "Aleksander Drozd", "author_email": "aleksander.drozd@outlook.com", "bugtrack_url": null, "classifiers": [], "description": "About\n-----\n\n``csvwlib`` is a python implementation of `W3C CSV on the Web recommendations `_.\nIt enables merging CSV file and associated metadata into JSON or RDF.\n\nInstallation\n------------\n\n::\n\n\tpip install csvwlib\n\nUsage\n-----\n\nThe library exposes one class - ``CSVWConverter`` which has methods ``to_json()`` and ``to_rdf()``\nBoth these methods have similar API. They receive 3+ parameters:\n\n- ``csv_url`` - URL of CSV file, default ``None``\n- ``metadata_url`` - the URL of metadata file, default ``None``\n- ``mode`` - conversion mode, default ``standard``, second possible value is ``minimal``\n\nThe are 3 ways of starting conversion process. \n\n- pass only ``csv_url`` - corresponding metadata will be looked up based on ``csv_url`` as described in `Locating Metadata `_\n- pass both ``csv_url`` and ``metadata_url`` - metadata by user will be used. If ``url`` field is set in metadata, the CSV file will be retrieved from that location which can cause, that passed ``csv_url`` will be ignored\n- pass only ``metadata_url`` - associated CSV files will be retrieved based on metadata ``url`` field \n\nYou can also specify the conversion mode - `standard` or `minimal`, the default is `standard`.\nFrom `documentation `_\n\n\t**Standard** mode conversion frames the information gleaned from the cells of the tabular data with details of the rows, tables, and a group of tables within which that information is provided.\n \n\t**Minimal** mode conversion includes only the information gleaned from the cells of the tabular data.\n\nAfter conversion to JSON, you receive a ``dict`` object, when converting to RDF it is more complex.\nIf you pass ``format`` parameter, graph will be serialized to this format and returned as string. \nFrom ``rdflib`` docs\n\n Format support can be extended with plugins, but 'xml', 'n3', 'turtle', 'nt', 'pretty-xml', 'trix', 'trig' and 'nquads' are built in.\n\nIf you don't specify the format, you will receive a ``rdflib.Graph`` object. \n\nExamples\n--------\nExample files can be found at http://w3c.github.io/csvw/tests/ \n\nCommon import for all examples:\n\n.. code-block:: python\n\n from csvwlib import CSVWConverter\n\nStart with csv\n\n.. code-block:: python\n\n CSVWConverter.to_rdf('http://w3c.github.io/csvw/tests/test001.csv', format='ttl')\n\nMinimal mode\n\n.. code-block:: python\n\n CSVWConverter.to_rdf('http://w3c.github.io/csvw/tests/tree-ops.csv', mode='minimal', format='ttl')\n\nStart with metadata\n\n.. code-block:: python\n\n CSVWConverter.to_rdf(metadata_url='http://w3c.github.io/csvw/tests/test188-metadata.json', format='ttl')\n\nBoth CSV and metadata URL specified\n\n.. code-block:: python\n\n CSVWConverter.to_rdf('http://w3c.github.io/csvw/tests/tree-ops.csv', 'http://w3c.github.io/csvw/tests/tree-ops.csv', format='ttl')\n\nStart with metadata\n\n.. code-block:: python\n\n CSVWConverter.to_json('http://w3c.github.io/csvw/tests/countries.json')\n\nStart with csv\n\n.. code-block:: python\n\n CSVWConverter.to_json('http://w3c.github.io/csvw/tests/test001.csv')", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/Aleksander-Drozd/csvwlib/archive/0.3.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Aleksander-Drozd/csvwlib", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "csvwlib", "package_url": "https://pypi.org/project/csvwlib/", "platform": "", "project_url": "https://pypi.org/project/csvwlib/", "project_urls": { "Download": "https://github.com/Aleksander-Drozd/csvwlib/archive/0.3.tar.gz", "Homepage": "https://github.com/Aleksander-Drozd/csvwlib" }, "release_url": "https://pypi.org/project/csvwlib/0.2.3/", "requires_dist": null, "requires_python": "", "summary": "Python implementation of CSV on the Web", "version": "0.2.3" }, "last_serial": 3470358, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "92e6fae4b8b5b519873bc02058c1318d", "sha256": "bd48911e5aeb5fbbc85a328a0ee161994093828059667e6915de6cf3a1775dcc" }, "downloads": -1, "filename": "csvwlib-0.1.tar.gz", "has_sig": false, "md5_digest": "92e6fae4b8b5b519873bc02058c1318d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18362, "upload_time": "2017-12-30T11:24:55", "url": "https://files.pythonhosted.org/packages/23/95/dfc652bf96252b8fdb65c624c64bdf867ad16d0bcfa8155702e0d6703101/csvwlib-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "2993ba028bed0d858cd5dcdd63d74eb3", "sha256": "a952d14189235fadb16ac2503e04a00c99c905defad3e6b6d7f1e813631494a3" }, "downloads": -1, "filename": "csvwlib-0.1.1.tar.gz", "has_sig": false, "md5_digest": "2993ba028bed0d858cd5dcdd63d74eb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18523, "upload_time": "2017-12-30T11:57:16", "url": "https://files.pythonhosted.org/packages/89/52/b78ed1385aefde7659926b679b4804bc3d1503ac317261088d48de9a8dca/csvwlib-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "7e092afd25448d6aa105d343b7b84516", "sha256": "f446f743531482fb4d6e8feaf97427efdf9e0d5d03948712476545ece858547a" }, "downloads": -1, "filename": "csvwlib-0.1.2.tar.gz", "has_sig": false, "md5_digest": "7e092afd25448d6aa105d343b7b84516", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18517, "upload_time": "2017-12-30T12:00:13", "url": "https://files.pythonhosted.org/packages/f0/92/f6691c614ef36031c6da64b43e52ee042112642ec7a7d0dbf6c3e0f7df58/csvwlib-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "73ff3965d91be8bd2021985753494be2", "sha256": "47df1dda54122c8c909d230dba9bd17bbddbfd20476c17d2f7c0121704ed79f3" }, "downloads": -1, "filename": "csvwlib-0.1.3.tar.gz", "has_sig": false, "md5_digest": "73ff3965d91be8bd2021985753494be2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18683, "upload_time": "2017-12-30T14:17:47", "url": "https://files.pythonhosted.org/packages/35/ea/8d6b85b35c0fde1e8377254ad70b7323caf14e1cbaeb0a7214a17f4af8aa/csvwlib-0.1.3.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "620bda80655345c81e37c8e900091c09", "sha256": "9a3506301798ff2d1f02b34407fb854648e2cd5a70602649d2878cd38bf8185e" }, "downloads": -1, "filename": "csvwlib-0.2.tar.gz", "has_sig": false, "md5_digest": "620bda80655345c81e37c8e900091c09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18686, "upload_time": "2017-12-31T01:56:09", "url": "https://files.pythonhosted.org/packages/2e/9c/0ae62b6c540849c5b107977d25e76cf3482d381b7f9fdc0b3da8bb791bfa/csvwlib-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "f85a610259b42cf4a87974076ae10b97", "sha256": "c76bd6a758e7b369768d48e03388f7ef49f4dcbf3304a981d934115e022f5021" }, "downloads": -1, "filename": "csvwlib-0.2.1.tar.gz", "has_sig": false, "md5_digest": "f85a610259b42cf4a87974076ae10b97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21862, "upload_time": "2017-12-31T22:52:14", "url": "https://files.pythonhosted.org/packages/f3/0f/c88099b29cf01199ff22b66f53204d4f49088c0a9d440ad9eafec8112d10/csvwlib-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "11b0bc58d75304f81ebfb27b7cc260b2", "sha256": "2bf1cbb586d4c24ddfd662870b2677393cedce5ed14abc4ece22b3711cdad875" }, "downloads": -1, "filename": "csvwlib-0.2.2.tar.gz", "has_sig": false, "md5_digest": "11b0bc58d75304f81ebfb27b7cc260b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21870, "upload_time": "2018-01-05T02:22:01", "url": "https://files.pythonhosted.org/packages/7b/5a/9acbf3f844da704972dbc5c62a4f5c5d7dea53ef2969b5c4d5f8a74f0c3e/csvwlib-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "dfb69937e924566387bf1c48aed3804a", "sha256": "a89a70aa261eedccf5549d4f66c497e46cf04ba76ad86459fb60eda6ec4f0cd0" }, "downloads": -1, "filename": "csvwlib-0.2.3.tar.gz", "has_sig": false, "md5_digest": "dfb69937e924566387bf1c48aed3804a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29308, "upload_time": "2018-01-08T08:50:16", "url": "https://files.pythonhosted.org/packages/78/30/22c3e1b64f5cfe741a4645d3c8248212ed6027f5ef2739078db31da49999/csvwlib-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dfb69937e924566387bf1c48aed3804a", "sha256": "a89a70aa261eedccf5549d4f66c497e46cf04ba76ad86459fb60eda6ec4f0cd0" }, "downloads": -1, "filename": "csvwlib-0.2.3.tar.gz", "has_sig": false, "md5_digest": "dfb69937e924566387bf1c48aed3804a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29308, "upload_time": "2018-01-08T08:50:16", "url": "https://files.pythonhosted.org/packages/78/30/22c3e1b64f5cfe741a4645d3c8248212ed6027f5ef2739078db31da49999/csvwlib-0.2.3.tar.gz" } ] }