pysal/spaghetti
SPAtial GrapHs: nETworks, Topology, & Inference
Spaghetti is an open-source Python library for the analysis of network-based spatial data. Originating from the network module in PySAL (Python Spatial Analysis Library), it is under active development for the inclusion of newly proposed methods for building graph-theoretic networks and the analysis of network events.
An example of a network's minimum spanning tree:
| 🍝 |
Examples
The following are a selection of some examples that can be launched individually as interactive binders from the links on their respective pages. Additional examples can be found in the Tutorials section of the documentation. See the pysal/notebooks project for a jupyter-book version of this repository.
Installation
As of version 1.4.2, spaghetti officially supports Python 3.6, 3.7, and 3.8. Please make sure that you are operating in a Python >= 3.6 environment.
Installing with conda via conda-forge (highly recommended)
To install spaghetti and all its dependencies, we recommend using the conda
manager, specifically with the conda-forge channel. This can be obtained by installing the Anaconda Distribution (a free Python distribution for data science), or through miniconda (minimal distribution only containing Python and the conda package manager).
Using conda, spaghetti can be installed as follows:
$ conda config --set channel_priority strict
$ conda install --channel conda-forge spaghetti
Also, geopandas provides a nice example to create a fresh environment for working with spatial data.
Installing with PyPI
$ pip install spaghetti
or download the source distribution (.tar.gz) and decompress it to your selected destination. Open a command shell and navigate to the decompressed folder.
$ pip install .
Warning
When installing via pip, you have to ensure that the required dependencies for spaghetti are installed on your operating system. Details on how to install these packages are linked below. Using conda (above) avoids having to install the dependencies separately.
Install the most current development version of spaghetti by running:
$ pip install git+https://github.com/pysal/spaghetti
Requirements
Soft Dependencies
Contribute
PySAL-spaghetti is under active development and contributors are welcome.
If you have any suggestions, feature requests, or bug reports, please open new issues on GitHub. To submit patches, please review PySAL: Getting Started, the PySAL development guidelines, the spaghetti contributing guidelines before opening a pull request. Once your changes get merged, you’ll automatically be added to the Contributors List.
Support
If you are having issues, please create an issue or talk to us in the gitter room.
Code of Conduct
As a PySAL-federated project, spaghetti follows the Code of Conduct under the PySAL governance model.
License
The project is licensed under the BSD 3-Clause license.
BibTeX Citation
If you use PySAL-spaghetti in a scientific publication, we would appreciate using the following citation:
@misc{Gaboardi2018,
author = {Gaboardi, James D. and Laura, Jay and Rey, Sergio and
Wolf, Levi John and Folch, David C. and Kang, Wei and
Stephens, Philip and Schmidt, Charles},
month = {oct},
year = {2018},
title = {pysal/spaghetti},
url = {https://github.com/pysal/spaghetti},
doi = {10.5281/zenodo.1343650},
keywords = {graph-theory,network-analysis,python,spatial-networks,topology}
}
Funding
This project is/was partially funded through:
Atlanta Research Data Center: A Polygon-Based Approach to Spatial Network Allocation
National Science Foundation Award #1825768: National Historical Geographic Information System
Metadata
Release files for spaghetti 1.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spaghetti-1.5.2.tar.gz | 55.8 kB | Without provenance | Details for spaghetti-1.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spaghetti-1.5.2-py3-none-any.whl | Python 3 | none | any | Details for spaghetti-1.5.2-py3-none-any.whl |
Total release size: 99.5 kB
Release files / spaghetti-1.5.2.tar.gz
| Download URL | spaghetti-1.5.2.tar.gz |
|---|---|
| Size | 55.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
382235adaccbe395a9c81023b3ec7618fd7f78b09f9be6001c862d7d75c9eb9d
|
|
BLAKE2b-256 checksum How to use checksums |
8dd8e541af02db6922180969db9d0f21eb1cac1a463e705557df168f18760778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
|
Release files / spaghetti-1.5.2-py3-none-any.whl
| Download URL | spaghetti-1.5.2-py3-none-any.whl |
|---|---|
| Size | 43.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f8e1095581357b928c5eae8f2ed9290a2f8eb08c949d440f7e4ed49bd98c1b2
|
|
BLAKE2b-256 checksum How to use checksums |
7cecdd5cf304fe47c52ed8d5cc77d9d5140454606917d22be557d87f388e8baf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6
|
Security for spaghetti 1.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.