A python client for the pubtrack REST api
Project description
A python client for the pubtrack REST api
Free software: MIT license
Documentation: https://pypubtrack.readthedocs.io.
Table of Contents
tbd
Overview
pypubtrack is a python client interface for the PubTrack web applications. PubTrack is a web application, which can be installed on a web server and which provides a web UI for tracking the scientific publications of a workgroup or a whole institute by defining a list of observed authors. All publications published by any one of these observed authors will be imported into the PubTrack database and a Status will be assigned based on the attributes of this publication and a set of rules of how these attributes are supposed to look like.
The PubTrack web app is implemented as a REST API for the backend and a VueJS single page application as the frontend. As it exposes a REST API, there are vast options for this client interface to interact with the application…
Obtaining an API Token
tbd
First Steps
Installation
pypubtrack is a pure python library and can be simply installed using pip:
$ pip3 install pypubtrack
Alternatively it can also be installed by cloning this repository from github and executing the setup manually:
$ git clone https://github.com/the16thpythonist/pypubtrack.git
$ cd pypubtrack
$ python3 setup.py install
Basic Usage
from pypubtrack import Pubtrack
from pypubtrack.config import DEFAULT
config = DEFAULT.copy()
config['token'] = 'MY SUPER SECRET TOKEN'
config['url'] = 'https://pubtrack.com/api/v1'
pubtrack = Pubtrack(config)
try:
publications = pubtrack.publication.get()['results']
for publication in publications:
print(publication)
except ConnectionError:
print('Something went wrong!')
Features
TODO
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pypubtrack-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0f2a53974d2fccb38bad8538235ed956cae711bcf536f39cc202651acdc3676 |
|
MD5 | 9522aecd6a3858144a874bb9b697e1ae |
|
BLAKE2b-256 | e68ae1b78d951e866a034d86bd0ed3d19213e138ed1aa555c4c3dfdc7624001a |