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.5.tar.gz (171.8 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.5-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eurepoc_wrapper-0.2.5.tar.gz
  • Upload date:
  • Size: 171.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.12

File hashes

Hashes for eurepoc_wrapper-0.2.5.tar.gz
Algorithm Hash digest
SHA256 68ee23c1503d142f0d6a4c1ecf0b31ce4f947ce10c1e5b2355d6b2b0fd7445d2
MD5 ab694bd2f2389fbdf5bde9721c876419
BLAKE2b-256 65e93b5f5a67ef5a3c612e9b3575e1f10ea6ad26f62c8d8b25c09e10277e6eeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for eurepoc_wrapper-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7f64278c8b7889143d3440501e2e515f82f105091198301886cd70c4598709fb
MD5 574512ef1db63eb5a4f3581f628a9d3a
BLAKE2b-256 19795d314b49ef479ac6c91f23a7e3cb342462113b758c0ec8fac83a14c9258f

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