Privex JsonRPC Emulators
stable
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
»
<no title>
»
privex.rpcemulator.base
»
QuietRequestHandler
»
monthname
Edit on GitHub
monthname
¶
QuietRequestHandler.
monthname
= [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
¶
Read the Docs
v: stable
Versions
latest
stable
Downloads
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.