Privex JsonRPC Emulators
latest
Main:
Privex JsonRPC Emulators documentation
Installation
Download and install from PyPi using pip (recommended)
(Alternative) Manual install from Git
Example Usages
Using a JsonRPC emulator in a unit test
Using a JsonRPC emulator in your code, with a Context Manager
Code Documentation:
privex.rpcemulator.bitcoin
Attributes
fake
internal
Classes
BitcoinEmulator
Methods
__init__
terminate
Functions
getbalance
getblockchaininfo
getnetworkinfo
getnewaddress
getreceivedbyaddress
j_add_tx
j_gen_tx
j_transactions
j_update_blockchaininfo
j_update_networkinfo
listtransactions
sendtoaddress
privex.rpcemulator.base
quiet_serve
_serve
Emulator
Methods
__init__
terminate
Attributes
quiet
use_coverage
QuietRequestHandler
Methods
__init__
address_string
date_time_string
do_POST
end_headers
finish
flush_headers
handle
handle_expect_100
handle_one_request
log_date_time_string
log_error
log_message
log_request
parse_request
send_error
send_header
send_response
send_response_only
setup
version_string
Attributes
default_request_version
disable_nagle_algorithm
error_content_type
error_message_format
monthname
protocol_version
rbufsize
responses
server_version
sys_version
timeout
wbufsize
weekdayname
Unit Testing
How to use the unit tests
Testing pre-requisites
Running via PyTest
Running directly using Python Unittest
Unit Test List / Overview
tests.test_bitcoin
TestBitcoinEmulator
Methods
setUpClass
tearDownClass
test_getblockchaininfo
test_getnetworkinfo
test_getnewaddress
test_send_valid
Attributes
EXTERNAL_ADDRESS
LOCAL_ADDRESS
rpc
Privex JsonRPC Emulators
Docs
»
Index
Edit on GitHub
Index
_
|
A
|
B
|
D
|
E
|
F
|
G
|
H
|
I
|
J
|
L
|
M
|
P
|
Q
|
R
|
S
|
T
|
U
|
V
|
W
_
__init__() (privex.rpcemulator.base.Emulator method)
(privex.rpcemulator.base.QuietRequestHandler method)
(privex.rpcemulator.bitcoin.BitcoinEmulator method)
_serve() (in module privex.rpcemulator.base)
A
address_string() (privex.rpcemulator.base.QuietRequestHandler method)
B
BitcoinEmulator (class in privex.rpcemulator.bitcoin)
,
[1]
D
date_time_string() (privex.rpcemulator.base.QuietRequestHandler method)
default_request_version (privex.rpcemulator.base.QuietRequestHandler attribute)
disable_nagle_algorithm (privex.rpcemulator.base.QuietRequestHandler attribute)
do_POST() (privex.rpcemulator.base.QuietRequestHandler method)
E
Emulator (class in privex.rpcemulator.base)
,
[1]
emulator (tests.test_bitcoin.TestBitcoinEmulator attribute)
,
[1]
end_headers() (privex.rpcemulator.base.QuietRequestHandler method)
error_content_type (privex.rpcemulator.base.QuietRequestHandler attribute)
error_message_format (privex.rpcemulator.base.QuietRequestHandler attribute)
EXTERNAL_ADDRESS (tests.test_bitcoin.TestBitcoinEmulator attribute)
,
[1]
,
[2]
F
fake (in module privex.rpcemulator.bitcoin)
,
[1]
finish() (privex.rpcemulator.base.QuietRequestHandler method)
flush_headers() (privex.rpcemulator.base.QuietRequestHandler method)
G
getbalance() (in module privex.rpcemulator.bitcoin)
,
[1]
getblockchaininfo() (in module privex.rpcemulator.bitcoin)
,
[1]
getnetworkinfo() (in module privex.rpcemulator.bitcoin)
,
[1]
getnewaddress() (in module privex.rpcemulator.bitcoin)
,
[1]
getreceivedbyaddress() (in module privex.rpcemulator.bitcoin)
,
[1]
H
handle() (privex.rpcemulator.base.QuietRequestHandler method)
handle_expect_100() (privex.rpcemulator.base.QuietRequestHandler method)
handle_one_request() (privex.rpcemulator.base.QuietRequestHandler method)
I
internal (in module privex.rpcemulator.bitcoin)
,
[1]
J
j_add_tx() (in module privex.rpcemulator.bitcoin)
,
[1]
j_gen_tx() (in module privex.rpcemulator.bitcoin)
,
[1]
j_transactions() (in module privex.rpcemulator.bitcoin)
,
[1]
j_update_blockchaininfo() (in module privex.rpcemulator.bitcoin)
,
[1]
j_update_networkinfo() (in module privex.rpcemulator.bitcoin)
,
[1]
L
listtransactions() (in module privex.rpcemulator.bitcoin)
,
[1]
LOCAL_ADDRESS (tests.test_bitcoin.TestBitcoinEmulator attribute)
,
[1]
,
[2]
log_date_time_string() (privex.rpcemulator.base.QuietRequestHandler method)
log_error() (privex.rpcemulator.base.QuietRequestHandler method)
log_message() (privex.rpcemulator.base.QuietRequestHandler method)
,
[1]
,
[2]
log_request() (privex.rpcemulator.base.QuietRequestHandler method)
M
monthname (privex.rpcemulator.base.QuietRequestHandler attribute)
P
parse_request() (privex.rpcemulator.base.QuietRequestHandler method)
privex.rpcemulator.base (module)
privex.rpcemulator.bitcoin (module)
proc (privex.rpcemulator.base.Emulator attribute)
,
[1]
protocol_version (privex.rpcemulator.base.QuietRequestHandler attribute)
Q
quiet (privex.rpcemulator.base.Emulator attribute)
,
[1]
,
[2]
quiet_serve() (in module privex.rpcemulator.base)
,
[1]
QuietRequestHandler (class in privex.rpcemulator.base)
,
[1]
R
rbufsize (privex.rpcemulator.base.QuietRequestHandler attribute)
responses (privex.rpcemulator.base.QuietRequestHandler attribute)
rpc (tests.test_bitcoin.TestBitcoinEmulator attribute)
S
send_error() (privex.rpcemulator.base.QuietRequestHandler method)
send_header() (privex.rpcemulator.base.QuietRequestHandler method)
send_response() (privex.rpcemulator.base.QuietRequestHandler method)
send_response_only() (privex.rpcemulator.base.QuietRequestHandler method)
sendtoaddress() (in module privex.rpcemulator.bitcoin)
,
[1]
server_version (privex.rpcemulator.base.QuietRequestHandler attribute)
setup() (privex.rpcemulator.base.QuietRequestHandler method)
setUpClass() (tests.test_bitcoin.TestBitcoinEmulator class method)
,
[1]
,
[2]
sys_version (privex.rpcemulator.base.QuietRequestHandler attribute)
T
tearDownClass() (tests.test_bitcoin.TestBitcoinEmulator class method)
,
[1]
,
[2]
terminate() (privex.rpcemulator.base.Emulator method)
,
[1]
,
[2]
(privex.rpcemulator.bitcoin.BitcoinEmulator method)
test_get_transaction() (tests.test_bitcoin.TestBitcoinEmulator method)
,
[1]
test_getblockchaininfo() (tests.test_bitcoin.TestBitcoinEmulator method)
,
[1]
,
[2]
test_getnetworkinfo() (tests.test_bitcoin.TestBitcoinEmulator method)
,
[1]
,
[2]
test_getnewaddress() (tests.test_bitcoin.TestBitcoinEmulator method)
,
[1]
,
[2]
test_send_valid() (tests.test_bitcoin.TestBitcoinEmulator method)
,
[1]
,
[2]
test_validate_address() (tests.test_bitcoin.TestBitcoinEmulator method)
,
[1]
TestBitcoinEmulator (class in tests.test_bitcoin)
,
[1]
tests (module)
tests.test_bitcoin (module)
timeout (privex.rpcemulator.base.QuietRequestHandler attribute)
U
use_coverage (privex.rpcemulator.base.Emulator attribute)
,
[1]
,
[2]
V
version_string() (privex.rpcemulator.base.QuietRequestHandler method)
W
wbufsize (privex.rpcemulator.base.QuietRequestHandler attribute)
weekdayname (privex.rpcemulator.base.QuietRequestHandler attribute)
Read the Docs
v: latest
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.