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.

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 = eurepoc.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

eurepoc-0.1.1.tar.gz (174.7 kB view details)

Uploaded Source

Built Distribution

eurepoc-0.1.1-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eurepoc-0.1.1.tar.gz
  • Upload date:
  • Size: 174.7 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.1.tar.gz
Algorithm Hash digest
SHA256 48cdc308c74dd0e7eb0a301f272d45f5d93f30e1f3e1f0f602352c200555392f
MD5 35bb5d3ffa129664e19fe14f6593ea55
BLAKE2b-256 a0841d40fe28d74d18cf65e4d2a7b74e00897ecd8974d8acedd497a0e75c11e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eurepoc-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb3b440f35a9edb796d63fc218b73fd3f54d7659191d767f270e0cea532f1284
MD5 9d424e99f479ef8f40ebd33c20a27a9e
BLAKE2b-256 fbec0d66fb49179e7db59f965d8009d754140dd95dd82c23f609bc33f0890079

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