Skip to main content

A Python wrapper for the bioRxiv API.

Project description

https://travis-ci.org/jacquerie/biorxiv-cli.svg?branch=master https://coveralls.io/repos/github/jacquerie/biorxiv-cli/badge.svg?branch=master

About

A Python wrapper for the bioRxiv API.

Install

$ pip install biorxiv-cli

Usage

You can use bioRxiv-CLI as a CLI to navigate bioRxiv or as a library to query its API.

CLI

Currently bioRxiv-CLI implements one subcommand:

$ biorxiv read SUBJECTS

This will print the titles of the 30 most recent posts in one of the comma-separated subjects. For example:

https://raw.githubusercontent.com/jacquerie/biorxiv-cli/master/images/biorxiv-cli-screen.png

If no subjects were given, it will assume by default that all subjects were selected.

API

The previous CLI is built on top of a Python library that can be used on its own to query bioRxiv’s API. For example:

>>> from biorxiv_cli import Client
>>> client = Client()
>>> client.read([SUBJECTS])

will achieve the same effect as

$ biorxiv read SUBJECTS

Author

Jacopo Notarstefano (@Jaconotar)

License

MIT

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

biorxiv-cli-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file biorxiv-cli-0.1.1.tar.gz.

File metadata

  • Download URL: biorxiv-cli-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for biorxiv-cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2774ca797b529ececfab55fac3b963a3ca9bde244d3dd81b9d668988f0cdcf4c
MD5 efc1de27c33cb5271a2d160266f85bc2
BLAKE2b-256 9ba1445c80fe29c2a5c229768d6d190b9a8623598fe9f990c4269e5a4e43ed72

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