@reviewsensei/cli-win32-x64 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +4 -0
- package/bin/_internal/VCRUNTIME140.dll +0 -0
- package/bin/_internal/_asyncio.pyd +0 -0
- package/bin/_internal/_bz2.pyd +0 -0
- package/bin/_internal/_cffi_backend.cp311-win_amd64.pyd +0 -0
- package/bin/_internal/_ctypes.pyd +0 -0
- package/bin/_internal/_decimal.pyd +0 -0
- package/bin/_internal/_hashlib.pyd +0 -0
- package/bin/_internal/_lzma.pyd +0 -0
- package/bin/_internal/_multiprocessing.pyd +0 -0
- package/bin/_internal/_overlapped.pyd +0 -0
- package/bin/_internal/_queue.pyd +0 -0
- package/bin/_internal/_socket.pyd +0 -0
- package/bin/_internal/_ssl.pyd +0 -0
- package/bin/_internal/_uuid.pyd +0 -0
- package/bin/_internal/api-ms-win-core-console-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-datetime-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-debug-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-errorhandling-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-fibers-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-fibers-l1-1-1.dll +0 -0
- package/bin/_internal/api-ms-win-core-file-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-file-l1-2-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-file-l2-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-handle-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-heap-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-interlocked-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-kernel32-legacy-l1-1-1.dll +0 -0
- package/bin/_internal/api-ms-win-core-libraryloader-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-localization-l1-2-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-memory-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-namedpipe-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-processenvironment-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-processthreads-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-processthreads-l1-1-1.dll +0 -0
- package/bin/_internal/api-ms-win-core-profile-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-rtlsupport-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-string-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-synch-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-synch-l1-2-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-sysinfo-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-sysinfo-l1-2-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-timezone-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-core-util-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-crt-conio-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-crt-convert-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-crt-environment-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-crt-filesystem-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-crt-heap-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-crt-locale-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-crt-math-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-crt-process-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-crt-runtime-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-crt-stdio-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-crt-string-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-crt-time-l1-1-0.dll +0 -0
- package/bin/_internal/api-ms-win-crt-utility-l1-1-0.dll +0 -0
- package/bin/_internal/attrs-26.1.0.dist-info/INSTALLER +1 -0
- package/bin/_internal/attrs-26.1.0.dist-info/METADATA +199 -0
- package/bin/_internal/attrs-26.1.0.dist-info/RECORD +55 -0
- package/bin/_internal/attrs-26.1.0.dist-info/WHEEL +4 -0
- package/bin/_internal/attrs-26.1.0.dist-info/licenses/LICENSE +21 -0
- package/bin/_internal/base_library.zip +0 -0
- package/bin/_internal/cryptography/hazmat/bindings/_rust.pyd +0 -0
- package/bin/_internal/cryptography-50.0.1.dist-info/INSTALLER +1 -0
- package/bin/_internal/cryptography-50.0.1.dist-info/METADATA +110 -0
- package/bin/_internal/cryptography-50.0.1.dist-info/RECORD +199 -0
- package/bin/_internal/cryptography-50.0.1.dist-info/WHEEL +4 -0
- package/bin/_internal/cryptography-50.0.1.dist-info/licenses/LICENSE +3 -0
- package/bin/_internal/cryptography-50.0.1.dist-info/licenses/LICENSE.APACHE +202 -0
- package/bin/_internal/cryptography-50.0.1.dist-info/licenses/LICENSE.BSD +27 -0
- package/bin/_internal/cryptography-50.0.1.dist-info/sboms/cryptography-rust.cyclonedx.json +1365 -0
- package/bin/_internal/cryptography-50.0.1.dist-info/sboms/sbom.json +43 -0
- package/bin/_internal/jsonschema/benchmarks/issue232/issue.json +2653 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/INSTALLER +1 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/METADATA +170 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/RECORD +82 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/WHEEL +4 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/entry_points.txt +2 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/licenses/COPYING +19 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/metaschema.json +42 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/applicator +56 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/content +17 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/core +57 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/format +14 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/meta-data +37 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft201909/vocabularies/validation +98 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/metaschema.json +58 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/applicator +48 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/content +17 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/core +51 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/format-annotation +14 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/format-assertion +14 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/meta-data +37 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/unevaluated +15 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft202012/vocabularies/validation +98 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft3/metaschema.json +172 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft4/metaschema.json +149 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft6/metaschema.json +153 -0
- package/bin/_internal/jsonschema_specifications/schemas/draft7/metaschema.json +166 -0
- package/bin/_internal/libcrypto-3.dll +0 -0
- package/bin/_internal/libffi-8.dll +0 -0
- package/bin/_internal/libssl-3.dll +0 -0
- package/bin/_internal/pyexpat.pyd +0 -0
- package/bin/_internal/python3.dll +0 -0
- package/bin/_internal/python311.dll +0 -0
- package/bin/_internal/review_sensei/default_categories/01-correctness.json +8 -0
- package/bin/_internal/review_sensei/default_categories/02-security.json +8 -0
- package/bin/_internal/review_sensei/default_categories/03-architecture.json +24 -0
- package/bin/_internal/review_sensei/default_categories/03-maintainability.json +8 -0
- package/bin/_internal/review_sensei/default_categories/04-tests.json +8 -0
- package/bin/_internal/review_sensei/default_stages/01-default-review.json +16 -0
- package/bin/_internal/review_sensei/schemas/concurrency-plan.schema.json +26 -0
- package/bin/_internal/review_sensei/schemas/conversation-reply.schema.json +16 -0
- package/bin/_internal/review_sensei/schemas/evaluation-corpus.schema.json +316 -0
- package/bin/_internal/review_sensei/schemas/evaluation-report.schema.json +371 -0
- package/bin/_internal/review_sensei/schemas/learning-entry.schema.json +37 -0
- package/bin/_internal/review_sensei/schemas/learning-proposal.schema.json +19 -0
- package/bin/_internal/review_sensei/schemas/review-category.schema.json +77 -0
- package/bin/_internal/review_sensei/schemas/review-comment.schema.json +16 -0
- package/bin/_internal/review_sensei/schemas/review-result.schema.json +53 -0
- package/bin/_internal/review_sensei/schemas/review-stage.schema.json +154 -0
- package/bin/_internal/review_sensei/schemas/stage.schema.json +88 -0
- package/bin/_internal/review_sensei-0.1.0.dist-info/INSTALLER +1 -0
- package/bin/_internal/review_sensei-0.1.0.dist-info/METADATA +542 -0
- package/bin/_internal/review_sensei-0.1.0.dist-info/RECORD +103 -0
- package/bin/_internal/review_sensei-0.1.0.dist-info/REQUESTED +0 -0
- package/bin/_internal/review_sensei-0.1.0.dist-info/WHEEL +5 -0
- package/bin/_internal/review_sensei-0.1.0.dist-info/direct_url.json +1 -0
- package/bin/_internal/review_sensei-0.1.0.dist-info/entry_points.txt +2 -0
- package/bin/_internal/review_sensei-0.1.0.dist-info/licenses/LICENSE +21 -0
- package/bin/_internal/review_sensei-0.1.0.dist-info/top_level.txt +1 -0
- package/bin/_internal/rpds/rpds.cp311-win_amd64.pyd +0 -0
- package/bin/_internal/select.pyd +0 -0
- package/bin/_internal/ucrtbase.dll +0 -0
- package/bin/_internal/unicodedata.pyd +0 -0
- package/bin/review-sensei.exe +0 -0
- package/package.json +13 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mohamad Alsabbagh
|
|
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.
|
package/README.md
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pip
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: attrs
|
|
3
|
+
Version: 26.1.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 <hs@ox.cx>
|
|
11
|
+
License-Expression: MIT
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Keywords: attribute,boilerplate,class
|
|
14
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
22
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
23
|
+
Classifier: Typing :: Typed
|
|
24
|
+
Requires-Python: >=3.9
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
<p align="center">
|
|
28
|
+
<a href="https://www.attrs.org/">
|
|
29
|
+
<img src="https://raw.githubusercontent.com/python-attrs/attrs/main/docs/_static/attrs_logo.svg" width="35%" alt="attrs" />
|
|
30
|
+
</a>
|
|
31
|
+
</p>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
*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)).
|
|
35
|
+
Trusted by NASA for [Mars missions since 2020](https://github.com/readme/featured/nasa-ingenuity-helicopter)!
|
|
36
|
+
|
|
37
|
+
Its main goal is to help you to write **concise** and **correct** software without slowing down your code.
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
## Sponsors
|
|
41
|
+
|
|
42
|
+
*attrs* would not be possible without our [amazing sponsors](https://github.com/sponsors/hynek).
|
|
43
|
+
Especially those generously supporting us at the *The Organization* tier and higher:
|
|
44
|
+
|
|
45
|
+
<!-- sponsor-break-begin -->
|
|
46
|
+
|
|
47
|
+
<p align="center">
|
|
48
|
+
|
|
49
|
+
<!-- [[[cog
|
|
50
|
+
import pathlib, tomllib
|
|
51
|
+
|
|
52
|
+
for sponsor in tomllib.loads(pathlib.Path("pyproject.toml").read_text())["tool"]["sponcon"]["sponsors"]:
|
|
53
|
+
print(f'<a href="{sponsor["url"]}"><img title="{sponsor["title"]}" src="https://www.attrs.org/en/26.1.0/_static/sponsors/{sponsor["img"]}" width="190" /></a>')
|
|
54
|
+
]]] -->
|
|
55
|
+
<a href="https://www.variomedia.de/"><img title="Variomedia AG" src="https://www.attrs.org/en/26.1.0/_static/sponsors/Variomedia.svg" width="190" /></a>
|
|
56
|
+
<a href="https://tidelift.com/?utm_source=lifter&utm_medium=referral&utm_campaign=hynek"><img title="Tidelift" src="https://www.attrs.org/en/26.1.0/_static/sponsors/Tidelift.svg" width="190" /></a>
|
|
57
|
+
<a href="https://kraken.tech/"><img title="Kraken Tech" src="https://www.attrs.org/en/26.1.0/_static/sponsors/Kraken.svg" width="190" /></a>
|
|
58
|
+
<a href="https://privacy-solutions.org/"><img title="Privacy Solutions" src="https://www.attrs.org/en/26.1.0/_static/sponsors/Privacy-Solutions.svg" width="190" /></a>
|
|
59
|
+
<a href="https://filepreviews.io/"><img title="FilePreviews" src="https://www.attrs.org/en/26.1.0/_static/sponsors/FilePreviews.svg" width="190" /></a>
|
|
60
|
+
<a href="https://www.testmuai.com/?utm_medium=sponsor&utm_source=structlog"><img title="TestMu AI" src="https://www.attrs.org/en/26.1.0/_static/sponsors/TestMu-AI.svg" width="190" /></a>
|
|
61
|
+
<a href="https://polar.sh/"><img title="Polar" src="https://www.attrs.org/en/26.1.0/_static/sponsors/Polar.svg" width="190" /></a>
|
|
62
|
+
<!-- [[[end]]] -->
|
|
63
|
+
|
|
64
|
+
</p>
|
|
65
|
+
|
|
66
|
+
<!-- sponsor-break-end -->
|
|
67
|
+
|
|
68
|
+
<p align="center">
|
|
69
|
+
<strong>Please consider <a href="https://github.com/sponsors/hynek">joining them</a> to help make <em>attrs</em>’s maintenance more sustainable!</strong>
|
|
70
|
+
</p>
|
|
71
|
+
|
|
72
|
+
<!-- teaser-end -->
|
|
73
|
+
|
|
74
|
+
## Example
|
|
75
|
+
|
|
76
|
+
*attrs* gives you a class decorator and a way to declaratively define the attributes on that class:
|
|
77
|
+
|
|
78
|
+
<!-- code-begin -->
|
|
79
|
+
|
|
80
|
+
```pycon
|
|
81
|
+
>>> from attrs import asdict, define, make_class, Factory
|
|
82
|
+
|
|
83
|
+
>>> @define
|
|
84
|
+
... class SomeClass:
|
|
85
|
+
... a_number: int = 42
|
|
86
|
+
... list_of_numbers: list[int] = Factory(list)
|
|
87
|
+
...
|
|
88
|
+
... def hard_math(self, another_number):
|
|
89
|
+
... return self.a_number + sum(self.list_of_numbers) * another_number
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
>>> sc = SomeClass(1, [1, 2, 3])
|
|
93
|
+
>>> sc
|
|
94
|
+
SomeClass(a_number=1, list_of_numbers=[1, 2, 3])
|
|
95
|
+
|
|
96
|
+
>>> sc.hard_math(3)
|
|
97
|
+
19
|
|
98
|
+
>>> sc == SomeClass(1, [1, 2, 3])
|
|
99
|
+
True
|
|
100
|
+
>>> sc != SomeClass(2, [3, 2, 1])
|
|
101
|
+
True
|
|
102
|
+
|
|
103
|
+
>>> asdict(sc)
|
|
104
|
+
{'a_number': 1, 'list_of_numbers': [1, 2, 3]}
|
|
105
|
+
|
|
106
|
+
>>> SomeClass()
|
|
107
|
+
SomeClass(a_number=42, list_of_numbers=[])
|
|
108
|
+
|
|
109
|
+
>>> C = make_class("C", ["a", "b"])
|
|
110
|
+
>>> C("foo", "bar")
|
|
111
|
+
C(a='foo', b='bar')
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
After *declaring* your attributes, *attrs* gives you:
|
|
115
|
+
|
|
116
|
+
- a concise and explicit overview of the class's attributes,
|
|
117
|
+
- a nice human-readable `__repr__`,
|
|
118
|
+
- equality-checking methods,
|
|
119
|
+
- an initializer,
|
|
120
|
+
- and much more,
|
|
121
|
+
|
|
122
|
+
*without* writing dull boilerplate code again and again and *without* runtime performance penalties.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
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.
|
|
127
|
+
The classic APIs (`@attr.s`, `attr.ib`, plus their serious-business aliases) and the `attr` package import name will remain **indefinitely**.
|
|
128
|
+
|
|
129
|
+
Check out [*On The Core API Names*](https://www.attrs.org/en/latest/names.html) for an in-depth explanation!
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### Hate Type Annotations!?
|
|
133
|
+
|
|
134
|
+
No problem!
|
|
135
|
+
Types are entirely **optional** with *attrs*.
|
|
136
|
+
Simply assign `attrs.field()` to the attributes instead of annotating them with types:
|
|
137
|
+
|
|
138
|
+
```python
|
|
139
|
+
from attrs import define, field
|
|
140
|
+
|
|
141
|
+
@define
|
|
142
|
+
class SomeClass:
|
|
143
|
+
a_number = field(default=42)
|
|
144
|
+
list_of_numbers = field(factory=list)
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
## Data Classes
|
|
149
|
+
|
|
150
|
+
On the tin, *attrs* might remind you of `dataclasses` (and indeed, `dataclasses` [are a descendant](https://hynek.me/articles/import-attrs/) of *attrs*).
|
|
151
|
+
In practice it does a lot more and is more flexible.
|
|
152
|
+
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), has a replacement for `__init_subclass__`, and allows for stepping through the generated methods using a debugger.
|
|
153
|
+
|
|
154
|
+
For more details, please refer to our [comparison page](https://www.attrs.org/en/stable/why.html#data-classes), but generally speaking, we are more likely to commit crimes against nature to make things work that one would expect to work, but that are quite complicated in practice.
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
## Project Information
|
|
158
|
+
|
|
159
|
+
- [**Changelog**](https://www.attrs.org/en/stable/changelog.html)
|
|
160
|
+
- [**Documentation**](https://www.attrs.org/)
|
|
161
|
+
- [**PyPI**](https://pypi.org/project/attrs/)
|
|
162
|
+
- [**Source Code**](https://github.com/python-attrs/attrs)
|
|
163
|
+
- [**Contributing**](https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md)
|
|
164
|
+
- [**Third-party Extensions**](https://github.com/python-attrs/attrs/wiki/Extensions-to-attrs)
|
|
165
|
+
- **Get Help**: use the `python-attrs` tag on [Stack Overflow](https://stackoverflow.com/questions/tagged/python-attrs)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
### *attrs* for Enterprise
|
|
169
|
+
|
|
170
|
+
Available as part of the [Tidelift Subscription](https://tidelift.com/?utm_source=lifter&utm_medium=referral&utm_campaign=hynek).
|
|
171
|
+
|
|
172
|
+
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.
|
|
173
|
+
Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.
|
|
174
|
+
|
|
175
|
+
## Release Information
|
|
176
|
+
|
|
177
|
+
### Backwards-incompatible Changes
|
|
178
|
+
|
|
179
|
+
- Field aliases are now resolved *before* calling `field_transformer`, so transformers receive fully populated `Attribute` objects with usable `alias` values instead of `None`.
|
|
180
|
+
The new `Attribute.alias_is_default` flag indicates whether the alias was auto-generated (`True`) or explicitly set by the user (`False`).
|
|
181
|
+
[#1509](https://github.com/python-attrs/attrs/issues/1509)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### Changes
|
|
185
|
+
|
|
186
|
+
- Fix type annotations for `attrs.validators.optional()`, so it no longer rejects tuples with more than one validator.
|
|
187
|
+
[#1496](https://github.com/python-attrs/attrs/issues/1496)
|
|
188
|
+
- The `attrs.validators.disabled()` contextmanager can now be nested.
|
|
189
|
+
[#1513](https://github.com/python-attrs/attrs/issues/1513)
|
|
190
|
+
- Frozen classes can set `on_setattr=attrs.setters.NO_OP` in addition to `None`.
|
|
191
|
+
[#1515](https://github.com/python-attrs/attrs/issues/1515)
|
|
192
|
+
- It's now possible to pass *attrs* **instances** in addition to *attrs* **classes** to `attrs.fields()`.
|
|
193
|
+
[#1529](https://github.com/python-attrs/attrs/issues/1529)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
[Full changelog →](https://www.attrs.org/en/stable/changelog.html)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
attr/__init__.py,sha256=fOYIvt1eGSqQre4uCS3sJWKZ0mwAuC8UD6qba5OS9_U,2057
|
|
2
|
+
attr/__init__.pyi,sha256=pVGImAUVovq2_TYl_r_HIYnGlyOaoCuEhxo-EvsnnSc,11325
|
|
3
|
+
attr/__pycache__/__init__.cpython-311.pyc,,
|
|
4
|
+
attr/__pycache__/_cmp.cpython-311.pyc,,
|
|
5
|
+
attr/__pycache__/_compat.cpython-311.pyc,,
|
|
6
|
+
attr/__pycache__/_config.cpython-311.pyc,,
|
|
7
|
+
attr/__pycache__/_funcs.cpython-311.pyc,,
|
|
8
|
+
attr/__pycache__/_make.cpython-311.pyc,,
|
|
9
|
+
attr/__pycache__/_next_gen.cpython-311.pyc,,
|
|
10
|
+
attr/__pycache__/_version_info.cpython-311.pyc,,
|
|
11
|
+
attr/__pycache__/converters.cpython-311.pyc,,
|
|
12
|
+
attr/__pycache__/exceptions.cpython-311.pyc,,
|
|
13
|
+
attr/__pycache__/filters.cpython-311.pyc,,
|
|
14
|
+
attr/__pycache__/setters.cpython-311.pyc,,
|
|
15
|
+
attr/__pycache__/validators.cpython-311.pyc,,
|
|
16
|
+
attr/_cmp.py,sha256=3Nn1TjxllUYiX_nJoVnEkXoDk0hM1DYKj5DE7GZe4i0,4117
|
|
17
|
+
attr/_cmp.pyi,sha256=U-_RU_UZOyPUEQzXE6RMYQQcjkZRY25wTH99sN0s7MM,368
|
|
18
|
+
attr/_compat.py,sha256=x0g7iEUOnBVJC72zyFCgb1eKqyxS-7f2LGnNyZ_r95s,2829
|
|
19
|
+
attr/_config.py,sha256=dGq3xR6fgZEF6UBt_L0T-eUHIB4i43kRmH0P28sJVw8,843
|
|
20
|
+
attr/_funcs.py,sha256=Ix5IETTfz5F01F-12MF_CSFomIn2h8b67EVVz2gCtBE,16479
|
|
21
|
+
attr/_make.py,sha256=H7OH2eWS5CnBzLUjNFE1WymfPrmF1r8fv2RPdt9MuYA,106129
|
|
22
|
+
attr/_next_gen.py,sha256=BQtCUlzwg2gWHTYXBQvrEYBnzBUrDvO57u0Py6UCPhc,26274
|
|
23
|
+
attr/_typing_compat.pyi,sha256=XDP54TUn-ZKhD62TOQebmzrwFyomhUCoGRpclb6alRA,469
|
|
24
|
+
attr/_version_info.py,sha256=w4R-FYC3NK_kMkGUWJlYP4cVAlH9HRaC-um3fcjYkHM,2222
|
|
25
|
+
attr/_version_info.pyi,sha256=x_M3L3WuB7r_ULXAWjx959udKQ4HLB8l-hsc1FDGNvk,209
|
|
26
|
+
attr/converters.py,sha256=GlDeOzPeTFgeBBLbj9G57Ez5lAk68uhSALRYJ_exe84,3861
|
|
27
|
+
attr/converters.pyi,sha256=orU2bff-VjQa2kMDyvnMQV73oJT2WRyQuw4ZR1ym1bE,643
|
|
28
|
+
attr/exceptions.py,sha256=b4vMbnoQ3VpwWZhqrYi_ssXVCK8o2c4HQSS09cSUM9o,1990
|
|
29
|
+
attr/exceptions.pyi,sha256=zZq8bCUnKAy9mDtBEw42ZhPhAUIHoTKedDQInJD883M,539
|
|
30
|
+
attr/filters.py,sha256=ZBiKWLp3R0LfCZsq7X11pn9WX8NslS2wXM4jsnLOGc8,1795
|
|
31
|
+
attr/filters.pyi,sha256=3J5BG-dTxltBk1_-RuNRUHrv2qu1v8v4aDNAQ7_mifA,208
|
|
32
|
+
attr/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
|
+
attr/setters.py,sha256=5-dcT63GQK35ONEzSgfXCkbB7pPkaR-qv15mm4PVSzQ,1617
|
|
34
|
+
attr/setters.pyi,sha256=NnVkaFU1BB4JB8E4JuXyrzTUgvtMpj8p3wBdJY7uix4,584
|
|
35
|
+
attr/validators.py,sha256=m3QRzZTANr4f2C4eVdUoFg11NgXWak8Wat4qQTGhvcs,21553
|
|
36
|
+
attr/validators.pyi,sha256=gM1ZmHaBckyYWI2EirpRNzqm3B19cw5Iq6B4Kno9YCM,4087
|
|
37
|
+
attrs-26.1.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
|
38
|
+
attrs-26.1.0.dist-info/METADATA,sha256=TNQOaQ8jvzfLytNO_WdY4GLfHfB8hoM_fjzpW_H6OMw,8754
|
|
39
|
+
attrs-26.1.0.dist-info/RECORD,,
|
|
40
|
+
attrs-26.1.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
41
|
+
attrs-26.1.0.dist-info/licenses/LICENSE,sha256=iCEVyV38KvHutnFPjsbVy8q_Znyv-HKfQkINpj9xTp8,1109
|
|
42
|
+
attrs/__init__.py,sha256=RxaAZNwYiEh-fcvHLZNpQ_DWKni73M_jxEPEftiq1Zc,1183
|
|
43
|
+
attrs/__init__.pyi,sha256=2gV79g9UxJppGSM48hAZJ6h_MHb70dZoJL31ZNJeZYI,9416
|
|
44
|
+
attrs/__pycache__/__init__.cpython-311.pyc,,
|
|
45
|
+
attrs/__pycache__/converters.cpython-311.pyc,,
|
|
46
|
+
attrs/__pycache__/exceptions.cpython-311.pyc,,
|
|
47
|
+
attrs/__pycache__/filters.cpython-311.pyc,,
|
|
48
|
+
attrs/__pycache__/setters.cpython-311.pyc,,
|
|
49
|
+
attrs/__pycache__/validators.cpython-311.pyc,,
|
|
50
|
+
attrs/converters.py,sha256=8kQljrVwfSTRu8INwEk8SI0eGrzmWftsT7rM0EqyohM,76
|
|
51
|
+
attrs/exceptions.py,sha256=ACCCmg19-vDFaDPY9vFl199SPXCQMN_bENs4DALjzms,76
|
|
52
|
+
attrs/filters.py,sha256=VOUMZug9uEU6dUuA0dF1jInUK0PL3fLgP0VBS5d-CDE,73
|
|
53
|
+
attrs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
54
|
+
attrs/setters.py,sha256=eL1YidYQV3T2h9_SYIZSZR1FAcHGb1TuCTy0E0Lv2SU,73
|
|
55
|
+
attrs/validators.py,sha256=xcy6wD5TtTkdCG1f4XWbocPSO0faBjk5IfVJfP6SUj0,76
|
|
@@ -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.
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pip
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cryptography
|
|
3
|
+
Version: 50.0.1
|
|
4
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
5
|
+
Classifier: Intended Audience :: Developers
|
|
6
|
+
Classifier: Natural Language :: English
|
|
7
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
8
|
+
Classifier: Operating System :: POSIX
|
|
9
|
+
Classifier: Operating System :: POSIX :: BSD
|
|
10
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
11
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
22
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
23
|
+
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
|
24
|
+
Classifier: Topic :: Security :: Cryptography
|
|
25
|
+
Requires-Dist: cffi>=2.0.0 ; platform_python_implementation != 'PyPy'
|
|
26
|
+
Requires-Dist: typing-extensions>=4.13.2 ; python_full_version < '3.11'
|
|
27
|
+
Requires-Dist: bcrypt>=3.1.5 ; extra == 'ssh'
|
|
28
|
+
Provides-Extra: ssh
|
|
29
|
+
License-File: LICENSE
|
|
30
|
+
License-File: LICENSE.APACHE
|
|
31
|
+
License-File: LICENSE.BSD
|
|
32
|
+
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
|
|
33
|
+
Author-email: The Python Cryptographic Authority and individual contributors <cryptography-dev@python.org>
|
|
34
|
+
License-Expression: Apache-2.0 OR BSD-3-Clause
|
|
35
|
+
Requires-Python: >=3.9, !=3.9.0, !=3.9.1
|
|
36
|
+
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
37
|
+
Project-URL: changelog, https://cryptography.io/en/latest/changelog/
|
|
38
|
+
Project-URL: documentation, https://cryptography.io/
|
|
39
|
+
Project-URL: homepage, https://github.com/pyca/cryptography
|
|
40
|
+
Project-URL: issues, https://github.com/pyca/cryptography/issues
|
|
41
|
+
Project-URL: source, https://github.com/pyca/cryptography/
|
|
42
|
+
|
|
43
|
+
pyca/cryptography
|
|
44
|
+
=================
|
|
45
|
+
|
|
46
|
+
.. image:: https://img.shields.io/pypi/v/cryptography.svg
|
|
47
|
+
:target: https://pypi.org/project/cryptography/
|
|
48
|
+
:alt: Latest Version
|
|
49
|
+
|
|
50
|
+
.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest
|
|
51
|
+
:target: https://cryptography.io
|
|
52
|
+
:alt: Latest Docs
|
|
53
|
+
|
|
54
|
+
.. image:: https://github.com/pyca/cryptography/actions/workflows/ci.yml/badge.svg
|
|
55
|
+
:target: https://github.com/pyca/cryptography/actions/workflows/ci.yml?query=branch%3Amain
|
|
56
|
+
|
|
57
|
+
``cryptography`` is a package which provides cryptographic recipes and
|
|
58
|
+
primitives to Python developers. Our goal is for it to be your "cryptographic
|
|
59
|
+
standard library". It supports Python 3.9+ and PyPy3 7.3.11+.
|
|
60
|
+
|
|
61
|
+
``cryptography`` includes both high level recipes and low level interfaces to
|
|
62
|
+
common cryptographic algorithms such as symmetric ciphers, message digests, and
|
|
63
|
+
key derivation functions. For example, to encrypt something with
|
|
64
|
+
``cryptography``'s high level symmetric encryption recipe:
|
|
65
|
+
|
|
66
|
+
.. code-block:: pycon
|
|
67
|
+
|
|
68
|
+
>>> from cryptography.fernet import Fernet
|
|
69
|
+
>>> # Put this somewhere safe!
|
|
70
|
+
>>> key = Fernet.generate_key()
|
|
71
|
+
>>> f = Fernet(key)
|
|
72
|
+
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
|
|
73
|
+
>>> token
|
|
74
|
+
b'...'
|
|
75
|
+
>>> f.decrypt(token)
|
|
76
|
+
b'A really secret message. Not for prying eyes.'
|
|
77
|
+
|
|
78
|
+
You can find more information in the `documentation`_.
|
|
79
|
+
|
|
80
|
+
You can install ``cryptography`` with:
|
|
81
|
+
|
|
82
|
+
.. code-block:: console
|
|
83
|
+
|
|
84
|
+
$ pip install cryptography
|
|
85
|
+
|
|
86
|
+
For full details see `the installation documentation`_.
|
|
87
|
+
|
|
88
|
+
Discussion
|
|
89
|
+
~~~~~~~~~~
|
|
90
|
+
|
|
91
|
+
If you run into bugs, you can file them in our `issue tracker`_.
|
|
92
|
+
|
|
93
|
+
We maintain a `cryptography-dev`_ mailing list for development discussion.
|
|
94
|
+
|
|
95
|
+
You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get
|
|
96
|
+
involved.
|
|
97
|
+
|
|
98
|
+
Security
|
|
99
|
+
~~~~~~~~
|
|
100
|
+
|
|
101
|
+
Need to report a security issue? Please consult our `security reporting`_
|
|
102
|
+
documentation.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
.. _`documentation`: https://cryptography.io/
|
|
106
|
+
.. _`the installation documentation`: https://cryptography.io/en/latest/installation/
|
|
107
|
+
.. _`issue tracker`: https://github.com/pyca/cryptography/issues
|
|
108
|
+
.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev
|
|
109
|
+
.. _`security reporting`: https://cryptography.io/en/latest/security/
|
|
110
|
+
|