Skip to main content

A library with classes and types used througout the backend for Conflict Cartographer

Project description

CC Backend Library

tests status

This library contains several classes and data models that are useful when writing services that interact with other services in Conflict Cartographer. In particular, the modules api_client and schema respectively provide classes for retrieving and modelling data from APIs.

Data retrieval

Data retrieval is offered via the cc_backend_lib.dal.Dal class. This class is instantiated by passing several API clients:

from cc_backend_lib.clients import predictions_client, scheduler_client, users_client, countries_client
from cc_backend_lib import dal

cc_dal = dal.Dal(
      predictions = predictions_client.PredictionsClient(...),
      scheduler = scheduler_client.SchedulerClient(...),
      users = users_client.UsersClient(...),
      countries = countries_client.CountriesClient(...),
   )

The class has several methods that offer access to data and summaries. See help(Dal)

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

cc_backend_lib-0.2.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

cc_backend_lib-0.2.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file cc_backend_lib-0.2.0.tar.gz.

File metadata

  • Download URL: cc_backend_lib-0.2.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/21.8.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for cc_backend_lib-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a17518f1dd5e497810d82d2328fb04c261961923301718cf3e34e5d78f7d5d12
MD5 3ec107e57da7be0cc653bddeadab93dc
BLAKE2b-256 888000b4c018fea5418004ff95348f4e7a79b1add803c9653dc9adc86db0194a

See more details on using hashes here.

File details

Details for the file cc_backend_lib-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cc_backend_lib-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/21.8.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for cc_backend_lib-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 201e7400a422e211385cde65284ece2a49d12640c957d430b2546cafed7c88b0
MD5 00e16dad2a318c1c9f7aff1e5ff68071
BLAKE2b-256 59c15bfad65791644e6c2084a44f5de9248f699655b27d74d9454d0e9ea5995e

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