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-0.1.3.tar.gz (174.3 kB view details)

Uploaded Source

Built Distribution

eurepoc-0.1.3-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file eurepoc-0.1.3.tar.gz.

File metadata

  • Download URL: eurepoc-0.1.3.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

Hashes for eurepoc-0.1.3.tar.gz
Algorithm Hash digest
SHA256 af3a67e85268bc372f9fbf2db363357105cb8166ee8e8d558f66e97b39190629
MD5 7117f591e24fdb05e97caafd02cb81cb
BLAKE2b-256 aa46c38ba9409761a28b1155d0fc149c49395cd68089ccee7961c907cb26d945

See more details on using hashes here.

File details

Details for the file eurepoc-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: eurepoc-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.9

File hashes

Hashes for eurepoc-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7cd93beb7ca4dcebc33215f6c3276365f8c0afae3c19c942f33e3d74f70ce1eb
MD5 1ce25ed3e3b122b73b9526f36827e9bf
BLAKE2b-256 63bcb6928d7ecff50cc1d9156eeadcd7aa9af3333bbaa61ea617870f03ea0917

See more details on using hashes here.

Supported by

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