Tools for co-location analysis: metrics, transforms, and utilities.
Project description
colocationpy
A package to identify instances of co-location between mobile individuals in a population.
The package provides:
- Core functionality for detecting when and where co-location occurs.
- Supporting metrics for analysing the outcomes of co-location (entropy, clustering, interaction networks, modularity, etc.).
- Transformations and utilities to handle spatial and temporal alignment, distances, and proximity checks.
Installation
pip install colocationpy
Quickstart
Import the library and detect co-locations from mobility data, then use the built-in tools to explore the results.
Example outline:
- Provide trajectories with individual IDs, positions, and timestamps.
- Use co-location utilities to compute who was in the same place at the same time.
- Analyse the resulting interaction network or entropy measures.
Modules
-
colocationpy (top-level) Main API: co-location detection and related helpers.
-
colocationpy.metrics Functions to analyse co-location results: entropies, clustering coefficient, interaction networks, mutual information, modularity.
-
colocationpy.transformations Functions to align coordinate systems and map simulation timesteps to real datetimes. Used to make heterogeneous mobility data comparable.
-
colocationpy.utils Distance measures, proximity functions, barrier handling, and other helpers used internally and available for advanced users.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colocationpy-0.1.8.tar.gz.
File metadata
- Download URL: colocationpy-0.1.8.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da40e7b4163f65d61aec12e093ceb1ee913202dd5e206faeb9a4d5eea5644760
|
|
| MD5 |
17e7ec0b25d0b5afd6e06dfda06110af
|
|
| BLAKE2b-256 |
f093749a4f9d4fe62492fb62775a05ad35e8352f16d874482874b5c1409b68e5
|
Provenance
The following attestation bundles were made for colocationpy-0.1.8.tar.gz:
Publisher:
publish.yml on ksuchak1990/colocationpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
colocationpy-0.1.8.tar.gz -
Subject digest:
da40e7b4163f65d61aec12e093ceb1ee913202dd5e206faeb9a4d5eea5644760 - Sigstore transparency entry: 449732231
- Sigstore integration time:
-
Permalink:
ksuchak1990/colocationpy@5c798f4db7a14a3d9a7dd834e3c892dde0d744bd -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/ksuchak1990
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5c798f4db7a14a3d9a7dd834e3c892dde0d744bd -
Trigger Event:
push
-
Statement type:
File details
Details for the file colocationpy-0.1.8-py3-none-any.whl.
File metadata
- Download URL: colocationpy-0.1.8-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6744ccd9d0a6c50d39bd332c93c96f000d53b092afbb1233087c0aa923c8d96
|
|
| MD5 |
0f63853d3f5fb18cccb8cd9358af19a4
|
|
| BLAKE2b-256 |
13c2f5a6521c815a53fa3753f2295550b6bfb8ea7a50b7234c240ed6af3e8056
|
Provenance
The following attestation bundles were made for colocationpy-0.1.8-py3-none-any.whl:
Publisher:
publish.yml on ksuchak1990/colocationpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
colocationpy-0.1.8-py3-none-any.whl -
Subject digest:
a6744ccd9d0a6c50d39bd332c93c96f000d53b092afbb1233087c0aa923c8d96 - Sigstore transparency entry: 449732247
- Sigstore integration time:
-
Permalink:
ksuchak1990/colocationpy@5c798f4db7a14a3d9a7dd834e3c892dde0d744bd -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/ksuchak1990
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5c798f4db7a14a3d9a7dd834e3c892dde0d744bd -
Trigger Event:
push
-
Statement type: