Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the LBRY wrapper for Python.

Example

import lbry
r = lbry.claim_list("princess-bubblegum")
print(r)

Example response

{
  u 'supports_without_claims': [], u 'claims': [{
    u 'claim_sequence': 1,
    u 'has_signature': False,
    u 'name': u 'princess-bubblegum',
    u 'supports': [],
    u 'valid_at_height': 151322,
    u 'hex': u '080110011ac1010801126b080410011a1c496d616765207075626c69736865642066726f6d20737065652e6368221f416e20696d616765207075626c69736865642066726f6d20737065652e63682a0f68747470733a2f2f737065652e6368320d5075626c696320446f6d61696e38004a0052005a001a50080110011a30916dc7eddd36b81eb7693974a97736249a9667231be0a51af3779f0ffe6efccbbc686b253b6ba195fe3397d3809fbc7022186170706c69636174696f6e2f6f637465742d73747265616d',
    u 'amount': 1.0,
    u 'value': {
      u 'version': u '_0_0_1',
      u 'claimType': u 'streamType',
      u 'stream': {
        u 'source': {
          u 'source': u '916dc7eddd36b81eb7693974a97736249a9667231be0a51af3779f0ffe6efccbbc686b253b6ba195fe3397d3809fbc70',
          u 'version': u '_0_0_1',
          u 'contentType': u 'application/octet-stream',
          u 'sourceType': u 'lbry_sd_hash'
        },
        u 'version': u '_0_0_1',
        u 'metadata': {
          u 'description': u 'An image published from spee.ch',
          u 'license': u 'Public Domain',
          u 'author': u 'https://spee.ch',
          u 'title': u 'Image published from spee.ch',
          u 'language': u 'en',
          u 'version': u '_0_1_0',
          u 'nsfw': False,
          u 'licenseUrl': u '',
          u 'preview': u '',
          u 'thumbnail': u ''
        }
      }
    },
    u 'height': 151322,
    u 'depth': 27997,
    u 'effective_amount': 1.0,
    u 'address': u 'bFzJzGfV4VH6bLUD1er8HQC9XfARzBZ1H6',
    u 'nout': 0,
    u 'txid': u '4479d2913ecf706b46181e9ff139ed486fef400b01b85b11d642b76be547e6d8',
    u 'claim_id': u 'bd13c514379ab1bd8d49848254c3b564b16b5399',
    u 'decoded_claim': True
  }], u 'last_takeover_height': 151322
}

Example with optional parameters

r = lbry.wallet_balance(address=<address>)
print r

To run tests

$ pytest lbry_python_test.py

List of available methods

channel_list_mine ☑️

claim_list_mine ☑️

wallet_balance ☑️

blob_delete ☑️

blob_get ☑️

blob_list ☑️

block_show ☑️

channel_list_mine ☑️

channel_new ☑️

claim_abandon ☑️

claim_list ☑️

claim_list_mine ☑️

claim_new_support ☑️

claim_show ☑️

daemon_stop ☑️

descriptor_get deprecated

file_delete ☑️

file_list ☑️

file_set_status ☑️

get ☑️

get_availability ☑️

peer_list ☑️

publish ☑️

reflect ☑️

report_bug ☑️

resolve ☑️

resolve_name ☑️

send_amount_to_address ☑️

settings_get ☑️

settings_set ☑️

stream_cost_estimate ☑️

transaction_list ☑️

version ☑️

wallet_balance ☑️

wallet_is_address_mine ☑️

wallet_list ☑️

wallet_new_address ☑️

wallet_public_key ☑️

wallet_unused_address ☑️

wallet_list ☑️

wallet_unused_address ☑️

file_set_status ☑️

About

A python wrapper for LBRY credits API.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages