numerapi 2.23.1__tar.gz → 2.23.3__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 (25) hide show
  1. {numerapi-2.23.1 → numerapi-2.23.3}/PKG-INFO +1 -1
  2. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi/base_api.py +1 -1
  3. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi/utils.py +4 -2
  4. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi.egg-info/PKG-INFO +1 -1
  5. {numerapi-2.23.1 → numerapi-2.23.3}/setup.py +1 -1
  6. {numerapi-2.23.1 → numerapi-2.23.3}/LICENSE +0 -0
  7. {numerapi-2.23.1 → numerapi-2.23.3}/README.md +0 -0
  8. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi/__init__.py +0 -0
  9. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi/cli.py +0 -0
  10. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi/cryptoapi.py +0 -0
  11. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi/numerapi.py +0 -0
  12. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi/py.typed +0 -0
  13. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi/signalsapi.py +0 -0
  14. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi.egg-info/SOURCES.txt +0 -0
  15. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi.egg-info/dependency_links.txt +0 -0
  16. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi.egg-info/entry_points.txt +0 -0
  17. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi.egg-info/requires.txt +0 -0
  18. {numerapi-2.23.1 → numerapi-2.23.3}/numerapi.egg-info/top_level.txt +0 -0
  19. {numerapi-2.23.1 → numerapi-2.23.3}/setup.cfg +0 -0
  20. {numerapi-2.23.1 → numerapi-2.23.3}/tests/test_base_api.py +0 -0
  21. {numerapi-2.23.1 → numerapi-2.23.3}/tests/test_cli.py +0 -0
  22. {numerapi-2.23.1 → numerapi-2.23.3}/tests/test_cryptoapi.py +0 -0
  23. {numerapi-2.23.1 → numerapi-2.23.3}/tests/test_numerapi.py +0 -0
  24. {numerapi-2.23.1 → numerapi-2.23.3}/tests/test_signalsapi.py +0 -0
  25. {numerapi-2.23.1 → numerapi-2.23.3}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: numerapi
3
- Version: 2.23.1
3
+ Version: 2.23.3
4
4
  Summary: Automatically download and upload data for the Numerai machine learning competition
5
5
  Home-page: https://github.com/uuazed/numerapi
6
6
  Maintainer: uuazed
@@ -331,7 +331,7 @@ class Api:
331
331
  {'uuazed': '9b157d9b-ce61-4ab5-9413-413f13a0c0a6', ...}
332
332
  """
333
333
  query = """
334
- query($username: Str!
334
+ query($username: String!
335
335
  $tournament: Int) {
336
336
  accountProfile(username: $username
337
337
  tournament: $tournament){
@@ -14,6 +14,8 @@ import tqdm
14
14
 
15
15
  logger = logging.getLogger(__name__)
16
16
 
17
+ DOWNLOAD_CHUNK_SIZE = 1024 * 1024 # 1 MiB
18
+
17
19
 
18
20
  def load_secrets() -> tuple:
19
21
  """load secrets from environment variables or dotenv file"""
@@ -96,9 +98,9 @@ def download_file(url: str, dest_path: str, show_progress_bars: bool = True):
96
98
  # Update progress bar to reflect how much of the file is already downloaded
97
99
  pbar.update(file_size)
98
100
  with open(temp_path, "ab") as dest_file:
99
- for chunk in req.iter_content(1024):
101
+ for chunk in req.iter_content(DOWNLOAD_CHUNK_SIZE):
100
102
  dest_file.write(chunk)
101
- pbar.update(1024)
103
+ pbar.update(len(chunk))
102
104
  # move temp file to target destination
103
105
  os.replace(temp_path, dest_path)
104
106
  return dest_path
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: numerapi
3
- Version: 2.23.1
3
+ Version: 2.23.3
4
4
  Summary: Automatically download and upload data for the Numerai machine learning competition
5
5
  Home-page: https://github.com/uuazed/numerapi
6
6
  Maintainer: uuazed
@@ -5,7 +5,7 @@ def load(path):
5
5
  return open(path, "r").read()
6
6
 
7
7
 
8
- numerapi_version = "2.23.1"
8
+ numerapi_version = "2.23.3"
9
9
 
10
10
 
11
11
  classifiers = [
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes