-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NWS API: Adjust User-Agent
header
#792
Conversation
@@ -4,6 +4,7 @@ | |||
|
|||
import pandas as pd | |||
|
|||
from wetterdienst import __version__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bummer.
ImportError: cannot import name '__version__' from partially initialized module 'wetterdienst' (most likely due to a circular import) (/home/runner/work/wetterdienst/wetterdienst/wetterdienst/__init__.py)
7ee8a62
to
a5bac17
Compare
"User-Agent": "wetterdienst/gutzemann@gmail.com", | ||
"User-Agent": "wetterdienst/0.48.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Until we can use the real version number at runtime, I think it will be better than nothing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason I put my mail there is their hint
"""
Authentication
A User Agent is required to identify your application. This string can be anything, and the more unique to your application the less likely it will be affected by a security event. If you include contact information (website or email), we can contact you if your string is associated to a security event. This will be replaced with an API key in the future.
User-Agent: (myweatherapp.com, contact@myweatherapp.com)
"""
I think there's no need to obey on this level. Never seen that. We can just include the URL to the repository instead, if you really feel we should.
|
Coming from #781 (comment), this is hopefully a minor, but sensible improvement. Please let me know if you think it's not.