How to use the aquests.rpc function in aquests

To help you get started, we’ve selected a few aquests examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hansroh / aquests / tests / test_rpcssl.py View on Github external
def test_rpcssl ():
    stub = aquests.rpc ("https://pypi.python.org/pypi")
    stub.package_releases('roundup')
    stub.package_releases('roundup')
    stub.package_releases('roundup')
    
    aquests.fetchall ()
github hansroh / aquests / tests / test_post_but_404.py View on Github external
def test_post_but_404 ():
	stub = aquests.rpc ("http://127.0.0.1:5000/rpc2356465")
	stub2 = aquests.rpc ("http://192.168.1.120:5000/rpc2")
	
	for i in range (300):
		stub.add_number (5, 'A' * 2048)
		#stub2.add_number (5, 7)
	
	aquests.fetchall ()
github hansroh / aquests / tests / test_rpc_pypi.py View on Github external
def test_rpc_pypi ():
    stub = aquests.rpc ("https://pypi.python.org/pypi/")
    stub.package_releases('roundup')
    stub.prelease_urls('roundup', '1.4.10')
    
    aquests.fetchall ()
github hansroh / aquests / examples / rpc.py View on Github external
import aquests

aquests.configure (10)
stub = aquests.rpc ("http://127.0.0.1:5000/rpc2")
for i in range (30):
	stub.add_number (5, 7)
aquests.fetchall ()
github hansroh / aquests / aquests / tl.py View on Github external
def make_example_testset ():
	if os.path.isfile (r"D:\apps\skitai\tests\examples"):
		jpg = open (os.path.join (r"D:\apps\skitai\tests\examples", "statics", "reindeer.jpg"), "rb")	
		aquests.upload ("http://127.0.0.1:5000/upload", {"username": "pytest", "file1": jpg})		
	aquests.get ("http://127.0.0.1:5000/")	
	aquests.get ("http://127.0.0.1:5000/members/", auth = ('admin', '1111'))
	aquests.get ("http://127.0.0.1:5000/redirect1")	
	aquests.rpc ("http://127.0.0.1:5000/rpc2/").add_number (1, 2)	
	aquests.ws ("ws://127.0.0.1:5000/websocket/echo-single", "Hello Skitai")
github hansroh / aquests / examples / rpc_pypi.py View on Github external
import aquests

stub = aquests.rpc ("https://pypi.python.org/pypi/")
stub.package_releases('roundup')
stub.prelease_urls('roundup', '1.4.10')

aquests.fetchall ()