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

Uploaded Source

Built Distribution

eurepoc-0.1.5-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eurepoc-0.1.5.tar.gz
  • Upload date:
  • Size: 174.6 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.5.tar.gz
Algorithm Hash digest
SHA256 b387e370ab47d59946497578a8c2f6f809629678fc6455b35250868decfb513c
MD5 365b24cf25a4a6b48232257d63691c1b
BLAKE2b-256 cc185e4e0a7976833783cb169501afac813115ff87c0f2b960bd9ff5c464b0d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eurepoc-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 19.7 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4ddc9256cd6423b955e632ac21871334843e538c552e9889e42c96ac09522d07
MD5 0fe664b9ac3acc738cc91993a2c3e83c
BLAKE2b-256 f426ec8049de917182e5daf0f816853666df05d73e1ee97755408f357b31d537

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