Skip to main content

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.

📖 The package documentation is available here

Installation

pip install eurepoc

Quickstart

import eurepoc

TOKEN = eurepoc.read_token()

query = eurepoc.DatabaseQuery(
    TOKEN,
    receiver_region="EU",
    receiver_category="Critical infrastructure",
    initiator_country="Russia"
)

data = query.execute_query()

df_generator = eurepoc.IncidentDataFrameGenerator(data)
main_df = df_generator.get_main_data()
receivers_df = df_generator.get_receivers()
attributions_df = df_generator.get_attributions()
initiators_df = df_generator.get_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

eurepoc_wrapper-0.2.1.tar.gz (171.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eurepoc_wrapper-0.2.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file eurepoc_wrapper-0.2.1.tar.gz.

File metadata

  • Download URL: eurepoc_wrapper-0.2.1.tar.gz
  • Upload date:
  • Size: 171.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for eurepoc_wrapper-0.2.1.tar.gz
Algorithm Hash digest
SHA256 29f7f1c2e3cce503078599647b619f3f47590207c217d7f668bc41e786fc4546
MD5 565988af04b581254a4d6a61ff547bb8
BLAKE2b-256 bc2752ec69dfc4aac5883076fecc4d5d799b5f5f738c62824996517314a5a761

See more details on using hashes here.

File details

Details for the file eurepoc_wrapper-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for eurepoc_wrapper-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7d3ba82f0a556626acc8ca5af2ca0d0dea840133b396e08def9e6592a5a3e04
MD5 576159108705b3812b6b58a571a776a5
BLAKE2b-256 6c9afc4bd75861bab44675b8e1f098ed99eab30acd92137add2be8ccf9bf4889

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page