JustinTX commited on
Commit
1fd0050
·
verified ·
1 Parent(s): 9018efa

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/__init__.cpython-313.pyc +0 -0
  2. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/_cmd.cpython-313.pyc +0 -0
  3. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/adapter.cpython-313.pyc +0 -0
  4. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/cache.cpython-313.pyc +0 -0
  5. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/controller.cpython-313.pyc +0 -0
  6. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/filewrapper.cpython-313.pyc +0 -0
  7. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/heuristics.cpython-313.pyc +0 -0
  8. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/serialize.cpython-313.pyc +0 -0
  9. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/wrapper.cpython-313.pyc +0 -0
  10. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/__init__.py +8 -0
  11. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/__init__.cpython-313.pyc +0 -0
  12. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/file_cache.cpython-313.pyc +0 -0
  13. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/redis_cache.cpython-313.pyc +0 -0
  14. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py +145 -0
  15. .venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py +48 -0
  16. .venv/lib/python3.13/site-packages/pip/_vendor/certifi/__pycache__/__init__.cpython-313.pyc +0 -0
  17. .venv/lib/python3.13/site-packages/pip/_vendor/certifi/__pycache__/__main__.cpython-313.pyc +0 -0
  18. .venv/lib/python3.13/site-packages/pip/_vendor/certifi/__pycache__/core.cpython-313.pyc +0 -0
  19. .venv/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__pycache__/__init__.cpython-313.pyc +0 -0
  20. .venv/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__pycache__/__main__.cpython-313.pyc +0 -0
  21. .venv/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__pycache__/_implementation.cpython-313.pyc +0 -0
  22. .venv/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__pycache__/_lint_dependency_groups.cpython-313.pyc +0 -0
  23. .venv/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__pycache__/_pip_wrapper.cpython-313.pyc +0 -0
  24. .venv/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__pycache__/_toml_compat.cpython-313.pyc +0 -0
  25. .venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/__init__.cpython-313.pyc +0 -0
  26. .venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/compat.cpython-313.pyc +0 -0
  27. .venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/database.cpython-313.pyc +0 -0
  28. .venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/index.cpython-313.pyc +0 -0
  29. .venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/locators.cpython-313.pyc +0 -0
  30. .venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/manifest.cpython-313.pyc +0 -0
  31. .venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/markers.cpython-313.pyc +0 -0
  32. .venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/metadata.cpython-313.pyc +0 -0
  33. .venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/resources.cpython-313.pyc +0 -0
  34. .venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/scripts.cpython-313.pyc +0 -0
  35. .venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/util.cpython-313.pyc +0 -0
  36. .venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/version.cpython-313.pyc +0 -0
  37. .venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/wheel.cpython-313.pyc +0 -0
  38. .venv/lib/python3.13/site-packages/pip/_vendor/distro/__pycache__/__init__.cpython-313.pyc +0 -0
  39. .venv/lib/python3.13/site-packages/pip/_vendor/distro/__pycache__/__main__.cpython-313.pyc +0 -0
  40. .venv/lib/python3.13/site-packages/pip/_vendor/distro/__pycache__/distro.cpython-313.pyc +0 -0
  41. .venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/__init__.cpython-313.pyc +0 -0
  42. .venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/codec.cpython-313.pyc +0 -0
  43. .venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/compat.cpython-313.pyc +0 -0
  44. .venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/core.cpython-313.pyc +0 -0
  45. .venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/idnadata.cpython-313.pyc +0 -0
  46. .venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/intranges.cpython-313.pyc +0 -0
  47. .venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/package_data.cpython-313.pyc +0 -0
  48. .venv/lib/python3.13/site-packages/pip/_vendor/msgpack/__pycache__/__init__.cpython-313.pyc +0 -0
  49. .venv/lib/python3.13/site-packages/pip/_vendor/msgpack/__pycache__/exceptions.cpython-313.pyc +0 -0
  50. .venv/lib/python3.13/site-packages/pip/_vendor/msgpack/__pycache__/ext.cpython-313.pyc +0 -0
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (900 Bytes). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/_cmd.cpython-313.pyc ADDED
Binary file (2.68 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/adapter.cpython-313.pyc ADDED
Binary file (6.85 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/cache.cpython-313.pyc ADDED
Binary file (3.93 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/controller.cpython-313.pyc ADDED
Binary file (16.9 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/filewrapper.cpython-313.pyc ADDED
Binary file (4.44 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/heuristics.cpython-313.pyc ADDED
Binary file (6.77 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/serialize.cpython-313.pyc ADDED
Binary file (5.37 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/__pycache__/wrapper.cpython-313.pyc ADDED
Binary file (1.7 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/__init__.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # SPDX-FileCopyrightText: 2015 Eric Larson
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ from pip._vendor.cachecontrol.caches.file_cache import FileCache, SeparateBodyFileCache
6
+ from pip._vendor.cachecontrol.caches.redis_cache import RedisCache
7
+
8
+ __all__ = ["FileCache", "SeparateBodyFileCache", "RedisCache"]
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (438 Bytes). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/file_cache.cpython-313.pyc ADDED
Binary file (7.17 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/__pycache__/redis_cache.cpython-313.pyc ADDED
Binary file (2.82 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-FileCopyrightText: 2015 Eric Larson
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+ from __future__ import annotations
5
+
6
+ import hashlib
7
+ import os
8
+ import tempfile
9
+ from textwrap import dedent
10
+ from typing import IO, TYPE_CHECKING
11
+ from pathlib import Path
12
+
13
+ from pip._vendor.cachecontrol.cache import BaseCache, SeparateBodyBaseCache
14
+ from pip._vendor.cachecontrol.controller import CacheController
15
+
16
+ if TYPE_CHECKING:
17
+ from datetime import datetime
18
+
19
+ from filelock import BaseFileLock
20
+
21
+
22
+ class _FileCacheMixin:
23
+ """Shared implementation for both FileCache variants."""
24
+
25
+ def __init__(
26
+ self,
27
+ directory: str | Path,
28
+ forever: bool = False,
29
+ filemode: int = 0o0600,
30
+ dirmode: int = 0o0700,
31
+ lock_class: type[BaseFileLock] | None = None,
32
+ ) -> None:
33
+ try:
34
+ if lock_class is None:
35
+ from filelock import FileLock
36
+
37
+ lock_class = FileLock
38
+ except ImportError:
39
+ notice = dedent(
40
+ """
41
+ NOTE: In order to use the FileCache you must have
42
+ filelock installed. You can install it via pip:
43
+ pip install cachecontrol[filecache]
44
+ """
45
+ )
46
+ raise ImportError(notice)
47
+
48
+ self.directory = directory
49
+ self.forever = forever
50
+ self.filemode = filemode
51
+ self.dirmode = dirmode
52
+ self.lock_class = lock_class
53
+
54
+ @staticmethod
55
+ def encode(x: str) -> str:
56
+ return hashlib.sha224(x.encode()).hexdigest()
57
+
58
+ def _fn(self, name: str) -> str:
59
+ # NOTE: This method should not change as some may depend on it.
60
+ # See: https://github.com/ionrock/cachecontrol/issues/63
61
+ hashed = self.encode(name)
62
+ parts = list(hashed[:5]) + [hashed]
63
+ return os.path.join(self.directory, *parts)
64
+
65
+ def get(self, key: str) -> bytes | None:
66
+ name = self._fn(key)
67
+ try:
68
+ with open(name, "rb") as fh:
69
+ return fh.read()
70
+
71
+ except FileNotFoundError:
72
+ return None
73
+
74
+ def set(
75
+ self, key: str, value: bytes, expires: int | datetime | None = None
76
+ ) -> None:
77
+ name = self._fn(key)
78
+ self._write(name, value)
79
+
80
+ def _write(self, path: str, data: bytes) -> None:
81
+ """
82
+ Safely write the data to the given path.
83
+ """
84
+ # Make sure the directory exists
85
+ dirname = os.path.dirname(path)
86
+ os.makedirs(dirname, self.dirmode, exist_ok=True)
87
+
88
+ with self.lock_class(path + ".lock"):
89
+ # Write our actual file
90
+ (fd, name) = tempfile.mkstemp(dir=dirname)
91
+ try:
92
+ os.write(fd, data)
93
+ finally:
94
+ os.close(fd)
95
+ os.chmod(name, self.filemode)
96
+ os.replace(name, path)
97
+
98
+ def _delete(self, key: str, suffix: str) -> None:
99
+ name = self._fn(key) + suffix
100
+ if not self.forever:
101
+ try:
102
+ os.remove(name)
103
+ except FileNotFoundError:
104
+ pass
105
+
106
+
107
+ class FileCache(_FileCacheMixin, BaseCache):
108
+ """
109
+ Traditional FileCache: body is stored in memory, so not suitable for large
110
+ downloads.
111
+ """
112
+
113
+ def delete(self, key: str) -> None:
114
+ self._delete(key, "")
115
+
116
+
117
+ class SeparateBodyFileCache(_FileCacheMixin, SeparateBodyBaseCache):
118
+ """
119
+ Memory-efficient FileCache: body is stored in a separate file, reducing
120
+ peak memory usage.
121
+ """
122
+
123
+ def get_body(self, key: str) -> IO[bytes] | None:
124
+ name = self._fn(key) + ".body"
125
+ try:
126
+ return open(name, "rb")
127
+ except FileNotFoundError:
128
+ return None
129
+
130
+ def set_body(self, key: str, body: bytes) -> None:
131
+ name = self._fn(key) + ".body"
132
+ self._write(name, body)
133
+
134
+ def delete(self, key: str) -> None:
135
+ self._delete(key, "")
136
+ self._delete(key, ".body")
137
+
138
+
139
+ def url_to_file_path(url: str, filecache: FileCache) -> str:
140
+ """Return the file cache path based on the URL.
141
+
142
+ This does not ensure the file exists!
143
+ """
144
+ key = CacheController.cache_url(url)
145
+ return filecache._fn(key)
.venv/lib/python3.13/site-packages/pip/_vendor/cachecontrol/caches/redis_cache.py ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-FileCopyrightText: 2015 Eric Larson
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+ from __future__ import annotations
5
+
6
+
7
+ from datetime import datetime, timezone
8
+ from typing import TYPE_CHECKING
9
+
10
+ from pip._vendor.cachecontrol.cache import BaseCache
11
+
12
+ if TYPE_CHECKING:
13
+ from redis import Redis
14
+
15
+
16
+ class RedisCache(BaseCache):
17
+ def __init__(self, conn: Redis[bytes]) -> None:
18
+ self.conn = conn
19
+
20
+ def get(self, key: str) -> bytes | None:
21
+ return self.conn.get(key)
22
+
23
+ def set(
24
+ self, key: str, value: bytes, expires: int | datetime | None = None
25
+ ) -> None:
26
+ if not expires:
27
+ self.conn.set(key, value)
28
+ elif isinstance(expires, datetime):
29
+ now_utc = datetime.now(timezone.utc)
30
+ if expires.tzinfo is None:
31
+ now_utc = now_utc.replace(tzinfo=None)
32
+ delta = expires - now_utc
33
+ self.conn.setex(key, int(delta.total_seconds()), value)
34
+ else:
35
+ self.conn.setex(key, expires, value)
36
+
37
+ def delete(self, key: str) -> None:
38
+ self.conn.delete(key)
39
+
40
+ def clear(self) -> None:
41
+ """Helper for clearing all the keys in a database. Use with
42
+ caution!"""
43
+ for key in self.conn.keys():
44
+ self.conn.delete(key)
45
+
46
+ def close(self) -> None:
47
+ """Redis uses connection pooling, no need to close the connection."""
48
+ pass
.venv/lib/python3.13/site-packages/pip/_vendor/certifi/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (321 Bytes). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/certifi/__pycache__/__main__.cpython-313.pyc ADDED
Binary file (650 Bytes). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/certifi/__pycache__/core.cpython-313.pyc ADDED
Binary file (3.23 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (380 Bytes). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__pycache__/__main__.cpython-313.pyc ADDED
Binary file (2.68 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__pycache__/_implementation.cpython-313.pyc ADDED
Binary file (9.66 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__pycache__/_lint_dependency_groups.cpython-313.pyc ADDED
Binary file (2.88 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__pycache__/_pip_wrapper.cpython-313.pyc ADDED
Binary file (3.46 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/dependency_groups/__pycache__/_toml_compat.cpython-313.pyc ADDED
Binary file (488 Bytes). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (1.36 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/compat.cpython-313.pyc ADDED
Binary file (45.9 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/database.cpython-313.pyc ADDED
Binary file (65.2 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/index.cpython-313.pyc ADDED
Binary file (23.6 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/locators.cpython-313.pyc ADDED
Binary file (59.5 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/manifest.cpython-313.pyc ADDED
Binary file (15 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/markers.cpython-313.pyc ADDED
Binary file (7.69 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/metadata.cpython-313.pyc ADDED
Binary file (42.6 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/resources.cpython-313.pyc ADDED
Binary file (17.7 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/scripts.cpython-313.pyc ADDED
Binary file (20.2 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/util.cpython-313.pyc ADDED
Binary file (90.1 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/version.cpython-313.pyc ADDED
Binary file (31 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distlib/__pycache__/wheel.cpython-313.pyc ADDED
Binary file (53.8 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distro/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (963 Bytes). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distro/__pycache__/__main__.cpython-313.pyc ADDED
Binary file (297 Bytes). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/distro/__pycache__/distro.cpython-313.pyc ADDED
Binary file (52.1 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (889 Bytes). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/codec.cpython-313.pyc ADDED
Binary file (5.31 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/compat.cpython-313.pyc ADDED
Binary file (899 Bytes). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/core.cpython-313.pyc ADDED
Binary file (16.9 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/idnadata.cpython-313.pyc ADDED
Binary file (99.5 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/intranges.cpython-313.pyc ADDED
Binary file (2.61 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/idna/__pycache__/package_data.cpython-313.pyc ADDED
Binary file (220 Bytes). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/msgpack/__pycache__/__init__.cpython-313.pyc ADDED
Binary file (1.72 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/msgpack/__pycache__/exceptions.cpython-313.pyc ADDED
Binary file (2.17 kB). View file
 
.venv/lib/python3.13/site-packages/pip/_vendor/msgpack/__pycache__/ext.cpython-313.pyc ADDED
Binary file (8.1 kB). View file