Skip to main content

ascribe api

Project description

This is a communauty-based python wrapper around the ascribe ownership REST API.

Installation

pip install ascribe

Usage 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

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

ascribe-0.0.7.dev1.tar.gz (3.1 kB view hashes)

Uploaded Source

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