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

Uploaded Source

Built Distribution

cc_backend_lib-0.3.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cc_backend_lib-0.3.0.tar.gz
  • Upload date:
  • Size: 10.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 e5344c8c85c5b2d6c689f641a2ea45463a549f3df0b95f0988dc297b464c0f3a
MD5 77966405acd4c7e213566e12c9d93b7b
BLAKE2b-256 9277c3df73280675665f4d68d83ff3ae1edfc35f918e6aa2db9ab5ec4fd6c29d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cc_backend_lib-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.6 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 544074bfc487e92d671bc7b1d2b84c866a56fe3b3692575ae715a474e0fdf4c7
MD5 5790250d79b27fad70bb489e05af8db3
BLAKE2b-256 b7690ba7e6edc88cc4b793d11adca43fdb742e84d3ec5e962548dd724ed27eec

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