This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def find(key, dictionary): | |
if isinstance(dictionary, list): | |
for item in dictionary: | |
for result in find(key, item): | |
yield result | |
elif isinstance(dictionary, dict): | |
for k, v in dictionary.iteritems(): | |
if k == key: | |
yield v | |
for result in find(key, v): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for HTTP/2 support in locust | |
# https://github.com/locustio/locust/issues/264 | |
# https://gist.github.com/gawel/f48e577425f872e1a81028f3f53353cf#file-clientx-py | |
# has modifications to support breaking changes from locust 2.15.0 | |
import re | |
import time | |
from locust import User | |
from locust.exception import LocustError | |
import httpx |