-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change init() to access_token() and add proxies/verify support.
The name init() didn't make much sense for what it did. It only sets up your access token if you have a special requirement. setup_logger() would still need to be run as an "initialization" step if you want to do logging. So init() has been renamed to access_token() for people who need to use it. Folks complained that they need to make connections through proxies or have special conditions where they need to set verify=False under certain network conditions. This has been exposed in two ways: 1) connection(): you can run this and pass a proxies and/or verify argument which will be used in all requests. 2) you can pass a proxies and/or verify argument to class methods like .objects(), .details(), etc. which will be used. NOTE: passing an argument to class methods will override the global settings set by using connection(). This is intentional as it allows you to set a general configuration but modify it per-call if necessary. Bumped the version to 0.3.0 due to the API change with init() being renamed to access_token().
- Loading branch information
Showing
12 changed files
with
209 additions
and
57 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
pytx.connection package | ||
======================= | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: pytx.connection | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
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
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
Oops, something went wrong.