Skip to content

abertschi/ascribe-api-wrapper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ascribe SPOOL API Python Wrapper

https://codecov.io/github/ascribe/ascribe-api-wrapper/coverage.svg?branch=master

ascribe ownership REST API Python wrapper.

Installation

pip install ascribe

Example: Registering a Piece

>>> from ascribe import AscribeWrapper
>>> ascribe_wrapper = AscribeWrapper('your-token')
>>> piece = {
    'file_url': 'https://s3.eu-central-1.amazonaws.com/bucket/img.jpg',
    'artist_name': 'mystery',
    'title': 'universe',
}
>>> ascribe_wrapper.create_piece(piece)
{'piece': {
    'artist_name': 'mystery',
    'bitcoin_id': 'bitcoin-id',
    'date_created': '2015-01-01',
    'datetime_registered': '2015-11-28T20:42:19.917896Z',
    'license_type': {
        'code': 'default',
        'name': 'All rights reserved',
        'organization': 'ascribe',
        'url': 'https://www.ascribe.io/faq/#legals'
    },
    'title': 'universe',
    'user_registered': 'mystery'
    ...
    ...
}}

Documentation

https://ascribe.readthedocs.org

About

👓 Community-based python wrapper for the SPOOL REST API - http://docs.ascribe.apiary.io

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%