Skip to content

S3 requests tool#1

Open
giditietz wants to merge 2 commits into
masterfrom
development
Open

S3 requests tool#1
giditietz wants to merge 2 commits into
masterfrom
development

Conversation

@giditietz

Copy link
Copy Markdown
Owner

A simple tool that wraps 'Requests', used for S3 testing.

Comment thread S3requests.py Outdated
@@ -0,0 +1,226 @@
import requests
import hashlib
import xml.etree.ElementTree as ET

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid this type of imports. It makes code unreadable - it's always better to refer to things within their namespace where possible. There are some exceptions to this rule, but generally:

import xml.etree
...
tree = xml.etree.ElementTree()
tree.do_something()

is just a lot more readable and doesn't constrain you to the imported module's names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants