{ "info": { "author": "Adel KARA SLIMANE", "author_email": "adel.ks@zegrapher.com", "bugtrack_url": null, "classifiers": [], "description": "## csv_manager\n\nThis is a python module that features two simple classes for reading (class `Reader`) and plotting (class `Plotter`), and a method for writing CSVs, using Matplotlib (Latex rendering enabled) for the plots.\n\nBy using this module, the user avoids the cumbersome repetition of coding a csv reader using the `csv` python library then making the data in a readable structure for `plt.plot(...)`.\n\nAn example is written in `example/csv_plot_example.py`, that showcases what can be done with this module:\n\n```python\nfrom csv_manager.plotter import Plotter\n# Plotter inherits the class Reader\n\nplotter = Plotter(num_rows=1, num_columns=2)\n# Number of rows and columns for plt.sublots\n\nfile1 = 'data_file_1.csv'\nfile2 = 'data_file_2.csv'\n\nplotter.load(file1, alias='dataset1')\nplotter.load(file2, alias='dataset1')\n#Both files are loaded in the same `dataset`, if column names collide, the latest ones get \"_b\" appended to their name\n\nplotter.show_loaded_data()\n# prints the loaded datasets. For each dataset, is printed:\n# - the source files the data has been loaded from\n# - the column names\n\nplotter.get_column_names('dataset1')\n# returns the list of column names of the dataset `dataset1`\n\n######################################################\n\nplotter.plot('dataset1', 'time', 'position', 0, 0, label='position $x(t)$', color='red', linestyle=':')\n# Starting from \" label='save' [...]\" the arguments are the **kwargs in https://matplotlib.org/api/_as_gen/matplotlib.pyplot.plot.html\nplotter.plot('dataset1', 'time', 'speed', 0, 0, label='speed $v(t)$', color='blue', linestyle='--')\n\nplotter.plot('dataset1', 'time', 'position + sqrt(2/10 * speed)', 0, 1, label='dummy curve from expression')\n\nplotter.plot_data(0, 0, [0, 1, 2], [0, 1, 2], label='dummy data')\n\nplotter.set(0, 0, xlabel='Time ', ylabel='Position')\n# Starting from \" xlabel='time' [...]\" the options that can be set are the **kwargs in https://matplotlib.org/api/axes_api.html\n\nplotter.set(0, 1, xlabel='Time ', ylabel='Dummy data')\n\nplotter.show()\n```\n\nThe file `example/data_file_1.csv` looks like the following:\n\n```csv\ntime position\n0 0\n1 5\n2 20\n3 45\n4 80\n5 125\n6 180\n7 245\n8 320\n9 405\n10 500\n```\n\nThe file `example/data_file_2.csv` looks like the following:\n\n```csv\ntime speed\n0 0\n1 3\n2 3.6\n3 2\n4 5\n5 8\n6 9\n7 10\n8 9.1\n9 8\n10 7\n```\n\n## Dependencies:\n\n- Python Matplotlib\n- Python [py_expression_eval](https://github.com/Axiacore/py-expression-eval), can be installed with `pip install py_expression_eval`\n- Latex distribution installed in your computer, can be deactivated in csv_plotter.py by changing the following line `plt.rcParams['text.usetex'] = True` to `plt.rcParams['text.usetex'] = False`\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/AdelKS/csv_manager", "keywords": "csv export import plot matplotlib", "license": "The Unlicense", "maintainer": "", "maintainer_email": "", "name": "csv-manager", "package_url": "https://pypi.org/project/csv-manager/", "platform": "", "project_url": "https://pypi.org/project/csv-manager/", "project_urls": { "Homepage": "https://github.com/AdelKS/csv_manager" }, "release_url": "https://pypi.org/project/csv-manager/0.4/", "requires_dist": [ "matplotlib", "py-expression-eval" ], "requires_python": "", "summary": "A simple CSV importer/exporter with plotting capabilities with matplotlib", "version": "0.4" }, "last_serial": 5976455, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ced37b8041dd050ff39674c3fc778095", "sha256": "24c16eab9d560518fd196acff1b037cb4e6b41817764f4a8f0cb8324f2beeef7" }, "downloads": -1, "filename": "csv_manager-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ced37b8041dd050ff39674c3fc778095", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4229, "upload_time": "2019-07-03T14:59:14", "url": "https://files.pythonhosted.org/packages/67/72/b9cfd73803284f77472cbdb2fed7268de1371f36020a66c82e333d58567c/csv_manager-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "70b4728b299364710c116198c0fc503c", "sha256": "b127ff5b5737b5e7d2f4d4ff84bb2a62d9e1bcecd856dc760c15d214ca7f0403" }, "downloads": -1, "filename": "csv_manager-0.1.tar.gz", "has_sig": false, "md5_digest": "70b4728b299364710c116198c0fc503c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3639, "upload_time": "2019-07-03T14:59:17", "url": "https://files.pythonhosted.org/packages/86/46/e4373b148004507c1fc2bbc03896fe42c921d868f5a0f95b930eeaea26e6/csv_manager-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "2efb96f77f9736e6eec2adce82b66d7f", "sha256": "c39810efc489c6b7c99ac52c28df58f89ed934eace58c94a59a72bdd068dfe0f" }, "downloads": -1, "filename": "csv_manager-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "2efb96f77f9736e6eec2adce82b66d7f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4974, "upload_time": "2019-07-16T12:39:24", "url": "https://files.pythonhosted.org/packages/db/fc/5e76d2ca10a28fdc7603c10fc1c34a90744ebbaa5d1222f72a5b765903f5/csv_manager-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b0bcb4fd437ebeda9b87d432e6aa25bf", "sha256": "8a180dda0d748f8e3bff80d5789e13865838a0dfcb83edd9982175bce20dc8a6" }, "downloads": -1, "filename": "csv_manager-0.2.tar.gz", "has_sig": false, "md5_digest": "b0bcb4fd437ebeda9b87d432e6aa25bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4177, "upload_time": "2019-07-16T12:39:27", "url": "https://files.pythonhosted.org/packages/e1/57/904ab9ca9b2a22ee7583545a1e09a48ed891040102cd7350e37ac66531a6/csv_manager-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "c5073985ce911300f1e9775d876b30e4", "sha256": "089d42c0e321085ddfb40cf772f19943ac34a502716880eef8af9a0d4273cd49" }, "downloads": -1, "filename": "csv_manager-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "c5073985ce911300f1e9775d876b30e4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6172, "upload_time": "2019-10-02T14:23:30", "url": "https://files.pythonhosted.org/packages/15/c3/ffe52061173bbf9486a839b49433dcc755f4519a17c51ea367769a334420/csv_manager-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "abbc39a611006fc2bbdfb8a0fce1a010", "sha256": "7debe55826c88e1461a65dfe4d31124fa05d8641cd138dc64e4d237df43ec01c" }, "downloads": -1, "filename": "csv_manager-0.3.tar.gz", "has_sig": false, "md5_digest": "abbc39a611006fc2bbdfb8a0fce1a010", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5352, "upload_time": "2019-10-02T14:23:35", "url": "https://files.pythonhosted.org/packages/40/2d/05e360fd4bb20d4b0416d13dc8a2a7024604decfb9b1cb2f6fbaf39c91ac/csv_manager-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "3f4faf99138832d11cba0629fe36c0ad", "sha256": "a34a9ad627c328d97871b37bdcb180f4648a447bb55f6387b92cc8cee9070d1d" }, "downloads": -1, "filename": "csv_manager-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "3f4faf99138832d11cba0629fe36c0ad", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6509, "upload_time": "2019-10-15T11:47:41", "url": "https://files.pythonhosted.org/packages/3f/e2/a5579bf7006513b3ee17a0508d43b318812dad7356d7d95cade574627e00/csv_manager-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1ee5ee1fb6f0225ca5d38c49bd5e3684", "sha256": "31fb5d937bc6dbdf75cfa69713881b82ca82893a362de0123e46654138f56a86" }, "downloads": -1, "filename": "csv_manager-0.4.tar.gz", "has_sig": false, "md5_digest": "1ee5ee1fb6f0225ca5d38c49bd5e3684", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5740, "upload_time": "2019-10-15T11:47:47", "url": "https://files.pythonhosted.org/packages/70/0e/93bcf666343c3377fe6cce59a5ce849e860dac90f49111afa52537ea97c7/csv_manager-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3f4faf99138832d11cba0629fe36c0ad", "sha256": "a34a9ad627c328d97871b37bdcb180f4648a447bb55f6387b92cc8cee9070d1d" }, "downloads": -1, "filename": "csv_manager-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "3f4faf99138832d11cba0629fe36c0ad", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6509, "upload_time": "2019-10-15T11:47:41", "url": "https://files.pythonhosted.org/packages/3f/e2/a5579bf7006513b3ee17a0508d43b318812dad7356d7d95cade574627e00/csv_manager-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1ee5ee1fb6f0225ca5d38c49bd5e3684", "sha256": "31fb5d937bc6dbdf75cfa69713881b82ca82893a362de0123e46654138f56a86" }, "downloads": -1, "filename": "csv_manager-0.4.tar.gz", "has_sig": false, "md5_digest": "1ee5ee1fb6f0225ca5d38c49bd5e3684", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5740, "upload_time": "2019-10-15T11:47:47", "url": "https://files.pythonhosted.org/packages/70/0e/93bcf666343c3377fe6cce59a5ce849e860dac90f49111afa52537ea97c7/csv_manager-0.4.tar.gz" } ] }