Skip to main content

Python interface to the Colectica API

Project description

Overview

Colectica Portal can be accessed using the Rest API.

Other examples are available on the Colectica Docs at https://docs.colectica.com/portal/api/examples/ and the API documentation is available at https://discovery.closer.ac.uk/swagger/index.html

Installation

pip install colectica_api

Basic usage

from colectica_api import ColecticaObject
C = ColecticaObject(colectica.example.com, <username>, <password>)
C.search_item(...)

See example.ipynb for a more complete example.

Closer Discovery relationship graph

Work-in-progress!

graph LR
  QG[Question Group] --> Concept
  QG[Question Group] --> QG[Question Group]
  VG[Variable Group] --> Concept
  CS[Concept Set] --> Concept
  Project --> Series
  Series --> Organization
  Series --> Universe
  Series --> Study
  Study --> Organization
  Study --> Universe
  Study --> DaC[Data Collection]
  Study --> DaF[Data File]
  DaC[Data Collection] --> Organization
  Instrument --> Sequence
  Sequence --> Sequence
  Sequence --> Statement
  Sequence --> QA[Question Activity]
  QA[Question Activity] --> Question
  Question --> CoS[Code Set]
  CoS --> Category
  CCS[Control Construct Set] --> Sequence
  Conditional --> Sequence
  CCS[Control Construct Set] --> Conditional
  CCS[Control Construct Set] --> Statement
  CCS[Control Construct Set] --> QA[Question Activity]
  DaF[Data file] --> DL[Data Layout]
  DaF[Data file] --> VaS[Variable Statistic]
  VaS[Variable Statistic] --> Variable

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

Colectica_API-0.0.3.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

Colectica_API-0.0.3-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file Colectica_API-0.0.3.tar.gz.

File metadata

  • Download URL: Colectica_API-0.0.3.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for Colectica_API-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b5a96f464bd92df4c0a08fa01493f0ba90143ae9662953c6f6afb414ecbd82a7
MD5 7eb87eee0b0cb8f67a9802c921579d87
BLAKE2b-256 2cd2d758ac492ccabecd576a98cac62bac0aeb39a0f951820727525f31c145a0

See more details on using hashes here.

File details

Details for the file Colectica_API-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for Colectica_API-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c6bf6c693bec10282201af1704063c30cfdb5c380d79374cbcfa9d37123b9f3b
MD5 6bf8ee94e835316840bddec65dd65207
BLAKE2b-256 92941c849a5e53aa9239fe402c8d41e9d2a401314b9034d4cdfc7f3c8c4d30c6

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