Wrapper for the EuRepoC API
Project description
eurepoc
The EuRepoC package is a wrapper around the main EuRepoC Strapi API. It is designed to streamline data queries through a set of filters and to preprocess, unnest and clean the Strapi output. The IncidentDataFrames class automatically converts the data into multiple pandas dataframes (dfs) for easier manipulation and analysis. These dfs can be easily joined using the incidents_id column.
Refer to the main EuRepoC website for more information about the data collection methodology. The EuRepoC Codebook provides detailed information about the substantive meaning of each of the variables in the data here.
Installation
pip install eurepoc
Quickstart
import eurepoc
TOKEN = eurepoc.read_token()
query_db = eurepoc.DatabaseQuery(
TOKEN,
receiver_region="EU",
receiver_category="Critical infrastructure",
initiator_country="Russia"
)
data = query_db.get_data()
incident_df = IncidentDataFrames(data)
receivers = incident_df.receivers()
attributions = incident_df.attributions()
initiators = incident_df.initiators()
Project details
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
File details
Details for the file eurepoc-0.1.0.tar.gz
.
File metadata
- Download URL: eurepoc-0.1.0.tar.gz
- Upload date:
- Size: 174.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56ab3f628424dec3839cb07f491db3e050ca686ca5860a3a4e6ac91404231674 |
|
MD5 | 1d51948aebb2c68acf20c486c9a9430a |
|
BLAKE2b-256 | fc2e31390979ada12b300e81fa2a6cd628799647a1a5cdbc8f58d494a53fa94e |
File details
Details for the file eurepoc-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: eurepoc-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a57d197f232d0810b00fbb5de1b3f1d123bb03ee7c03aa39a44bf6d08d62482 |
|
MD5 | 7fcb4a007aed519f104e1d8d5238c1e1 |
|
BLAKE2b-256 | 11e34426b6da4490e27b280fb177da9d5275a3d10617245dac7085b5716f2763 |