Mobilkit
A Python Toolkit for Urban Resilience and Disaster Risk Management Analytics using High Frequency Human Mobility Data
Install / Use
/learn @mindearth/MobilkitREADME
mobilkit
A Python Toolkit for Urban Resilience and Disaster Risk Management Analytics using High Frequency Human Mobility Data.
mobilkit provides a set of tools to analyze mobility traces to assess the users response to extreme events.
Try mobilkit without installing it in a MyBinder notebook:
Table of contents
<a id='documentation'></a>
Documentation
Full documentation with examples can be found online here, otherwise see the notebooks in docs/examples for a step-by-step coverage of the library or the ones in examples/ for a more detailed showcase of the package's capabilities.
<a id='collaborate'></a>
Collaborate with us
mobilkit is an active project and any contribution is welcome.
You are encouraged to report any issue or problem encountered while using the software or to seek for support.
If you would like to contribute or add functionalities to mobilkit, feel free to fork the project, open an issue and contact us.
<a id='installation'></a>
Installation
<a id='installation_pip'></a>
Install with pip
Start by creating an environment and install mobilkit there.
-
Create an environment
mobilkitpython3 -m venv mobilkit # or, on Windows python -m venv c:\path\to\mobilkit -
Activate
source mobilkit/bin/activate # or, on Windows c:\path\to\mobilkit\Scripts\activate.bat -
Update pip
pip install --upgrade pip -
Install
mobilkit(this will also installDaskand all the needed modules)pip install mobilkit -
OPTIONAL to use
mobilkiton the jupyter notebook-
Activate the virutalenv:
source mobilkit/bin/activate -
Install jupyter notebook:
pip install jupyter -
Run jupyter notebook
jupyter notebook -
(Optional) install the kernel with a specific name to your existing notebook server
source mobilkit/bin/activate pip install ipykernel ipython kernel install --user --name=mobilkit_env
-
If you already have scikit-mobility installed, skip the environment creation and run these commands from the skmob anaconda environment.
mobilkit by default will only install core packages needed to run the main functions. There are three optional packages of dipendencies (the mobilkit[complete] installs everything):
[viz]will installcontextily, needed to visualize map backgrounds in certain viz functions;[doc]will install all the needed packages to build the docs;[skmob]will installscikit-mobilityas well;[locations]will also installinfostopto detect users' typical locations.
<a id='installation_conda'></a>
Install with conda
TODO
<a id='test_installation'></a>
Test the installation
> source activate mobilkit
(mobilkit)> python
>>> import mobilkit
>>>
<a id='examples'></a>
Examples
Several notebooks are found in the docs/examples folder, we resume here the most important ones.
<a id='quickstart'></a>
Quickstart
We show the basic usage and functionalities in the mobilkit_tutorial.ipynb notebook.
<a id='citing'></a>
Citing
If you use mobilkit please cite us:
Enrico Ubaldi, Takahiro Yabe, Nicholas Jones, Maham Faisal Khan, Alessandra Feliciotti, Riccardo Di Clemente, Satish V. Ukkusuri and Emanuele Strano Mobilkit: A Python Toolkit for Urban Resilience and Disaster Risk Management Analytics using High Frequency Human Mobility Data, Journal of Open Source Software, 9, 95, 5201, (2024), Doi: 10.21105/joss.05201
Bibtex:
@article{Ubaldi2024, doi = {10.21105/joss.05201},
url = {https://doi.org/10.21105/joss.05201}, year = {2024}, publisher = {The Open Journal}, volume = {9}, number = {95}, pages = {5201},
author = {Enrico Ubaldi and Takahiro Yabe and Nicholas Jones and Maham Faisal Khan and Alessandra Feliciotti and Riccardo Di Clemente and Satish V. Ukkusuri and Emanuele Strano},
title = {Mobilkit: A Python Toolkit for Urban Resilience and Disaster Risk Management Analytics},
journal = {Journal of Open Source Software}}
<a id='credits'></a>
Credits and contacts
This code has been developed by Mindearth, the Global Facility for Disaster Reduction and Recovery (GFDRR) and Purdue University.
Funding was provided by the Spanish Fund for Latin America and the Caribbean (SFLAC) under the Disruptive Technologies for Development (DT4D) program.
The code is released under the MIT license (see the LICENSE file for details).
Related Skills
feishu-drive
342.0k|
things-mac
342.0kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
342.0kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
codebase-memory-mcp
1.1kHigh-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 66 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.
