Skip to main content

Python wrapper for Bibblio API.

Project description

<img src=”https://avatars2.githubusercontent.com/u/13437736?v=3&s=200” width=”50px”> [![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://proversity.org)

# Bibblio API Python Python wrapper of Bibblio API

Register in [Bibblio](bibblio.org) and get your CLIENT_ID and CLIENT_SECRET

## Install `pip install bibbliothon`

## Configuration `python import bibbliothon `

set client_id and client_secret

`python bibbliothon.client_id = 'YOUR_CLIENT_ID' `

`python bibbliothon.client_secret = 'YOUR_CLIENT_SECRET' `

get access_token

`python bibbliothon.access_token = bibblio.Token.get_access_token()['access_token'] `

  • the access token has a duration of 5 minutes, remember to update it.

## Usage

For more information use [Bibblio API Documentation](http://docs.bibblio.apiary.io/) * payload is always a dict * limit and page are optional and integers * text is a string * content_item_id is a string

### Discovery

`python response = bibbliothon.Discovery.content_recommendations(content_item_id) `

`python (Legacy) response = bibbliothon.Discovery.recommendations(payload) `

### Enrichment

`python response = bibbliothon.Enrichment.create_content_item(payload) `

`python response = bibbliothon.Enrichment.get_content_items(limit=10, page=1) `

`python response = bibbliothon.Enrichment.get_content_item(content_item_id) `

`python response = bibbliothon.Enrichment.update_content_item(content_item_id, payload) `

`python response = bibbliothon.Enrichment.delete_content_item(content_item_id) `

`python (Legacy) response = bibbliothon.Enrichment.metadata(text) `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

bibbliothon-1.2.0-py2-none-any.whl (6.7 kB view details)

Uploaded Python 2

File details

Details for the file bibbliothon-1.2.0-py2-none-any.whl.

File metadata

File hashes

Hashes for bibbliothon-1.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 6ed9b584fb0e404309f9faeb3e66ddc289790574440fbc0760d7d4d0cdf15a71
MD5 4c145719974fe7c0bf2242292d9e37f3
BLAKE2b-256 ce6cf9bbf8c5a873991c45d40eefc6aadcbc22016e291372588f88cbb7d431c1

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