-
-
Save twymer/69959c468f091a5471b9 to your computer and use it in GitHub Desktop.
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
packed_directory = {} | |
for root, dirs, files in os.walk(directory): | |
for f in files: | |
relative_path = os.path.join(test_dir_name, f) | |
packed_directory[relative_path] = open(os.path.join(root, f), 'rb') | |
r = requests.post( | |
url=URL, | |
auth=HTTPDigestAuth('user', 'password'), | |
files=files, | |
data={ | |
'foo': 'bar', | |
}, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment