Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Call AttributeLoad NameLoad attr Dict Str NameLoad keyword Dict Str Str keyword NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call AttributeLoad NameLoad attr Dict Str Str Str BoolOpOr NameLoad Call NameLoad Num NameLoad NameLoad keyword Dict Str Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Call NameLoad NameLoad keyword Dict Str NameLoad keyword Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr keyword NameLoad keyword Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str decorator_list NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num decorator_list
N/A N/A Load testing for file upload, listing, and download with OSF Storage.
 N/A json N/A random N/A string cStringIO StringIO locust HttpLocust TaskSet task N/A HOST http://localhost:5000/ N/A USERNAME calici@cat.com N/A PASSWORD asdfasdf N/A VERIFY False N/A PROJECT_TITLE load-test N/A FILE_NAME the-miracle.mp3 N/A FILE_SIZE 1024 N/A CONTENT_TYPE text/plain random_string N/A N/A nchars N/A N/A N/A N/A N/A join N/A N/A N/A random choice N/A string lowercase N/A _ N/A range nchars N/A make_file_name N/A N/A nchars N/A N/A N/A N/A random_string nchars N/A make_file_like N/A N/A nchars N/A N/A N/A sio N/A StringIO N/A random_string nchars N/A sio N/A UserBehavior N/A TaskSet N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super UserBehavior self __init__ args kwargs N/A N/A self node_id None N/A login N/A N/A self N/A N/A N/A N/A N/A N/A self client post login/ N/A username password USERNAME PASSWORD verify VERIFY N/A create_project N/A N/A self N/A N/A N/A resp N/A N/A N/A self client post api/v1/project/new/ data N/A N/A json dumps N/A title PROJECT_TITLE headers N/A Content-Type application/json verify VERIFY N/A node_url N/A N/A N/A resp json N/A projectUrl N/A N/A self node_id N/A N/A N/A N/A N/A node_url strip / split / N/A -1 N/A on_start N/A N/A self N/A N/A N/A N/A N/A self login N/A N/A N/A self create_project N/A N/A N/A self upload_file name FILE_NAME N/A upload_file N/A N/A self name N/A None N/A N/A request_url N/A N/A api/v1/project/{0}/osfstorage/files/ format N/A self node_id N/A resp N/A N/A N/A self client post request_url data N/A N/A json dumps N/A name size type N/A name N/A make_file_name 16 FILE_SIZE CONTENT_TYPE headers N/A Content-Type application/json name /api/v1/project/[nodeId]/osfstorage/files/ N/A upload_url N/A N/A resp json N/A N/A N/A N/A self client put upload_url data N/A make_file_like FILE_SIZE headers N/A Content-Type CONTENT_TYPE name /files/ N/A task list_files N/A N/A self N/A N/A N/A N/A N/A N/A self client get N/A N/A api/v1/{0}/osfstorage/files/ format N/A self node_id verify VERIFY name /api/v1/project/[nodeId]/osfstorage/files/ N/A task download_file N/A N/A self N/A N/A N/A N/A N/A N/A self client get N/A N/A project/{0}/osfstorage/files/{1}/download/ format N/A self node_id FILE_NAME verify VERIFY name /project/[nodeId]/osfstorage/files/[fileName]/download/ N/A task N/A WebsiteUser N/A HttpLocust N/A N/A host HOST N/A task_set UserBehavior N/A min_wait 5000 N/A max_wait 10000 N/A