Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_cparser.pxd.hash +1 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_find_header.pxd.hash +1 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_helpers.pyi.hash +1 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_helpers.pyx.hash +1 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_http_parser.pyx.hash +1 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_http_writer.pyx.hash +1 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_websocket.pyx.hash +1 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/hdrs.py.hash +1 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/base_protocol.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/client.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/client_proto.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/client_reqrep.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/client_ws.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/compression_utils.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/connector.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/formdata.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/hdrs.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/helpers.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/http.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/http_exceptions.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/http_parser.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/http_writer.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/log.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/multipart.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/payload_streamer.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/pytest_plugin.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/resolver.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/streams.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/tcp_helpers.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/test_utils.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/tracing.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_app.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_exceptions.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_fileresponse.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_log.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_middlewares.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_protocol.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_request.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_response.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_routedef.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_runner.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_server.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_urldispatcher.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_ws.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/worker.cpython-310.pyc +0 -0
- env-llmeval/lib/python3.10/site-packages/attrs-23.2.0.dist-info/INSTALLER +1 -0
- env-llmeval/lib/python3.10/site-packages/attrs-23.2.0.dist-info/METADATA +202 -0
- env-llmeval/lib/python3.10/site-packages/attrs-23.2.0.dist-info/WHEEL +4 -0
- env-llmeval/lib/python3.10/site-packages/attrs-23.2.0.dist-info/licenses/LICENSE +21 -0
env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_cparser.pxd.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
f2318883e549f69de597009a914603b0f1b10381e265ef5d98af499ad973fb98 /home/runner/work/aiohttp/aiohttp/aiohttp/_cparser.pxd
|
env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_find_header.pxd.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
d067f01423cddb3c442933b5fcc039b18ab651fcec1bc91c577693aafc25cf78 /home/runner/work/aiohttp/aiohttp/aiohttp/_find_header.pxd
|
env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_helpers.pyi.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
6682a22524b9d4fc442e123672622be7bdfb6238d9709b7b15b2113b7ca6d52b /home/runner/work/aiohttp/aiohttp/aiohttp/_helpers.pyi
|
env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_helpers.pyx.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
5de2db35fb795ffe227e2f1007c8ba4f2ad1b9aca28cc48edc80c779203cf6e3 /home/runner/work/aiohttp/aiohttp/aiohttp/_helpers.pyx
|
env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_http_parser.pyx.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
abaf11ab4e8ca56f90c0bc6b884de120999620a73895515a587537725b077786 /home/runner/work/aiohttp/aiohttp/aiohttp/_http_parser.pyx
|
env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_http_writer.pyx.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
6881c0a7c838655e646c645d99971efaf5e310bc3633a7c62b226e39d81842ac /home/runner/work/aiohttp/aiohttp/aiohttp/_http_writer.pyx
|
env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/_websocket.pyx.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
d57b8e48d0c26f20ebcc5e6e300da2b2a6aeb12b3c9768d64cb0e53432ccf48a /home/runner/work/aiohttp/aiohttp/aiohttp/_websocket.pyx
|
env-llmeval/lib/python3.10/site-packages/aiohttp/.hash/hdrs.py.hash
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
bb39f96a09ff8d789dda1fa4cba63464043c06b3de4c62c31abfb07a231cb6ca /home/runner/work/aiohttp/aiohttp/aiohttp/hdrs.py
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/base_protocol.cpython-310.pyc
ADDED
Binary file (2.88 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/client.cpython-310.pyc
ADDED
Binary file (31.1 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/client_proto.cpython-310.pyc
ADDED
Binary file (6.94 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/client_reqrep.cpython-310.pyc
ADDED
Binary file (30.8 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/client_ws.cpython-310.pyc
ADDED
Binary file (9.19 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/compression_utils.cpython-310.pyc
ADDED
Binary file (5.22 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/connector.cpython-310.pyc
ADDED
Binary file (36.9 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/formdata.cpython-310.pyc
ADDED
Binary file (4.84 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/hdrs.cpython-310.pyc
ADDED
Binary file (5.19 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/helpers.cpython-310.pyc
ADDED
Binary file (30.4 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/http.cpython-310.pyc
ADDED
Binary file (1.46 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/http_exceptions.cpython-310.pyc
ADDED
Binary file (4.43 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/http_parser.cpython-310.pyc
ADDED
Binary file (19.7 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/http_writer.cpython-310.pyc
ADDED
Binary file (5.67 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/log.cpython-310.pyc
ADDED
Binary file (452 Bytes). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/multipart.cpython-310.pyc
ADDED
Binary file (27.3 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/payload_streamer.cpython-310.pyc
ADDED
Binary file (3.26 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/pytest_plugin.cpython-310.pyc
ADDED
Binary file (9.72 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/resolver.cpython-310.pyc
ADDED
Binary file (4.03 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/streams.cpython-310.pyc
ADDED
Binary file (18.9 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/tcp_helpers.cpython-310.pyc
ADDED
Binary file (1.14 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/test_utils.cpython-310.pyc
ADDED
Binary file (21 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/tracing.cpython-310.pyc
ADDED
Binary file (14.3 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web.cpython-310.pyc
ADDED
Binary file (11.4 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_app.cpython-310.pyc
ADDED
Binary file (16.5 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_exceptions.cpython-310.pyc
ADDED
Binary file (11.6 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_fileresponse.cpython-310.pyc
ADDED
Binary file (6.51 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_log.cpython-310.pyc
ADDED
Binary file (7.37 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_middlewares.cpython-310.pyc
ADDED
Binary file (3.85 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_protocol.cpython-310.pyc
ADDED
Binary file (17.1 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_request.cpython-310.pyc
ADDED
Binary file (24.4 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_response.cpython-310.pyc
ADDED
Binary file (21.1 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_routedef.cpython-310.pyc
ADDED
Binary file (7.66 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_runner.cpython-310.pyc
ADDED
Binary file (12.1 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_server.cpython-310.pyc
ADDED
Binary file (3.33 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_urldispatcher.cpython-310.pyc
ADDED
Binary file (41.9 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/web_ws.cpython-310.pyc
ADDED
Binary file (14.8 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/aiohttp/__pycache__/worker.cpython-310.pyc
ADDED
Binary file (6.53 kB). View file
|
|
env-llmeval/lib/python3.10/site-packages/attrs-23.2.0.dist-info/INSTALLER
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
pip
|
env-llmeval/lib/python3.10/site-packages/attrs-23.2.0.dist-info/METADATA
ADDED
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Metadata-Version: 2.1
|
2 |
+
Name: attrs
|
3 |
+
Version: 23.2.0
|
4 |
+
Summary: Classes Without Boilerplate
|
5 |
+
Project-URL: Documentation, https://www.attrs.org/
|
6 |
+
Project-URL: Changelog, https://www.attrs.org/en/stable/changelog.html
|
7 |
+
Project-URL: GitHub, https://github.com/python-attrs/attrs
|
8 |
+
Project-URL: Funding, https://github.com/sponsors/hynek
|
9 |
+
Project-URL: Tidelift, https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=pypi
|
10 |
+
Author-email: Hynek Schlawack <[email protected]>
|
11 |
+
License-Expression: MIT
|
12 |
+
License-File: LICENSE
|
13 |
+
Keywords: attribute,boilerplate,class
|
14 |
+
Classifier: Development Status :: 5 - Production/Stable
|
15 |
+
Classifier: License :: OSI Approved :: MIT License
|
16 |
+
Classifier: Programming Language :: Python :: 3.7
|
17 |
+
Classifier: Programming Language :: Python :: 3.8
|
18 |
+
Classifier: Programming Language :: Python :: 3.9
|
19 |
+
Classifier: Programming Language :: Python :: 3.10
|
20 |
+
Classifier: Programming Language :: Python :: 3.11
|
21 |
+
Classifier: Programming Language :: Python :: 3.12
|
22 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
23 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
24 |
+
Classifier: Typing :: Typed
|
25 |
+
Requires-Python: >=3.7
|
26 |
+
Requires-Dist: importlib-metadata; python_version < '3.8'
|
27 |
+
Provides-Extra: cov
|
28 |
+
Requires-Dist: attrs[tests]; extra == 'cov'
|
29 |
+
Requires-Dist: coverage[toml]>=5.3; extra == 'cov'
|
30 |
+
Provides-Extra: dev
|
31 |
+
Requires-Dist: attrs[tests]; extra == 'dev'
|
32 |
+
Requires-Dist: pre-commit; extra == 'dev'
|
33 |
+
Provides-Extra: docs
|
34 |
+
Requires-Dist: furo; extra == 'docs'
|
35 |
+
Requires-Dist: myst-parser; extra == 'docs'
|
36 |
+
Requires-Dist: sphinx; extra == 'docs'
|
37 |
+
Requires-Dist: sphinx-notfound-page; extra == 'docs'
|
38 |
+
Requires-Dist: sphinxcontrib-towncrier; extra == 'docs'
|
39 |
+
Requires-Dist: towncrier; extra == 'docs'
|
40 |
+
Requires-Dist: zope-interface; extra == 'docs'
|
41 |
+
Provides-Extra: tests
|
42 |
+
Requires-Dist: attrs[tests-no-zope]; extra == 'tests'
|
43 |
+
Requires-Dist: zope-interface; extra == 'tests'
|
44 |
+
Provides-Extra: tests-mypy
|
45 |
+
Requires-Dist: mypy>=1.6; (platform_python_implementation == 'CPython' and python_version >= '3.8') and extra == 'tests-mypy'
|
46 |
+
Requires-Dist: pytest-mypy-plugins; (platform_python_implementation == 'CPython' and python_version >= '3.8') and extra == 'tests-mypy'
|
47 |
+
Provides-Extra: tests-no-zope
|
48 |
+
Requires-Dist: attrs[tests-mypy]; extra == 'tests-no-zope'
|
49 |
+
Requires-Dist: cloudpickle; (platform_python_implementation == 'CPython') and extra == 'tests-no-zope'
|
50 |
+
Requires-Dist: hypothesis; extra == 'tests-no-zope'
|
51 |
+
Requires-Dist: pympler; extra == 'tests-no-zope'
|
52 |
+
Requires-Dist: pytest-xdist[psutil]; extra == 'tests-no-zope'
|
53 |
+
Requires-Dist: pytest>=4.3.0; extra == 'tests-no-zope'
|
54 |
+
Description-Content-Type: text/markdown
|
55 |
+
|
56 |
+
<p align="center">
|
57 |
+
<a href="https://www.attrs.org/">
|
58 |
+
<img src="https://raw.githubusercontent.com/python-attrs/attrs/main/docs/_static/attrs_logo.svg" width="35%" alt="attrs" />
|
59 |
+
</a>
|
60 |
+
</p>
|
61 |
+
|
62 |
+
|
63 |
+
*attrs* is the Python package that will bring back the **joy** of **writing classes** by relieving you from the drudgery of implementing object protocols (aka [dunder methods](https://www.attrs.org/en/latest/glossary.html#term-dunder-methods)).
|
64 |
+
[Trusted by NASA](https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/personalizing-your-profile#list-of-qualifying-repositories-for-mars-2020-helicopter-contributor-achievement) for Mars missions since 2020!
|
65 |
+
|
66 |
+
Its main goal is to help you to write **concise** and **correct** software without slowing down your code.
|
67 |
+
|
68 |
+
|
69 |
+
## Sponsors
|
70 |
+
|
71 |
+
*attrs* would not be possible without our [amazing sponsors](https://github.com/sponsors/hynek).
|
72 |
+
Especially those generously supporting us at the *The Organization* tier and higher:
|
73 |
+
|
74 |
+
<p align="center">
|
75 |
+
<a href="https://www.variomedia.de/"><img src="https://www.attrs.org/en/23.2.0/_static/sponsors/Variomedia.svg" width="200" height="60" /></a>
|
76 |
+
<a href="https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=referral&utm_campaign=enterprise&utm_term=repo"><img src="https://www.attrs.org/en/23.2.0/_static/sponsors/Tidelift.svg" width="200" height="60" /></a>
|
77 |
+
<a href="https://filepreviews.io/"><img src="https://www.attrs.org/en/23.2.0/_static/sponsors/FilePreviews.svg" width="200" height="60"/></a>
|
78 |
+
</p>
|
79 |
+
|
80 |
+
<p align="center">
|
81 |
+
<strong>Please consider <a href="https://github.com/sponsors/hynek">joining them</a> to help make <em>attrs</em>’s maintenance more sustainable!</strong>
|
82 |
+
</p>
|
83 |
+
|
84 |
+
<!-- teaser-end -->
|
85 |
+
|
86 |
+
## Example
|
87 |
+
|
88 |
+
*attrs* gives you a class decorator and a way to declaratively define the attributes on that class:
|
89 |
+
|
90 |
+
<!-- code-begin -->
|
91 |
+
|
92 |
+
```pycon
|
93 |
+
>>> from attrs import asdict, define, make_class, Factory
|
94 |
+
|
95 |
+
>>> @define
|
96 |
+
... class SomeClass:
|
97 |
+
... a_number: int = 42
|
98 |
+
... list_of_numbers: list[int] = Factory(list)
|
99 |
+
...
|
100 |
+
... def hard_math(self, another_number):
|
101 |
+
... return self.a_number + sum(self.list_of_numbers) * another_number
|
102 |
+
|
103 |
+
|
104 |
+
>>> sc = SomeClass(1, [1, 2, 3])
|
105 |
+
>>> sc
|
106 |
+
SomeClass(a_number=1, list_of_numbers=[1, 2, 3])
|
107 |
+
|
108 |
+
>>> sc.hard_math(3)
|
109 |
+
19
|
110 |
+
>>> sc == SomeClass(1, [1, 2, 3])
|
111 |
+
True
|
112 |
+
>>> sc != SomeClass(2, [3, 2, 1])
|
113 |
+
True
|
114 |
+
|
115 |
+
>>> asdict(sc)
|
116 |
+
{'a_number': 1, 'list_of_numbers': [1, 2, 3]}
|
117 |
+
|
118 |
+
>>> SomeClass()
|
119 |
+
SomeClass(a_number=42, list_of_numbers=[])
|
120 |
+
|
121 |
+
>>> C = make_class("C", ["a", "b"])
|
122 |
+
>>> C("foo", "bar")
|
123 |
+
C(a='foo', b='bar')
|
124 |
+
```
|
125 |
+
|
126 |
+
After *declaring* your attributes, *attrs* gives you:
|
127 |
+
|
128 |
+
- a concise and explicit overview of the class's attributes,
|
129 |
+
- a nice human-readable `__repr__`,
|
130 |
+
- equality-checking methods,
|
131 |
+
- an initializer,
|
132 |
+
- and much more,
|
133 |
+
|
134 |
+
*without* writing dull boilerplate code again and again and *without* runtime performance penalties.
|
135 |
+
|
136 |
+
**Hate type annotations**!?
|
137 |
+
No problem!
|
138 |
+
Types are entirely **optional** with *attrs*.
|
139 |
+
Simply assign `attrs.field()` to the attributes instead of annotating them with types.
|
140 |
+
|
141 |
+
---
|
142 |
+
|
143 |
+
This example uses *attrs*'s modern APIs that have been introduced in version 20.1.0, and the *attrs* package import name that has been added in version 21.3.0.
|
144 |
+
The classic APIs (`@attr.s`, `attr.ib`, plus their serious-business aliases) and the `attr` package import name will remain **indefinitely**.
|
145 |
+
|
146 |
+
Please check out [*On The Core API Names*](https://www.attrs.org/en/latest/names.html) for a more in-depth explanation.
|
147 |
+
|
148 |
+
|
149 |
+
## Data Classes
|
150 |
+
|
151 |
+
On the tin, *attrs* might remind you of `dataclasses` (and indeed, `dataclasses` [are a descendant](https://hynek.me/articles/import-attrs/) of *attrs*).
|
152 |
+
In practice it does a lot more and is more flexible.
|
153 |
+
For instance it allows you to define [special handling of NumPy arrays for equality checks](https://www.attrs.org/en/stable/comparison.html#customization), allows more ways to [plug into the initialization process](https://www.attrs.org/en/stable/init.html#hooking-yourself-into-initialization), and allows for stepping through the generated methods using a debugger.
|
154 |
+
|
155 |
+
For more details, please refer to our [comparison page](https://www.attrs.org/en/stable/why.html#data-classes).
|
156 |
+
|
157 |
+
|
158 |
+
## Project Information
|
159 |
+
|
160 |
+
- [**Changelog**](https://www.attrs.org/en/stable/changelog.html)
|
161 |
+
- [**Documentation**](https://www.attrs.org/)
|
162 |
+
- [**PyPI**](https://pypi.org/project/attrs/)
|
163 |
+
- [**Source Code**](https://github.com/python-attrs/attrs)
|
164 |
+
- [**Contributing**](https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md)
|
165 |
+
- [**Third-party Extensions**](https://github.com/python-attrs/attrs/wiki/Extensions-to-attrs)
|
166 |
+
- **Get Help**: please use the `python-attrs` tag on [StackOverflow](https://stackoverflow.com/questions/tagged/python-attrs)
|
167 |
+
|
168 |
+
|
169 |
+
### *attrs* for Enterprise
|
170 |
+
|
171 |
+
Available as part of the Tidelift Subscription.
|
172 |
+
|
173 |
+
The maintainers of *attrs* and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications.
|
174 |
+
Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.
|
175 |
+
[Learn more.](https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
176 |
+
|
177 |
+
## Release Information
|
178 |
+
|
179 |
+
### Changes
|
180 |
+
|
181 |
+
- The type annotation for `attrs.resolve_types()` is now correct.
|
182 |
+
[#1141](https://github.com/python-attrs/attrs/issues/1141)
|
183 |
+
- Type stubs now use `typing.dataclass_transform` to decorate dataclass-like decorators, instead of the non-standard `__dataclass_transform__` special form, which is only supported by Pyright.
|
184 |
+
[#1158](https://github.com/python-attrs/attrs/issues/1158)
|
185 |
+
- Fixed serialization of namedtuple fields using `attrs.asdict/astuple()` with `retain_collection_types=True`.
|
186 |
+
[#1165](https://github.com/python-attrs/attrs/issues/1165)
|
187 |
+
- `attrs.AttrsInstance` is now a `typing.Protocol` in both type hints and code.
|
188 |
+
This allows you to subclass it along with another `Protocol`.
|
189 |
+
[#1172](https://github.com/python-attrs/attrs/issues/1172)
|
190 |
+
- If *attrs* detects that `__attrs_pre_init__` accepts more than just `self`, it will call it with the same arguments as `__init__` was called.
|
191 |
+
This allows you to, for example, pass arguments to `super().__init__()`.
|
192 |
+
[#1187](https://github.com/python-attrs/attrs/issues/1187)
|
193 |
+
- Slotted classes now transform `functools.cached_property` decorated methods to support equivalent semantics.
|
194 |
+
[#1200](https://github.com/python-attrs/attrs/issues/1200)
|
195 |
+
- Added *class_body* argument to `attrs.make_class()` to provide additional attributes for newly created classes.
|
196 |
+
It is, for example, now possible to attach methods.
|
197 |
+
[#1203](https://github.com/python-attrs/attrs/issues/1203)
|
198 |
+
|
199 |
+
|
200 |
+
---
|
201 |
+
|
202 |
+
[Full changelog](https://www.attrs.org/en/stable/changelog.html)
|
env-llmeval/lib/python3.10/site-packages/attrs-23.2.0.dist-info/WHEEL
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Wheel-Version: 1.0
|
2 |
+
Generator: hatchling 1.21.0
|
3 |
+
Root-Is-Purelib: true
|
4 |
+
Tag: py3-none-any
|
env-llmeval/lib/python3.10/site-packages/attrs-23.2.0.dist-info/licenses/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The MIT License (MIT)
|
2 |
+
|
3 |
+
Copyright (c) 2015 Hynek Schlawack and the attrs contributors
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
of this software and associated documentation files (the "Software"), to deal
|
7 |
+
in the Software without restriction, including without limitation the rights
|
8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
copies of the Software, and to permit persons to whom the Software is
|
10 |
+
furnished to do so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in all
|
13 |
+
copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 |
+
SOFTWARE.
|