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

Uploaded Source

Built Distribution

eurepoc-0.1.4-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eurepoc-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 bf6d200037e3f7427c5f56f27c30723696e4e199e88f18722532cbe871e0e9c9
MD5 adcdab9bcda838e8826ae260b5cb0f8c
BLAKE2b-256 fafcff3f3974839510e57d07a2929e50a0f76683bc6ef51b674bd631a5c6f2ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eurepoc-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 19.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 00389eda07b06f6f6209874d456e8c331d792ecbff35d4026a1adc697812d584
MD5 b54d7682d7d8d00d855b5f7d17fe5ace
BLAKE2b-256 2c6136ebfe983efa6661936e191cdde9e6979a520eac164ac8ef2fa567780f6f

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