python-documentcloud 4.1.0__tar.gz → 4.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {python-documentcloud-4.1.0/python_documentcloud.egg-info → python-documentcloud-4.1.1}/PKG-INFO +1 -1
  2. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/documentcloud/client.py +4 -1
  3. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1/python_documentcloud.egg-info}/PKG-INFO +1 -1
  4. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/setup.py +1 -1
  5. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/LICENSE +0 -0
  6. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/README.md +0 -0
  7. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/documentcloud/__init__.py +0 -0
  8. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/documentcloud/addon.py +0 -0
  9. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/documentcloud/annotations.py +0 -0
  10. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/documentcloud/base.py +0 -0
  11. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/documentcloud/constants.py +0 -0
  12. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/documentcloud/documents.py +0 -0
  13. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/documentcloud/exceptions.py +0 -0
  14. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/documentcloud/organizations.py +0 -0
  15. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/documentcloud/projects.py +0 -0
  16. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/documentcloud/sections.py +0 -0
  17. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/documentcloud/toolbox.py +0 -0
  18. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/documentcloud/users.py +0 -0
  19. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/python_documentcloud.egg-info/SOURCES.txt +0 -0
  20. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/python_documentcloud.egg-info/dependency_links.txt +0 -0
  21. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/python_documentcloud.egg-info/requires.txt +2 -2
  22. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/python_documentcloud.egg-info/top_level.txt +0 -0
  23. {python-documentcloud-4.1.0 → python-documentcloud-4.1.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-documentcloud
3
- Version: 4.1.0
3
+ Version: 4.1.1
4
4
  Summary: A simple Python wrapper for the DocumentCloud API
5
5
  Home-page: https://github.com/muckrock/python-documentcloud
6
6
  Author: Mitchell Kotler
@@ -143,7 +143,10 @@ class DocumentCloud(object):
143
143
  method, url, timeout=self.timeout, **kwargs
144
144
  )
145
145
  logger.debug("response: %s - %s", response.status_code, response.content)
146
- if response.status_code == requests.codes.FORBIDDEN and set_tokens:
146
+ if (
147
+ response.status_code in [requests.codes.FORBIDDEN, requests.codes.TOO_MANY]
148
+ and set_tokens
149
+ ):
147
150
  self._set_tokens()
148
151
  # track set_tokens to not enter an infinite loop
149
152
  kwargs["set_tokens"] = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-documentcloud
3
- Version: 4.1.0
3
+ Version: 4.1.1
4
4
  Summary: A simple Python wrapper for the DocumentCloud API
5
5
  Home-page: https://github.com/muckrock/python-documentcloud
6
6
  Author: Mitchell Kotler
@@ -7,7 +7,7 @@ with open("README.md", "r") as fh:
7
7
 
8
8
  setup(
9
9
  name="python-documentcloud",
10
- version="4.1.0",
10
+ version="4.1.1",
11
11
  description="A simple Python wrapper for the DocumentCloud API",
12
12
  author="Mitchell Kotler",
13
13
  author_email="mitch@muckrock.com",
@@ -1,11 +1,11 @@
1
+ fastjsonschema
1
2
  future
2
3
  listcrunch>=1.0.1
3
4
  python-dateutil
5
+ pyyaml
4
6
  ratelimit
5
7
  requests
6
8
  urllib3
7
- pyyaml
8
- fastjsonschema
9
9
 
10
10
  [dev]
11
11
  black