Merge branch 'master' into fix_log_exceptions
This commit is contained in:
commit
51263f380e
6 changed files with 194 additions and 79 deletions
|
@ -1,5 +1,5 @@
|
||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 0.13.1rc1
|
current_version = 0.13.1
|
||||||
commit = True
|
commit = True
|
||||||
tag = True
|
tag = True
|
||||||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<candidate>\d+))?
|
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<candidate>\d+))?
|
||||||
|
|
47
CHANGELOG.md
47
CHANGELOG.md
|
@ -9,31 +9,52 @@ at anytime.
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Added
|
### Added
|
||||||
* Add `claim_send_to_address`
|
*
|
||||||
* Add `change_address` argument to `publish`
|
*
|
||||||
* Add `unique_contacts` count to `status` response
|
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* Support resolution of multiple uris with `resolve`, all results are keyed by uri
|
*
|
||||||
* Add `error` responses for failed resolves
|
*
|
||||||
* Add `claim_list_by_channel`, supports multiple channel resolution
|
|
||||||
* Rename delete_target_file argument of delete API command to delete_from_download_dir
|
|
||||||
* Rename delete_all CLI flag -a to --delete_all
|
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
* Race condition from improper initialization and shutdown of the blob manager database
|
|
||||||
* Various fixes for GetStream class used in API command get
|
|
||||||
* Download analytics error
|
|
||||||
* Fixed flag options in file_delete API command
|
|
||||||
* Fixed some log messages throwing exceptions
|
* Fixed some log messages throwing exceptions
|
||||||
|
*
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
* Remove `claims_in_channel` from `resolve` response
|
|
||||||
*
|
*
|
||||||
|
*
|
||||||
|
|
||||||
|
## [0.13.1] - 2017-06-15
|
||||||
|
|
||||||
|
### Added
|
||||||
|
* Add `claim_send_to_address`
|
||||||
|
* Add `change_address` argument to `publish`
|
||||||
|
* Add `unique_contacts` count to `status` response
|
||||||
|
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
* Support resolution of multiple uris with `resolve`, all results are keyed by uri
|
||||||
|
* Add `error` responses for failed resolves
|
||||||
|
* Add `claim_list_by_channel`, supports multiple channel resolution
|
||||||
|
* Rename delete_target_file argument of delete API command to delete_from_download_dir
|
||||||
|
* Rename delete_all CLI flag -a to --delete_all
|
||||||
|
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
* Remove `claims_in_channel` from `resolve` response
|
||||||
|
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* Race condition from improper initialization and shutdown of the blob manager database
|
||||||
|
* Various fixes for GetStream class used in API command get
|
||||||
|
* Download analytics error
|
||||||
|
* Fixed flag options in file_delete API command
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.11.0] - 2017-06-09
|
## [0.11.0] - 2017-06-09
|
||||||
|
|
||||||
|
|
218
docs/cli.md
218
docs/cli.md
|
@ -144,7 +144,7 @@ Return:
|
||||||
## claim_list
|
## claim_list
|
||||||
|
|
||||||
```text
|
```text
|
||||||
Get claims for a name
|
List current claims and information about them for a given name
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
claim_list (<name> | --name=<name>)
|
claim_list (<name> | --name=<name>)
|
||||||
|
@ -171,6 +171,58 @@ Returns
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## claim_list_by_channel
|
||||||
|
|
||||||
|
```text
|
||||||
|
Get paginated claims in a channel specified by a channel uri
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
claim_list_by_channel (<uri> | --uri=<uri>) [<uris>...] [--page=<page>]
|
||||||
|
[--page_size=<page_size>]
|
||||||
|
|
||||||
|
Options:
|
||||||
|
--page=<page> : which page of results to return where page 1 is the first
|
||||||
|
page, defaults to no pages
|
||||||
|
--page_size=<page_size> : number of results in a page, default of 10
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
{
|
||||||
|
resolved channel uri: {
|
||||||
|
If there was an error:
|
||||||
|
'error': (str) error message
|
||||||
|
|
||||||
|
'claims_in_channel_pages': total number of pages with <page_size> results,
|
||||||
|
|
||||||
|
If a page of results was requested:
|
||||||
|
'returned_page': page number returned,
|
||||||
|
'claims_in_channel': [
|
||||||
|
{
|
||||||
|
'absolute_channel_position': (int) claim index number in sorted list of
|
||||||
|
claims which assert to be part of the
|
||||||
|
channel
|
||||||
|
'address': (str) claim address,
|
||||||
|
'amount': (float) claim amount,
|
||||||
|
'effective_amount': (float) claim amount including supports,
|
||||||
|
'claim_id': (str) claim id,
|
||||||
|
'claim_sequence': (int) claim sequence number,
|
||||||
|
'decoded_claim': (bool) whether or not the claim value was decoded,
|
||||||
|
'height': (int) claim height,
|
||||||
|
'depth': (int) claim depth,
|
||||||
|
'has_signature': (bool) included if decoded_claim
|
||||||
|
'name': (str) claim name,
|
||||||
|
'supports: (list) list of supports [{'txid': txid,
|
||||||
|
'nout': nout,
|
||||||
|
'amount': amount}],
|
||||||
|
'txid': (str) claim txid,
|
||||||
|
'nout': (str) claim nout,
|
||||||
|
'signature_is_valid': (bool), included if has_signature,
|
||||||
|
'value': ClaimDict if decoded, otherwise hex string
|
||||||
|
}
|
||||||
|
],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## claim_list_mine
|
## claim_list_mine
|
||||||
|
|
||||||
```text
|
```text
|
||||||
|
@ -219,6 +271,21 @@ Return:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## claim_send_to_address
|
||||||
|
|
||||||
|
```text
|
||||||
|
Send a name claim to an address
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
claim_send_to_address (<claim_id> | --claim_id=<claim_id>)
|
||||||
|
(<address> | --address=<address>)
|
||||||
|
[<amount> | --amount=<amount>]
|
||||||
|
|
||||||
|
Options:
|
||||||
|
<amount> : Amount of credits to claim name for, defaults to the current amount
|
||||||
|
on the claim
|
||||||
|
```
|
||||||
|
|
||||||
## claim_show
|
## claim_show
|
||||||
|
|
||||||
```text
|
```text
|
||||||
|
@ -253,14 +320,15 @@ Returns:
|
||||||
```text
|
```text
|
||||||
This command is only for testing the CLI argument parsing
|
This command is only for testing the CLI argument parsing
|
||||||
Usage:
|
Usage:
|
||||||
cli_test_command (<pos_arg> | --pos_arg=<pos_arg>)
|
cli_test_command [-a] [-b] (<pos_arg> | --pos_arg=<pos_arg>)
|
||||||
[<pos_args>...] [--pos_arg2=<pos_arg2>]
|
[<pos_args>...] [--pos_arg2=<pos_arg2>]
|
||||||
[--pos_arg3=<pos_arg3>]
|
[--pos_arg3=<pos_arg3>]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
-a, --a_arg : a arg
|
||||||
|
-b, --b_arg : b arg
|
||||||
<pos_arg2>, --pos_arg2=<pos_arg2> : pos arg 2
|
<pos_arg2>, --pos_arg2=<pos_arg2> : pos arg 2
|
||||||
<pos_arg3>, --pos_arg3=<pos_arg3> : pos arg 3
|
<pos_arg3>, --pos_arg3=<pos_arg3> : pos arg 3
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
pos args
|
pos args
|
||||||
```
|
```
|
||||||
|
@ -295,21 +363,24 @@ Returns:
|
||||||
Delete a LBRY file
|
Delete a LBRY file
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
file_delete [-a | -f] [--sd_hash=<sd_hash>] [--file_name=<file_name>]
|
file_delete [-f] [--delete_all] [--sd_hash=<sd_hash>] [--file_name=<file_name>]
|
||||||
[--stream_hash=<stream_hash>] [--claim_id=<claim_id>]
|
[--stream_hash=<stream_hash>] [--claim_id=<claim_id>]
|
||||||
[--outpoint=<outpoint>] [--rowid=<rowid>]
|
[--outpoint=<outpoint>] [--rowid=<rowid>]
|
||||||
[--name=<name>]
|
[--name=<name>]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-a : delete file from downloads and delete stored blobs
|
-f, --delete_from_download_dir : delete file from download directory,
|
||||||
-f : delete only from downloads, do not delete blobs
|
instead of just deleting blobs
|
||||||
--sd_hash=<sd_hash> : delete by file sd hash
|
--delete_all : if there are multiple matching files,
|
||||||
--file_name<file_name> : delete by file name in downloads folder
|
allow the deletion of multiple files.
|
||||||
--stream_hash=<stream_hash> : delete by file stream hash
|
Otherwise do not delete anything.
|
||||||
--claim_id=<claim_id> : delete by file claim id
|
--sd_hash=<sd_hash> : delete by file sd hash
|
||||||
--outpoint=<outpoint> : delete by file claim outpoint
|
--file_name<file_name> : delete by file name in downloads folder
|
||||||
--rowid=<rowid> : delete by file row id
|
--stream_hash=<stream_hash> : delete by file stream hash
|
||||||
--name=<name> : delete by associated name claim of file
|
--claim_id=<claim_id> : delete by file claim id
|
||||||
|
--outpoint=<outpoint> : delete by file claim outpoint
|
||||||
|
--rowid=<rowid> : delete by file row id
|
||||||
|
--name=<name> : delete by associated name claim of file
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
(bool) true if deletion was successful
|
(bool) true if deletion was successful
|
||||||
|
@ -498,7 +569,7 @@ Usage:
|
||||||
[--license=<license>] [--license_url=<license_url>] [--thumbnail=<thumbnail>]
|
[--license=<license>] [--license_url=<license_url>] [--thumbnail=<thumbnail>]
|
||||||
[--preview=<preview>] [--nsfw=<nsfw>] [--sources=<sources>]
|
[--preview=<preview>] [--nsfw=<nsfw>] [--sources=<sources>]
|
||||||
[--channel_name=<channel_name>] [--channel_id=<channel_id>]
|
[--channel_name=<channel_name>] [--channel_id=<channel_id>]
|
||||||
[--claim_address=<claim_address>]
|
[--claim_address=<claim_address>] [--change_address=<change_address>]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--metadata=<metadata> : ClaimDict to associate with the claim.
|
--metadata=<metadata> : ClaimDict to associate with the claim.
|
||||||
|
@ -571,39 +642,22 @@ Returns:
|
||||||
## resolve
|
## resolve
|
||||||
|
|
||||||
```text
|
```text
|
||||||
Resolve a LBRY URI
|
Resolve given LBRY URIs
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
resolve <uri> [-f]
|
resolve [-f] (<uri> | --uri=<uri>) [<uris>...]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-f : force refresh and ignore cache
|
-f : force refresh and ignore cache
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
None if nothing can be resolved, otherwise:
|
Dictionary of results, keyed by uri
|
||||||
If uri resolves to a channel or a claim in a channel:
|
'<uri>': {
|
||||||
'certificate': {
|
If a resolution error occurs:
|
||||||
'address': (str) claim address,
|
'error': Error message
|
||||||
'amount': (float) claim amount,
|
|
||||||
'effective_amount': (float) claim amount including supports,
|
If the uri resolves to a channel or a claim in a channel:
|
||||||
'claim_id': (str) claim id,
|
'certificate': {
|
||||||
'claim_sequence': (int) claim sequence number,
|
|
||||||
'decoded_claim': (bool) whether or not the claim value was decoded,
|
|
||||||
'height': (int) claim height,
|
|
||||||
'depth': (int) claim depth,
|
|
||||||
'has_signature': (bool) included if decoded_claim
|
|
||||||
'name': (str) claim name,
|
|
||||||
'supports: (list) list of supports [{'txid': txid,
|
|
||||||
'nout': nout,
|
|
||||||
'amount': amount}],
|
|
||||||
'txid': (str) claim txid,
|
|
||||||
'nout': (str) claim nout,
|
|
||||||
'signature_is_valid': (bool), included if has_signature,
|
|
||||||
'value': ClaimDict if decoded, otherwise hex string
|
|
||||||
}
|
|
||||||
If uri resolves to a channel:
|
|
||||||
'claims_in_channel': [
|
|
||||||
{
|
|
||||||
'address': (str) claim address,
|
'address': (str) claim address,
|
||||||
'amount': (float) claim amount,
|
'amount': (float) claim amount,
|
||||||
'effective_amount': (float) claim amount including supports,
|
'effective_amount': (float) claim amount including supports,
|
||||||
|
@ -622,28 +676,28 @@ Returns:
|
||||||
'signature_is_valid': (bool), included if has_signature,
|
'signature_is_valid': (bool), included if has_signature,
|
||||||
'value': ClaimDict if decoded, otherwise hex string
|
'value': ClaimDict if decoded, otherwise hex string
|
||||||
}
|
}
|
||||||
]
|
|
||||||
If uri resolves to a claim:
|
If the uri resolves to a claim:
|
||||||
'claim': {
|
'claim': {
|
||||||
'address': (str) claim address,
|
'address': (str) claim address,
|
||||||
'amount': (float) claim amount,
|
'amount': (float) claim amount,
|
||||||
'effective_amount': (float) claim amount including supports,
|
'effective_amount': (float) claim amount including supports,
|
||||||
'claim_id': (str) claim id,
|
'claim_id': (str) claim id,
|
||||||
'claim_sequence': (int) claim sequence number,
|
'claim_sequence': (int) claim sequence number,
|
||||||
'decoded_claim': (bool) whether or not the claim value was decoded,
|
'decoded_claim': (bool) whether or not the claim value was decoded,
|
||||||
'height': (int) claim height,
|
'height': (int) claim height,
|
||||||
'depth': (int) claim depth,
|
'depth': (int) claim depth,
|
||||||
'has_signature': (bool) included if decoded_claim
|
'has_signature': (bool) included if decoded_claim
|
||||||
'name': (str) claim name,
|
'name': (str) claim name,
|
||||||
'channel_name': (str) channel name if claim is in a channel
|
'channel_name': (str) channel name if claim is in a channel
|
||||||
'supports: (list) list of supports [{'txid': txid,
|
'supports: (list) list of supports [{'txid': txid,
|
||||||
'nout': nout,
|
'nout': nout,
|
||||||
'amount': amount}]
|
'amount': amount}]
|
||||||
'txid': (str) claim txid,
|
'txid': (str) claim txid,
|
||||||
'nout': (str) claim nout,
|
'nout': (str) claim nout,
|
||||||
'signature_is_valid': (bool), included if has_signature,
|
'signature_is_valid': (bool), included if has_signature,
|
||||||
'value': ClaimDict if decoded, otherwise hex string
|
'value': ClaimDict if decoded, otherwise hex string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -718,6 +772,46 @@ Usage:
|
||||||
Options:
|
Options:
|
||||||
-s : include session status in results
|
-s : include session status in results
|
||||||
-d : include dht network and peer status
|
-d : include dht network and peer status
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
(dict) lbrynet-daemon status
|
||||||
|
{
|
||||||
|
'lbry_id': lbry peer id, base58
|
||||||
|
'installation_id': installation id, base58
|
||||||
|
'is_running': bool
|
||||||
|
'is_first_run': bool
|
||||||
|
'startup_status': {
|
||||||
|
'code': status code
|
||||||
|
'message': status message
|
||||||
|
},
|
||||||
|
'connection_status': {
|
||||||
|
'code': connection status code
|
||||||
|
'message': connection status message
|
||||||
|
},
|
||||||
|
'blockchain_status': {
|
||||||
|
'blocks': local blockchain height,
|
||||||
|
'blocks_behind': remote_height - local_height,
|
||||||
|
'best_blockhash': block hash of most recent block,
|
||||||
|
},
|
||||||
|
|
||||||
|
If given the session status option:
|
||||||
|
'session_status': {
|
||||||
|
'managed_blobs': count of blobs in the blob manager,
|
||||||
|
'managed_streams': count of streams in the file manager
|
||||||
|
}
|
||||||
|
|
||||||
|
If given the dht status option:
|
||||||
|
'dht_status': {
|
||||||
|
'kbps_received': current kbps receiving,
|
||||||
|
'kbps_sent': current kdps being sent,
|
||||||
|
'total_bytes_sent': total bytes sent
|
||||||
|
'total_bytes_received': total bytes received
|
||||||
|
'queries_received': number of queries received per second
|
||||||
|
'queries_sent': number of queries sent per second
|
||||||
|
'recent_contacts': count of recently contacted peers
|
||||||
|
'unique_contacts': count of unique peers
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## stream_cost_estimate
|
## stream_cost_estimate
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
__version__ = "0.13.1rc1"
|
__version__ = "0.13.1"
|
||||||
version = tuple(__version__.split('.'))
|
version = tuple(__version__.split('.'))
|
||||||
|
|
||||||
logging.getLogger(__name__).addHandler(logging.NullHandler())
|
logging.getLogger(__name__).addHandler(logging.NullHandler())
|
||||||
|
|
|
@ -14,7 +14,7 @@ jsonrpc==1.2
|
||||||
jsonrpclib==0.1.7
|
jsonrpclib==0.1.7
|
||||||
jsonschema==2.5.1
|
jsonschema==2.5.1
|
||||||
git+https://github.com/lbryio/lbryschema.git@v0.0.7#egg=lbryschema
|
git+https://github.com/lbryio/lbryschema.git@v0.0.7#egg=lbryschema
|
||||||
git+https://github.com/lbryio/lbryum.git@v2.8.2#egg=lbryum
|
git+https://github.com/lbryio/lbryum.git@v2.8.4#egg=lbryum
|
||||||
miniupnpc==1.9
|
miniupnpc==1.9
|
||||||
pbkdf2==1.3
|
pbkdf2==1.3
|
||||||
pycrypto==2.6.1
|
pycrypto==2.6.1
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -21,7 +21,7 @@ requires = [
|
||||||
'envparse',
|
'envparse',
|
||||||
'jsonrpc',
|
'jsonrpc',
|
||||||
'jsonschema',
|
'jsonschema',
|
||||||
'lbryum==2.8.2',
|
'lbryum==2.8.4',
|
||||||
'lbryschema==0.0.7',
|
'lbryschema==0.0.7',
|
||||||
'miniupnpc',
|
'miniupnpc',
|
||||||
'pycrypto',
|
'pycrypto',
|
||||||
|
|
Loading…
Add table
Reference in a new issue