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
  VS[Variable Set] --> VG[Variable Group]
  QGr[Question Group] --> Concept
  QGr[Question Group] --> QGr[Question Group]
  VG[Variable Group] --> Variable
  VG[Variable Group] --> Concept
  CS[Concept Set] --> Concept
  MetP[Metadata Package] --> InS[Instrument Set]
  MetP[Metadata Package] --> QuS[Question Set]
  MetP[Metadata Package] --> IIS[Interviewer Instruction Set]
  MetP[Metadata Package] --> CCS[Control Construct Set]
  MetP[Metadata Package] --> CaS[Category Set]
  MetP[Metadata Package] --> CLS[Code List Set]
  QuS[Question Set] --> Question
  OrS[Organization Set] -->  Organization
  UnS[Universe Set] --> Universe
  UnG[Universe Group] --> Universe
  Project --> Series
  Series --> Organization
  Series --> Universe
  Series --> Study
  Study --> Organization
  Study --> Universe
  Study --> DaC[Data Collection]
  Study --> DaF[Data File]
  DaC[Data Collection] --> Organization
  UnG[Universe Group] --> Universe
  InS[Instrument Set] --> Instrument
  Instrument --> Sequence
  Sequence --> Sequence
  Sequence --> Statement
  Sequence --> QA[Question Activity]
  QA[Question Activity] --> Question
  QG[Question Grid] --> CoS[Code Set]
  QG[Question Grid] --> II[Interviewer Instruction]
  Question --> CoS[Code Set]
  CLS[Code List Set] --> CoS[Code Set]
  CoS --> Category
  CaS[Category Set] --> 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
  IIS[Interviewer Instruction Set] --> II[Interviewer Instruction]
  loop --> Sequence

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

Uploaded Source

Built Distribution

Colectica_API-0.0.4-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Colectica_API-0.0.4.tar.gz
  • Upload date:
  • Size: 19.5 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.4.tar.gz
Algorithm Hash digest
SHA256 b2c8233320237451440a01cb5ed832b24bfba70c13ef28a67d7ef4bf422603a6
MD5 a80729b58339b175dc7a61d52ea071cf
BLAKE2b-256 122fdfe8b12d8f2c231aa3a24db085250ce0a22cb4e8128308cccf88c0c0acb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Colectica_API-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9a84977cae041b2d13113de3602eea82b07184a9261094350e25818d03ed63cd
MD5 001e7b6f31f1b63aff6ef0eed564582c
BLAKE2b-256 21c047982f8dce3d3b5678a482cfbc6b4232004f34c927382e0e13162a8419db

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