SpatialAccessibility Lib
This is a library for spatial accessibility analysis in Python, hosted on https://github.com/wsqstar/SpatialAccessibility .
Inspried by the work of Prof.Fahui Wang and Dr.Lingbo Liu, DOI: 10.1201/9781003292302-14
Installation
To install the library, you can use pip:
# We recommend to use the pypi index url to install the library
!pip install SpatialAccessibility --index-url https://pypi.org/simple
or if you ara using Colab:
!pip install hatchling==1.26.3 build twine
!pip install git+https://github.com/wsqstar/SpatialAccessibility.git
Usage
To use the library, you need to have a od matrix of the study area. You can then use the following code to calculate the spatial accessibility:
from SpatialAccessibility import calculate_accessibility
# @title 示例调用
import pandas as pd
Data_df = pd.read_csv("datasets/Data.csv")
Data_df.rename(columns={'O_Popu': 'O_Demand'}, inplace=True)
Current_Accessibility, summary_accessibility = calculate_accessibility(Data_df,print_out=False)
# Load the dataframe
Metadata
Release files for SpatialAccessibility 0.0.13
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 | |
|---|---|---|---|---|
| spatialaccessibility-0.0.13.tar.gz | 8.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spatialaccessibility-0.0.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / spatialaccessibility-0.0.13.tar.gz
| Download URL | spatialaccessibility-0.0.13.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c89c186315d08dcca54f9d9db319c4f49ca8347cde176fd327e34d2942d414d
|
|
BLAKE2b-256 checksum How to use checksums |
e558dcd7461cd7097cf728d08764eba533d02c7a36955ae167fd4be2a1c02353
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Release files / spatialaccessibility-0.0.13-py3-none-any.whl
| Download URL | spatialaccessibility-0.0.13-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1cbc26823637c01e0cfd8861bbc78a4aec153dbe25ead4a721265b1b28230841
|
|
BLAKE2b-256 checksum How to use checksums |
ac70ac7ebbb7d40c10b9f96179ac0723998492ec1a80900cb975df42aa3f7fe5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Security for SpatialAccessibility 0.0.13
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.