colectica-api

Python interface to the Colectica API

https://github.com/closer-cohorts/colectica-api

Science Score: 52.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
    Organization closer-cohorts has institutional domain (www.closer.ac.uk)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.6%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Python interface to the Colectica API

Basic Info
  • Host: GitHub
  • Owner: CLOSER-Cohorts
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 457 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 1
  • Open Issues: 3
  • Releases: 10
Created about 5 years ago · Last pushed 7 months ago
Metadata Files
Readme License Citation

README.md

Overview

This repository provides some utility classes to use the Rest APIs on a Colectica Portal. Developed as an in-house resource for CLOSER, we are making it publicly avaliable for others using the Colectica Portal. If you have any requests or find any bugs, please log it under Issues.

If you want further advice or support please contact us at: closer@ucl.ac.uk

Colectica provide examples at https://docs.colectica.com/repository/functionality/rest-api/examples/ and the Colectica Documentation for the API 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_items(...)

See example.ipynb for a more complete example.

API relationship graph

Colectica Portal supports DDI LIfecycle, the graph below, represents the relationship between the various DDI Elements to enable retrieval of related elements, e.g. variables linked to a specific question

mermaid graph LR QGr[Question Group] --> Concept QGr[Question Group] --> Question QGr[Question Group] --> QG[Question Grid] VG[Variable Group] --> Variable VG[Variable Group] --> Concept UnG[Universe Group] --> Universe Variable --> Question Group --> Organization Group --> Universe Group --> Study Study --> Organization Study --> Universe Study --> DaC[Data Collection] Study --> DaS[Data Set] DaC[Data Collection] --> Organization DaC[Data Collection] ==> Instrument UnG[Universe Group] --> Universe Instrument --> 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] Question --> II[Interviewer Instruction] CoS --> Category CCS[Control Construct Set] --> Sequence Conditional --> Sequence CCS[Control Construct Set] --> Conditional CCS[Control Construct Set] --> Statement CCS[Control Construct Set] --> Loop CCS[Control Construct Set] --> QA[Question Activity] DaS[Data Set] --> VaS[Variable Statistic] DaS[Data Set] --> Variable VaS[Variable Statistic] --> Variable Variable --> VariableRepresentation VariableRepresentation ==> CoS[Code Set] VariableRepresentation ==> Numeric VariableRepresentation ==> Text VariableRepresentation ==> DateTime Loop --> Sequence

Owner

  • Name: CLOSER
  • Login: CLOSER-Cohorts
  • Kind: organization
  • Location: London, UK

CLOSER is funded by the Economic and Social Research Council (ESRC)

Citation (CITATION.CFF)

# YAML 1.2
---
authors: 
  -
    family-names: Li
    given-names: Jenny
cff-version: "1.1.0"
date-released: 2021-10-01
license: MIT
message: "If you use this software, please cite it using these metadata."
repository-code: "https://github.com/CLOSER-Cohorts/colectica_api"
title: "Python interface to the Colectica API"
version: "1.0"
...

GitHub Events

Total
  • Create event: 17
  • Release event: 3
  • Issues event: 22
  • Delete event: 4
  • Issue comment event: 14
  • Push event: 126
  • Gollum event: 3
  • Pull request review comment event: 1
  • Pull request review event: 2
  • Pull request event: 25
Last Year
  • Create event: 17
  • Release event: 3
  • Issues event: 22
  • Delete event: 4
  • Issue comment event: 14
  • Push event: 126
  • Gollum event: 3
  • Pull request review comment event: 1
  • Pull request review event: 2
  • Pull request event: 25

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 5
  • Total pull requests: 5
  • Average time to close issues: 28 days
  • Average time to close pull requests: 8 days
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.8
  • Average comments per pull request: 0.6
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 5
  • Pull requests: 5
  • Average time to close issues: 28 days
  • Average time to close pull requests: 8 days
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.8
  • Average comments per pull request: 0.6
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ollylucl (17)
Pull Request Authors
  • ollylucl (16)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

.github/workflows/python-package.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
.github/workflows/python-publish.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
  • pypa/gh-action-pypi-publish 27b31702a0e7fc50959f5ad993c78deac1bdfc29 composite
pyproject.toml pypi
  • pandas >=1.5.3
  • requests *
requirements.txt pypi
  • pandas >=1.5.3
  • requests *