{ "info": { "author": "Andr\u00e9 Stephan & Paul-Antoine Bontinck", "author_email": "stephan.andre@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# pyspa\n\npyspa is an object-oriented __python__ package which enables you to conduct a parametric structural path analysis on square A matrices (process or input-output) for any number of environmental, social or economic satellites and for any number of stages upstream in your supply chain (as long you have enough RAM). The package produces a SupplyChain object which includes Pathway and Node objects. Results can be exported to the csv format with a single line of code.\n\nThe concept behind pyspa was driven by the lack of open source code to conduct structural path analysis in a robust and object-oriented manner.\n\n## Getting Started\n\n### Prerequisites\n\nYou will need __python__ to run this package as well as the following python packages:\n1. [numpy](https://www.numpy.org/)\n2. [pandas](https://pandas.pydata.org/)\n\n### Installing\nDownload and install the package from pip\n```pip install pyspa```\n\n## Testing pyspa\n\nIdentify the template files in the installed directory, or download them directly from the [github repository](https://github.com/hybridlca/pyspa/). The template files include:\n\n1. A_matrix_template.csv\n2. Infosheet_template.csv\n3. Thresholds_template.csv\n\nOnce you have located these files, __you need to run a single function__ that will read the data, conduct the structural path analysis and return a SupplyChain object, as per the following code.\n\n```sc = pyspa.get_spa(target_id = 78, max_stage = 6, a_matrix_file_path ='A_matrix_template.csv', infosheet_file_path='Infosheet_template.csv', thresholds_file_path='Thresholds_template.csv')```\n\nThis will return your SupplyChain object which has numerous methods. Read the [documentation](../blob/master/pyspa_v1.0_documentation.html) for more information.\n\nTo export the structural path analysis to a __csv__ file, use the built-in method.\n\n```sc.export_to_csv('spa_results.csv```\n\nTo __save__ your SupplyChain object and avoid having to recalculate everything (this uses pickle):\n\n```sc.save('supply_chain.sc')```\n\nTo __load__ a previously saved SupplyChain object:\n\n```loaded_sc = pyspa.load_instance_from_file('supply_chain.sc', pyspa.SupplyChain)```\n\n## Built with:\n\n+[pycharm](https://www.jetbrains.com/pycharm/)\n+[sourcetree](https://www.sourcetreeapp.com/)\n+Sweat, tears, Belgian beers, and coffee from Castro's\n\n## Authors and contributors\n\n### Authors\n+[Andr\u00c3\u00a9 Stephan](https://github.com/andrestephan1) - _overall design, implementation, testing and debugging_ - [ORCID](https://orcid.org/0000-0001-9538-3830)\n+[Paul-Antoine Bontinck](https://github.com/pa-bontinck) - _optimisation, implementation, testing and debugging_ - [ORCID](https://orcid.org/0000-0002-4072-1334)\n###Contributors\n+[Robert H Crawford](https://github.com/rhcr) - _project leader and theoretical guidance_ - [ORCID](https://orcid.org/0000-0002-0189-3221)\n\n## License\nThis project is shared under a GNU General Public License v3.0. See the [LICENSE.md](../blob/master/LICENSE) file for more information.\n\n## Acknowledgments\n\nThis project was funded by the __Australian Research Council Discovery Project DP150100962__ at the [University of Melbourne](https://unimelb.edu.au/), Australia. As such, we are endebted to Australian taxpayers for making this work possible and to the University of Melbourne for providing the facilities and intellectual space to conduct this research. The code for the base method for conducting the structural path analysis is inspired from the code of late __[A/Prof Graham Treloar](https://new.gbca.org.au/news/gbca-news/how-legacy-late-green-building-researcher-lives/)__ at the University of Melbourne, who pioneered a Visual Basic Script in his [PhD thesis](https://dro.deakin.edu.au/eserv/DU:30023444/treloar-comprehensiveembodied-1998.pdf) to conduct a structural path analysis in 1997.\n\n\n\n\n\n\n\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/hybridlca/pyspa", "keywords": "", "license": "GNU General Public License v3.0", "maintainer": "", "maintainer_email": "", "name": "pyspa", "package_url": "https://pypi.org/project/pyspa/", "platform": "", "project_url": "https://pypi.org/project/pyspa/", "project_urls": { "Homepage": "https://github.com/hybridlca/pyspa" }, "release_url": "https://pypi.org/project/pyspa/1.4/", "requires_dist": [ "numpy", "pandas" ], "requires_python": "", "summary": "An object-oriented python package for structural path analysis", "version": "1.4" }, "last_serial": 5230182, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "4cd2161f80854950c1e7f910197c065b", "sha256": "1bb656690a17b739b03b3ffc629b56afa11288e18a72ec03588b67bc1f6ef09d" }, "downloads": -1, "filename": "pyspa-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4cd2161f80854950c1e7f910197c065b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15298, "upload_time": "2019-05-05T12:49:46", "url": "https://files.pythonhosted.org/packages/aa/fb/09c97cdb9a6b0d2680c3a44de48e8c1e51e556c27a9b6f07c76df96cc74c/pyspa-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e6440978bda0934e2c9913b1ea066e94", "sha256": "4ab8bd8867ecbb3bd2cf704cb84325239db7c8cff56405307df45834f6acc911" }, "downloads": -1, "filename": "pyspa-1.0.tar.gz", "has_sig": false, "md5_digest": "e6440978bda0934e2c9913b1ea066e94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2963, "upload_time": "2019-05-05T12:49:49", "url": "https://files.pythonhosted.org/packages/7a/97/d7d2253e5aaf666e32ad25e96ad104fa0c92a0e7e1e61f749dedf11415ab/pyspa-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "4055032c8b858223729ee1edaaf45937", "sha256": "033cfacce577ac0d0d941b289b1b59bebb01d12bc0f64ca7bb7f93bc10ba9b8c" }, "downloads": -1, "filename": "pyspa-1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4055032c8b858223729ee1edaaf45937", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15298, "upload_time": "2019-05-05T13:07:59", "url": "https://files.pythonhosted.org/packages/47/22/0ccab94a111397e8a463b9f3a59b3ec66a44677ff46df82c204feaa6d8af/pyspa-1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "30d0166db6685921a564c7c5f44fac8f", "sha256": "b61e750ff30b9b1772412eb9efa56862226066609ec5ace54dc61b2bf853c17a" }, "downloads": -1, "filename": "pyspa-1.1.tar.gz", "has_sig": false, "md5_digest": "30d0166db6685921a564c7c5f44fac8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2967, "upload_time": "2019-05-05T13:08:01", "url": "https://files.pythonhosted.org/packages/c3/6e/b65c5aed3b732a8dbc616973ebb95a643a309956243c0791f12acaa27b26/pyspa-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "0c2457e9563f0f25c8adc3fef9dbb618", "sha256": "df8ad48cd5b9c6938a9d9ab33fd2166a45d89f356cdd480db5289e77f239e2f7" }, "downloads": -1, "filename": "pyspa-1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0c2457e9563f0f25c8adc3fef9dbb618", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15299, "upload_time": "2019-05-05T23:40:17", "url": "https://files.pythonhosted.org/packages/02/c2/e9f22998287db8e2aab46f60a08215c6c6c181bf6a624300d53685b2c743/pyspa-1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d16aecd3f25ed26586fae1108a2db647", "sha256": "acc75227374971c3bdb5d413bbb52fe457f52be8ccf1c543e3de156313f96c5e" }, "downloads": -1, "filename": "pyspa-1.2.tar.gz", "has_sig": false, "md5_digest": "d16aecd3f25ed26586fae1108a2db647", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2972, "upload_time": "2019-05-05T23:40:18", "url": "https://files.pythonhosted.org/packages/bd/4b/94db4788c015ad83dad24270dc0fb808da5e887fcccbaecb6140aab09c68/pyspa-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "a5ef647983925aef244a487210d18c49", "sha256": "49a7da417578d9ae97fd2b8716cb0793f999cb8a63c0fd3ff2f82f66e2c6fc8e" }, "downloads": -1, "filename": "pyspa-1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "a5ef647983925aef244a487210d18c49", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15299, "upload_time": "2019-05-05T23:46:37", "url": "https://files.pythonhosted.org/packages/f0/cb/2cdfcf3c8fa5447075d6abf6db03fbf5f5cb318d07dac290760b6a77f66a/pyspa-1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d09c22982cc3ed096281be3eea3656bb", "sha256": "7dd6017818ea3c5d339e7cd40a4654878d6283ff43075f041b62f016ba84baec" }, "downloads": -1, "filename": "pyspa-1.3.tar.gz", "has_sig": false, "md5_digest": "d09c22982cc3ed096281be3eea3656bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2966, "upload_time": "2019-05-05T23:46:38", "url": "https://files.pythonhosted.org/packages/29/4c/309021e57bcd32b465da0f263c044978f7729890c74f89e962e30acbec11/pyspa-1.3.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "ae3142081babf573abf65b37db0e808b", "sha256": "8f756bb3c0c603eca1d27347a811f15598232fa7c5958e8f5a18c4fefbc2b41e" }, "downloads": -1, "filename": "pyspa-1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "ae3142081babf573abf65b37db0e808b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 79232, "upload_time": "2019-05-06T00:28:30", "url": "https://files.pythonhosted.org/packages/8f/56/345828199e1f6f2810cfe874076e5fa0d0655417f2e6e25dfcf1e7cdb086/pyspa-1.4-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ae3142081babf573abf65b37db0e808b", "sha256": "8f756bb3c0c603eca1d27347a811f15598232fa7c5958e8f5a18c4fefbc2b41e" }, "downloads": -1, "filename": "pyspa-1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "ae3142081babf573abf65b37db0e808b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 79232, "upload_time": "2019-05-06T00:28:30", "url": "https://files.pythonhosted.org/packages/8f/56/345828199e1f6f2810cfe874076e5fa0d0655417f2e6e25dfcf1e7cdb086/pyspa-1.4-py3-none-any.whl" } ] }