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_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.2.tar.gz (174.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: eurepoc-0.1.2.tar.gz
  • Upload date:
  • Size: 174.9 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.2.tar.gz
Algorithm Hash digest
SHA256 3c864a08aafcf4be4031e276e10a2665082b1a007226176b29370bda275d5cf5
MD5 a6dcd4bff6ae4d5fc80120c4c085b108
BLAKE2b-256 cb55971ae165a330eaa4a6ea08cd91f5f18edbc6cfb8f833c99ce63d33878c68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eurepoc-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfec6b7de2b1133b2309518977cbedbcb5b4289805dad859e1ba80d7dbb82d49
MD5 8731be94bfab2e6f4d5467a721b5ccf8
BLAKE2b-256 49fd4493e1ed19a61c69990aaf4b0d2e4ba19d5fc48ea8e8e36a6e93dd701dce

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