-
Notifications
You must be signed in to change notification settings - Fork 52
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
enable and document basic list call from python library #170
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #170 +/- ##
==========================================
- Coverage 92.17% 92.03% -0.15%
==========================================
Files 13 13
Lines 588 590 +2
==========================================
+ Hits 542 543 +1
- Misses 46 47 +1
Continue to review full report at Codecov.
|
I like the idea of showing how to do it from python in the docs. However, I'm not sure we want to encourage people to put passwords in plain text in python scripts. I'm no security expert though. Also, the |
Yeah, obviously it'd be preferable if you could use a token there instead, but I wanted there to be some way of running it unsupervised -- obviously password could be passed as input from some other part of a script. Happy to make the other changes though. |
Doesn't it still work without passing a password from python? Either by setting |
Yeah, the environment variable method still works either way, it just didn't strike me as super pythonic. |
Hmm...what seems un-pythonic about it to you? Have you seen examples of high-quality python code that includes plaintext passwords? Putting passwords and keys in environment variables is a pretty common thing to do from what I've seen, even with python projects. |
Well, again, it just makes it more explicit this way if you wanted to pass input from elsewhere, since token auth isn't an option. But I'm happy to retract the change to |
Gotcha. I guess I'm just not comfortable enough to make those changes to |
Another issue is that my example doesn't seem to work without setting a password :)
I may have to return to this a bit later. |
Yo, you should change your password ASAP. I just logged in (and back out immediately) with your credentials. |
Yeah, I know, lazy paste :) |
Hi,
We wanted to use this from within a Python script and found that those methods weren't really documented or designed that way, so I've added a basic method and example for doing that.