Skip to main content

ascribe api

Project description

https://travis-ci.org/ascribe/ascribe-api-wrapper.svg 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

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.9.dev1.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file ascribe-0.0.9.dev1.tar.gz.

File metadata

File hashes

Hashes for ascribe-0.0.9.dev1.tar.gz
Algorithm Hash digest
SHA256 7a295e962b4c8733c425e712c09df5e5ebb85b4b9043c4fc4e0e4146976dc942
MD5 1bb12fe9fd2aa65af82c1f70a8559069
BLAKE2b-256 2b93fe20422bf5cef3eb465d947ee49f4f4eadd247877c00a4d2caa75c67e082

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