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

Uploaded Source

Built Distribution

eurepoc-0.1.9-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eurepoc-0.1.9.tar.gz
  • Upload date:
  • Size: 190.1 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.9.tar.gz
Algorithm Hash digest
SHA256 61d59e7ce61225047a53f5df3b59b6ad9fd94a78ebb84ffad117c062fb132846
MD5 4c79ed07fcf9d92e28386bc4f6cdb25e
BLAKE2b-256 858e62d3a1112ac20b015a1e8136feed872477022b66dff6078ceeb2239df75b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eurepoc-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 20.0 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 576431ac1aa50bcecc2dfed78dd22a7deed31bb0d0b2e043e250b50bdaa72506
MD5 91b64b9fa87321de93c8cee4474ad6e2
BLAKE2b-256 58ad353670673d399978d3fde82f13b4b4d6339cbf702536fee6edbed0a51c98

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