Skip to main content

A light weight Python library for the Ochre Web API

Project description

Ochrepy

Ochrepy is a Python library. Its primary purpose is to interface with the Ochre API from Python. This can act as a very helpful package for ETL/ELT for Python developers working for music (and music-related) companies.

Table of Contents

Features

Ochrepy supports all features of the web API available at the Ochre API Documentation.

Installation

pip install ochrepy

alternatively, for Windows users

py -m pip install ochrepy

or upgrade

pip install ochrepy --upgrade

Quick Start

Comprehensive documentation will be provided soon, explaining all available methods and abilities of this package. For the meantime, examples can be found in the examples directory.

To use this package, you will need a client ID and a client secret, which you can obtain through your account manager at Ochre.

Example with client authentication

import ochrepy
from ochrepy.auth import OchreClientCredentials

op = ochrepy.Ochre(client_credentials_manager=OchreClientCredentials())

results = op.music_tracks.list()
for track in response['results']:
            pprint(track['title'] + ' - ' + track['artist']['name'])

Expected result will be the list of tracks found in your account.

'Track 1 - Artist 1'
'Track 2 - Artist 2'
'Track 3 - Artist 3'
'Track 4 - Artist 4'
'Track 5 - Artist 5'
'Track 6 - Artist 6'
'Track 7 - Artist 7'
'Track 8 - Artist 8'
'Track 9 - Artist 9'
'Track 10 - Artist 10'

Reporting Issues

If you have suggestions, bugs or other issues specific to this library, file them here. Or just send a pull request.

Contributing

If you are a developer with Python experience, and you would like to contribute to Ochrepy, please be sure to follow the guidelines listed on documentation page.

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

ochrepy-1.0.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

ochrepy-1.0.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file ochrepy-1.0.0.tar.gz.

File metadata

  • Download URL: ochrepy-1.0.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for ochrepy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5d0d9fdba1c795047e66074d93769194aadafa088492f74b9f9dfe51615c8c5a
MD5 2c4d76d77e58dddd2cc9f61f7364b9fe
BLAKE2b-256 2643f7c40842806e73c91723bd69eb636166b5200161ec927d1f4c5f49acce8c

See more details on using hashes here.

File details

Details for the file ochrepy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ochrepy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for ochrepy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53fefea0f930a8ea47ff65f70c5d7f4bcfa70b14b91726ce7bd925848547e4e7
MD5 7a5818ce0024098343a14ee155eadf27
BLAKE2b-256 a51ef1149a34cc2a398e9618e3bc5f4341fdd969642f4fd7d8ddc4226edd37d0

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