How to use the aquests.fetchall 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_get.py View on Github external
def test_1 (self):			
		aquests.configure (1, callback = self.equal200)
		aquests.get (SERVER)
		aquests.fetchall ()
github hansroh / aquests / tests / test_post_but_404_facebook.py View on Github external
def test_post_but_404_facebook ():
	for i in range (1):
		aquests.postform ("https://www.facebook.com/asdakjdhakjdhajkdhajkd", {"aa.": "a" * 10000000})
	
	aquests.fetchall ()
github hansroh / aquests / tests / test_mongodbex.py View on Github external
def test_mongodbex ():
	dbo = aquests.mongodb ("127.0.0.1:27017", "test_database")
	for i in range (3):
		dbo.findone ("posts", {"author": "Hans Roh"})
	
	aquests.fetchall ()
github hansroh / aquests / tests / examples / get3.py View on Github external
def test_11 (self):			
		aquests.configure (1, callback = self.equal404, force_http1 = True)
		for i in range (10):	
			aquests.get (SERVER + "/no-page")
		aquests.fetchall ()
github hansroh / aquests / tests / examples / get3.py View on Github external
def test_7 (self):			
		aquests.configure (1, callback = self.equal404, force_http1 = True)
		aquests.get (SERVER + "/no-page")
		aquests.fetchall ()
github hansroh / aquests / tests / test_grpc_404.py View on Github external
def test_grpc_404 ():
	stub = aquests.grpc ("http://127.0.0.1:5000/routeguide.RouteGuide_")
	point = route_guide_pb2.Point (latitude=409146138, longitude=-746188906)
	for i in range (3):
		stub.GetFeature (point)
	aquests.fetchall ()
github hansroh / aquests / examples / get_all_20_cs10.py View on Github external
import aquests

def request_finished (r):
	args = (r.status_code, r.reason, len (r.content))
	print ("%s %s %d bytes received" % args, r.version)

aquests.configure (4, callback = request_finished, force_http1 = 0, http2_constreams = 10)
for i in range (1000): 
	aquests.get ("http://127.0.0.1:5001/v1/console/needtofix")	
aquests.fetchall ()
github hansroh / aquests / examples / postgres.py View on Github external
import aquests

dbo = aquests.postgresql ("127.0.0.1:5432", "mydb", ("test", "1111"))
for i in range (100):
	dbo.do ("SELECT * FROM weather;")

aquests.fetchall ()
github hansroh / aquests / examples / get2.py View on Github external
import aquests
	
aquests.get ("https://pypi.python.org/pypi?name=aquests")
aquests.get ("https://www.google.co.kr/search?q=aquests")
aquests.fetchall ()
github hansroh / aquests / examples / timeout.py View on Github external
import aquests

aquests.configure (1, timeout = 3)	
aquests.get ("http://127.0.0.1:5000/test/sleep/20")
aquests.fetchall ()