Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- lib/python3.13/site-packages/astor-0.8.1.dist-info/AUTHORS +19 -0
- lib/python3.13/site-packages/astor-0.8.1.dist-info/INSTALLER +1 -0
- lib/python3.13/site-packages/astor-0.8.1.dist-info/LICENSE +29 -0
- lib/python3.13/site-packages/astor-0.8.1.dist-info/METADATA +98 -0
- lib/python3.13/site-packages/astor-0.8.1.dist-info/RECORD +20 -0
- lib/python3.13/site-packages/astor-0.8.1.dist-info/REQUESTED +0 -0
- lib/python3.13/site-packages/astor-0.8.1.dist-info/WHEEL +6 -0
- lib/python3.13/site-packages/astor-0.8.1.dist-info/top_level.txt +1 -0
- lib/python3.13/site-packages/astor-0.8.1.dist-info/zip-safe +1 -0
- lib/python3.13/site-packages/cbor2-5.7.1.dist-info/INSTALLER +1 -0
- lib/python3.13/site-packages/cbor2-5.7.1.dist-info/METADATA +148 -0
- lib/python3.13/site-packages/cbor2-5.7.1.dist-info/RECORD +19 -0
- lib/python3.13/site-packages/cbor2-5.7.1.dist-info/REQUESTED +0 -0
- lib/python3.13/site-packages/cbor2-5.7.1.dist-info/WHEEL +7 -0
- lib/python3.13/site-packages/cbor2-5.7.1.dist-info/entry_points.txt +2 -0
- lib/python3.13/site-packages/cbor2-5.7.1.dist-info/top_level.txt +2 -0
- lib/python3.13/site-packages/cbor2/decoder.py +7 -0
- lib/python3.13/site-packages/cbor2/tool.py +222 -0
- lib/python3.13/site-packages/compressed_tensors/__init__.py +24 -0
- lib/python3.13/site-packages/compressed_tensors/base.py +25 -0
- lib/python3.13/site-packages/compressed_tensors/version.py +21 -0
- lib/python3.13/site-packages/gguf-0.17.1.dist-info/METADATA +126 -0
- lib/python3.13/site-packages/gguf-0.17.1.dist-info/RECORD +30 -0
- lib/python3.13/site-packages/gguf-0.17.1.dist-info/REQUESTED +0 -0
- lib/python3.13/site-packages/gguf-0.17.1.dist-info/WHEEL +4 -0
- lib/python3.13/site-packages/gguf-0.17.1.dist-info/entry_points.txt +7 -0
- lib/python3.13/site-packages/huggingface_hub/lfs.py +466 -0
- lib/python3.13/site-packages/huggingface_hub/repocard.py +827 -0
- lib/python3.13/site-packages/mdurl-0.1.2.dist-info/INSTALLER +1 -0
- lib/python3.13/site-packages/mdurl-0.1.2.dist-info/METADATA +32 -0
- lib/python3.13/site-packages/mdurl-0.1.2.dist-info/REQUESTED +0 -0
- lib/python3.13/site-packages/msgspec/__init__.py +35 -0
- lib/python3.13/site-packages/msgspec/__init__.pyi +185 -0
- lib/python3.13/site-packages/msgspec/_utils.py +319 -0
- lib/python3.13/site-packages/msgspec/json.py +8 -0
- lib/python3.13/site-packages/msgspec/json.pyi +118 -0
- lib/python3.13/site-packages/msgspec/msgpack.pyi +109 -0
- lib/python3.13/site-packages/msgspec/py.typed +0 -0
- lib/python3.13/site-packages/msgspec/structs.py +106 -0
- lib/python3.13/site-packages/msgspec/toml.py +197 -0
- lib/python3.13/site-packages/msgspec/yaml.py +192 -0
- lib/python3.13/site-packages/numba-0.61.2.dist-info/INSTALLER +1 -0
- lib/python3.13/site-packages/numba-0.61.2.dist-info/METADATA +92 -0
- lib/python3.13/site-packages/numba-0.61.2.dist-info/RECORD +824 -0
- lib/python3.13/site-packages/numba-0.61.2.dist-info/REQUESTED +0 -0
- lib/python3.13/site-packages/numba-0.61.2.dist-info/WHEEL +6 -0
- lib/python3.13/site-packages/numba-0.61.2.dist-info/top_level.txt +1 -0
- lib/python3.13/site-packages/pandas-2.3.3.dist-info/RECORD +0 -0
- lib/python3.13/site-packages/pandas-2.3.3.dist-info/REQUESTED +0 -0
- lib/python3.13/site-packages/pandas-2.3.3.dist-info/WHEEL +6 -0
lib/python3.13/site-packages/astor-0.8.1.dist-info/AUTHORS
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Original author of astor/codegen.py:
|
| 2 |
+
* Armin Ronacher <armin.ronacher@active-4.com>
|
| 3 |
+
|
| 4 |
+
And with some modifications based on Armin's code:
|
| 5 |
+
* Paul Dubs <paul.dubs@gmail.com>
|
| 6 |
+
|
| 7 |
+
* Berker Peksag <berker.peksag@gmail.com>
|
| 8 |
+
* Patrick Maupin <pmaupin@gmail.com>
|
| 9 |
+
* Abhishek L <abhishek.lekshmanan@gmail.com>
|
| 10 |
+
* Bob Tolbert <bob@eyesopen.com>
|
| 11 |
+
* Whyzgeek <whyzgeek@gmail.com>
|
| 12 |
+
* Zack M. Davis <code@zackmdavis.net>
|
| 13 |
+
* Ryan Gonzalez <rymg19@gmail.com>
|
| 14 |
+
* Lenny Truong <leonardtruong@protonmail.com>
|
| 15 |
+
* Radomír Bosák <radomir.bosak@gmail.com>
|
| 16 |
+
* Kodi Arfer <git@arfer.net>
|
| 17 |
+
* Felix Yan <felixonmars@archlinux.org>
|
| 18 |
+
* Chris Rink <chrisrink10@gmail.com>
|
| 19 |
+
* Batuhan Taskaya <batuhanosmantaskaya@gmail.com>
|
lib/python3.13/site-packages/astor-0.8.1.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
uv
|
lib/python3.13/site-packages/astor-0.8.1.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2012, Patrick Maupin
|
| 2 |
+
Copyright (c) 2013, Berker Peksag
|
| 3 |
+
Copyright (c) 2008, Armin Ronacher
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
1. Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
|
| 12 |
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
| 13 |
+
this list of conditions and the following disclaimer in the documentation and/or
|
| 14 |
+
other materials provided with the distribution.
|
| 15 |
+
|
| 16 |
+
3. Neither the name of the copyright holder nor the names of its contributors
|
| 17 |
+
may be used to endorse or promote products derived from this software without
|
| 18 |
+
specific prior written permission.
|
| 19 |
+
|
| 20 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 21 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 22 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 23 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
| 24 |
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
| 25 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
| 26 |
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
| 27 |
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 28 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| 29 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
lib/python3.13/site-packages/astor-0.8.1.dist-info/METADATA
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: astor
|
| 3 |
+
Version: 0.8.1
|
| 4 |
+
Summary: Read/rewrite/write Python ASTs
|
| 5 |
+
Home-page: https://github.com/berkerpeksag/astor
|
| 6 |
+
Author: Patrick Maupin
|
| 7 |
+
Author-email: pmaupin@gmail.com
|
| 8 |
+
License: BSD-3-Clause
|
| 9 |
+
Keywords: ast,codegen,PEP 8
|
| 10 |
+
Platform: Independent
|
| 11 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 12 |
+
Classifier: Environment :: Console
|
| 13 |
+
Classifier: Intended Audience :: Developers
|
| 14 |
+
Classifier: License :: OSI Approved :: BSD License
|
| 15 |
+
Classifier: Operating System :: OS Independent
|
| 16 |
+
Classifier: Programming Language :: Python
|
| 17 |
+
Classifier: Programming Language :: Python :: 2
|
| 18 |
+
Classifier: Programming Language :: Python :: 2.7
|
| 19 |
+
Classifier: Programming Language :: Python :: 3
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.4
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.5
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.6
|
| 23 |
+
Classifier: Programming Language :: Python :: 3.7
|
| 24 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 25 |
+
Classifier: Programming Language :: Python :: Implementation
|
| 26 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 27 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
| 28 |
+
Classifier: Topic :: Software Development :: Code Generators
|
| 29 |
+
Classifier: Topic :: Software Development :: Compilers
|
| 30 |
+
Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7
|
| 31 |
+
|
| 32 |
+
=============================
|
| 33 |
+
astor -- AST observe/rewrite
|
| 34 |
+
=============================
|
| 35 |
+
|
| 36 |
+
:PyPI: https://pypi.org/project/astor/
|
| 37 |
+
:Documentation: https://astor.readthedocs.io
|
| 38 |
+
:Source: https://github.com/berkerpeksag/astor
|
| 39 |
+
:License: 3-clause BSD
|
| 40 |
+
:Build status:
|
| 41 |
+
.. image:: https://secure.travis-ci.org/berkerpeksag/astor.svg
|
| 42 |
+
:alt: Travis CI
|
| 43 |
+
:target: https://travis-ci.org/berkerpeksag/astor/
|
| 44 |
+
|
| 45 |
+
astor is designed to allow easy manipulation of Python source via the AST.
|
| 46 |
+
|
| 47 |
+
There are some other similar libraries, but astor focuses on the following areas:
|
| 48 |
+
|
| 49 |
+
- Round-trip an AST back to Python [1]_:
|
| 50 |
+
|
| 51 |
+
- Modified AST doesn't need linenumbers, ctx, etc. or otherwise
|
| 52 |
+
be directly compileable for the round-trip to work.
|
| 53 |
+
- Easy to read generated code as, well, code
|
| 54 |
+
- Can round-trip two different source trees to compare for functional
|
| 55 |
+
differences, using the astor.rtrip tool (for example, after PEP8 edits).
|
| 56 |
+
|
| 57 |
+
- Dump pretty-printing of AST
|
| 58 |
+
|
| 59 |
+
- Harder to read than round-tripped code, but more accurate to figure out what
|
| 60 |
+
is going on.
|
| 61 |
+
|
| 62 |
+
- Easier to read than dump from built-in AST module
|
| 63 |
+
|
| 64 |
+
- Non-recursive treewalk
|
| 65 |
+
|
| 66 |
+
- Sometimes you want a recursive treewalk (and astor supports that, starting
|
| 67 |
+
at any node on the tree), but sometimes you don't need to do that. astor
|
| 68 |
+
doesn't require you to explicitly visit sub-nodes unless you want to:
|
| 69 |
+
|
| 70 |
+
- You can add code that executes before a node's children are visited, and/or
|
| 71 |
+
- You can add code that executes after a node's children are visited, and/or
|
| 72 |
+
- You can add code that executes and keeps the node's children from being
|
| 73 |
+
visited (and optionally visit them yourself via a recursive call)
|
| 74 |
+
|
| 75 |
+
- Write functions to access the tree based on object names and/or attribute names
|
| 76 |
+
- Enjoy easy access to parent node(s) for tree rewriting
|
| 77 |
+
|
| 78 |
+
.. [1]
|
| 79 |
+
The decompilation back to Python is based on code originally written
|
| 80 |
+
by Armin Ronacher. Armin's code was well-structured, but failed on
|
| 81 |
+
some obscure corner cases of the Python language (and even more corner
|
| 82 |
+
cases when the AST changed on different versions of Python), and its
|
| 83 |
+
output arguably had cosmetic issues -- for example, it produced
|
| 84 |
+
parentheses even in some cases where they were not needed, to
|
| 85 |
+
avoid having to reason about precedence.
|
| 86 |
+
|
| 87 |
+
Other derivatives of Armin's code are floating around, and typically
|
| 88 |
+
have fixes for a few corner cases that happened to be noticed by the
|
| 89 |
+
maintainers, but most of them have not been tested as thoroughly as
|
| 90 |
+
astor. One exception may be the version of codegen
|
| 91 |
+
`maintained at github by CensoredUsername`__. This has been tested
|
| 92 |
+
to work properly on Python 2.7 using astor's test suite, and, as it
|
| 93 |
+
is a single source file, it may be easier to drop into some applications
|
| 94 |
+
that do not require astor's other features or Python 3.x compatibility.
|
| 95 |
+
|
| 96 |
+
__ https://github.com/CensoredUsername/codegen
|
| 97 |
+
|
| 98 |
+
|
lib/python3.13/site-packages/astor-0.8.1.dist-info/RECORD
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
astor-0.8.1.dist-info/AUTHORS,sha256=dy5MQIMINxY79YbaRR19C_CNAgHe3tcuvESs7ypxKQc,679
|
| 2 |
+
astor-0.8.1.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
|
| 3 |
+
astor-0.8.1.dist-info/LICENSE,sha256=zkHq_C78AY2cfJahx3lmgkbHfbEaE544ifNH9GSmG50,1554
|
| 4 |
+
astor-0.8.1.dist-info/METADATA,sha256=0nH_-dzD0tPZUB4Hs5o-OOEuId9lteVELQPI5hG0oKo,4235
|
| 5 |
+
astor-0.8.1.dist-info/RECORD,,
|
| 6 |
+
astor-0.8.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 7 |
+
astor-0.8.1.dist-info/WHEEL,sha256=8zNYZbwQSXoB9IfXOjPfeNwvAsALAjffgk27FqvCWbo,110
|
| 8 |
+
astor-0.8.1.dist-info/top_level.txt,sha256=M5xfrbiL9-EIlOb1h2T8s6gFbV3b9AbwgI0ARzaRyaY,6
|
| 9 |
+
astor-0.8.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
| 10 |
+
astor/VERSION,sha256=qvZyHcN8QLQjOsz8CB8ld2_zvR0qS51c6nYNHCz4ZmU,6
|
| 11 |
+
astor/__init__.py,sha256=C9rmH4v9K7pkIk3eDuVRhqO5wULt3B42copNJsEw8rw,2291
|
| 12 |
+
astor/code_gen.py,sha256=0KAimfyV8pIPXQx6s_NyPSXRhAxMLWXbCPEQuCTpxac,32032
|
| 13 |
+
astor/codegen.py,sha256=lTqdJWMK4EAJ1wxDw2XR-MLyHJmvbV1_Q5QLj9naE_g,204
|
| 14 |
+
astor/file_util.py,sha256=BETsKYg8UiKoZNswRkirzPSZWgku41dRzZC7T5X3_F4,3268
|
| 15 |
+
astor/node_util.py,sha256=WEWMUMSfHtLwgx54nMkc2APLV573iOPhqPag4gIbhVQ,6542
|
| 16 |
+
astor/op_util.py,sha256=GGcgYqa3DFOAaoSt7TTu46VUhe1J13dO14-SQTRXRYI,3191
|
| 17 |
+
astor/rtrip.py,sha256=AlvQvsUuUZ8zxvRFpWF_Fsv4-NksPB23rvVkTrkvef8,6741
|
| 18 |
+
astor/source_repr.py,sha256=1lj4jakkrcGDRoo-BIRZDszQ8gukdeLR_fmvGqBrP-U,7373
|
| 19 |
+
astor/string_repr.py,sha256=YeC_DVeIJdPElqjgzzhPFheQsz_QjMEW_SLODFvEsIA,2917
|
| 20 |
+
astor/tree_walk.py,sha256=fJaw54GgTg4NTRJLVRl2XSnfFOG9GdjOUlI6ZChLOb8,6020
|
lib/python3.13/site-packages/astor-0.8.1.dist-info/REQUESTED
ADDED
|
File without changes
|
lib/python3.13/site-packages/astor-0.8.1.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.33.6)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py2-none-any
|
| 5 |
+
Tag: py3-none-any
|
| 6 |
+
|
lib/python3.13/site-packages/astor-0.8.1.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
astor
|
lib/python3.13/site-packages/astor-0.8.1.dist-info/zip-safe
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
|
lib/python3.13/site-packages/cbor2-5.7.1.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
uv
|
lib/python3.13/site-packages/cbor2-5.7.1.dist-info/METADATA
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: cbor2
|
| 3 |
+
Version: 5.7.1
|
| 4 |
+
Summary: CBOR (de)serializer with extensive tag support
|
| 5 |
+
Author-email: Alex Grönholm <alex.gronholm@nextday.fi>
|
| 6 |
+
License-Expression: MIT
|
| 7 |
+
Project-URL: Changelog, https://cbor2.readthedocs.io/en/latest/versionhistory.html
|
| 8 |
+
Project-URL: Documentation, https://cbor2.readthedocs.org/en/latest/
|
| 9 |
+
Project-URL: Source Code, https://github.com/agronholm/cbor2
|
| 10 |
+
Project-URL: Issue Tracker, https://github.com/agronholm/cbor2/issues
|
| 11 |
+
Keywords: serialization,cbor
|
| 12 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 13 |
+
Classifier: Intended Audience :: Developers
|
| 14 |
+
Classifier: Typing :: Typed
|
| 15 |
+
Classifier: Programming Language :: Python
|
| 16 |
+
Classifier: Programming Language :: Python :: 3
|
| 17 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.14
|
| 23 |
+
Requires-Python: >=3.9
|
| 24 |
+
Description-Content-Type: text/x-rst
|
| 25 |
+
License-File: LICENSE.txt
|
| 26 |
+
Dynamic: license-file
|
| 27 |
+
|
| 28 |
+
.. image:: https://github.com/agronholm/cbor2/actions/workflows/test.yml/badge.svg
|
| 29 |
+
:target: https://github.com/agronholm/cbor2/actions/workflows/test.yml
|
| 30 |
+
:alt: Testing Status
|
| 31 |
+
.. image:: https://github.com/agronholm/cbor2/actions/workflows/publish.yml/badge.svg
|
| 32 |
+
:target: https://github.com/agronholm/cbor2/actions/workflows/publish.yml
|
| 33 |
+
:alt: Publish Status
|
| 34 |
+
.. image:: https://coveralls.io/repos/github/agronholm/cbor2/badge.svg?branch=master
|
| 35 |
+
:target: https://coveralls.io/github/agronholm/cbor2?branch=master
|
| 36 |
+
:alt: Code Coverage
|
| 37 |
+
.. image:: https://readthedocs.org/projects/cbor2/badge/?version=latest
|
| 38 |
+
:target: https://cbor2.readthedocs.io/en/latest/?badge=latest
|
| 39 |
+
:alt: Documentation Status
|
| 40 |
+
|
| 41 |
+
About
|
| 42 |
+
=====
|
| 43 |
+
|
| 44 |
+
This library provides encoding and decoding for the Concise Binary Object Representation (CBOR)
|
| 45 |
+
(`RFC 8949`_) serialization format. The specification is fully compatible with the original RFC 7049.
|
| 46 |
+
`Read the docs <https://cbor2.readthedocs.io/>`_ to learn more.
|
| 47 |
+
|
| 48 |
+
It is implemented in pure python with an optional C backend.
|
| 49 |
+
|
| 50 |
+
On PyPy, cbor2 runs with almost identical performance to the C backend.
|
| 51 |
+
|
| 52 |
+
.. _RFC 8949: https://www.rfc-editor.org/rfc/rfc8949.html
|
| 53 |
+
|
| 54 |
+
Features
|
| 55 |
+
--------
|
| 56 |
+
|
| 57 |
+
* Simple api like ``json`` or ``pickle`` modules.
|
| 58 |
+
* Support many `CBOR tags`_ with `stdlib objects`_.
|
| 59 |
+
* Generic tag decoding.
|
| 60 |
+
* `Shared value`_ references including cyclic references.
|
| 61 |
+
* `String references`_ compact encoding with repeated strings replaced with indices.
|
| 62 |
+
* Optional C module backend tested on big- and little-endian architectures.
|
| 63 |
+
* Extensible `tagged value handling`_ using ``tag_hook`` and ``object_hook`` on decode and ``default`` on encode.
|
| 64 |
+
* Command-line diagnostic tool, converting CBOR file or stream to JSON ``python -m cbor2.tool``
|
| 65 |
+
(This is a lossy conversion, for diagnostics only)
|
| 66 |
+
* Thorough test suite.
|
| 67 |
+
|
| 68 |
+
.. _CBOR tags: https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml
|
| 69 |
+
.. _stdlib objects: https://cbor2.readthedocs.io/en/latest/usage.html#tag-support
|
| 70 |
+
.. _Shared value: http://cbor.schmorp.de/value-sharing
|
| 71 |
+
.. _String references: http://cbor.schmorp.de/stringref
|
| 72 |
+
.. _tagged value handling: https://cbor2.readthedocs.io/en/latest/customizing.html#using-the-cbor-tags-for-custom-types
|
| 73 |
+
|
| 74 |
+
Installation
|
| 75 |
+
============
|
| 76 |
+
|
| 77 |
+
::
|
| 78 |
+
|
| 79 |
+
pip install cbor2
|
| 80 |
+
|
| 81 |
+
Requirements
|
| 82 |
+
------------
|
| 83 |
+
|
| 84 |
+
* Python >= 3.9 (or `PyPy3`_ 3.9+)
|
| 85 |
+
* C-extension: Any C compiler that can build Python extensions.
|
| 86 |
+
Any modern libc with the exception of Glibc<2.9
|
| 87 |
+
|
| 88 |
+
.. _PyPy3: https://www.pypy.org/
|
| 89 |
+
|
| 90 |
+
Building the C-Extension
|
| 91 |
+
------------------------
|
| 92 |
+
|
| 93 |
+
To force building of the optional C-extension, set OS env ``CBOR2_BUILD_C_EXTENSION=1``.
|
| 94 |
+
To disable building of the optional C-extension, set OS env ``CBOR2_BUILD_C_EXTENSION=0``.
|
| 95 |
+
If this environment variable is unset, setup.py will default to auto detecting a compatible C library and
|
| 96 |
+
attempt to compile the extension.
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
Usage
|
| 100 |
+
=====
|
| 101 |
+
|
| 102 |
+
`Basic Usage <https://cbor2.readthedocs.io/en/latest/usage.html#basic-usage>`_
|
| 103 |
+
|
| 104 |
+
Command-line Usage
|
| 105 |
+
==================
|
| 106 |
+
|
| 107 |
+
The provided command line tool (``cbor2``) converts CBOR data in raw binary or base64
|
| 108 |
+
encoding into a representation that allows printing as JSON. This is a lossy
|
| 109 |
+
transformation as each datatype is converted into something that can be represented as a
|
| 110 |
+
JSON value.
|
| 111 |
+
|
| 112 |
+
The tool can alternatively be invoked with ``python -m cbor2.tool``.
|
| 113 |
+
|
| 114 |
+
Usage::
|
| 115 |
+
|
| 116 |
+
# Pass hexadecimal through xxd.
|
| 117 |
+
$ echo a16568656c6c6f65776f726c64 | xxd -r -ps | cbor2 --pretty
|
| 118 |
+
{
|
| 119 |
+
"hello": "world"
|
| 120 |
+
}
|
| 121 |
+
# Decode Base64 directly
|
| 122 |
+
$ echo ggEC | python -m cbor2.tool --decode
|
| 123 |
+
[1, 2]
|
| 124 |
+
# Read from a file encoded in Base64
|
| 125 |
+
$ python -m cbor2.tool -d tests/examples.cbor.b64
|
| 126 |
+
{...}
|
| 127 |
+
|
| 128 |
+
It can be used in a pipeline with json processing tools like `jq`_ to allow syntax
|
| 129 |
+
coloring, field extraction and more.
|
| 130 |
+
|
| 131 |
+
CBOR data items concatenated into a sequence can be decoded also::
|
| 132 |
+
|
| 133 |
+
$ echo ggECggMEggUG | cbor2 -d --sequence
|
| 134 |
+
[1, 2]
|
| 135 |
+
[3, 4]
|
| 136 |
+
[5, 6]
|
| 137 |
+
|
| 138 |
+
Multiple files can also be sent to a single output file::
|
| 139 |
+
|
| 140 |
+
$ cbor2 -o all_files.json file1.cbor file2.cbor ... fileN.cbor
|
| 141 |
+
|
| 142 |
+
.. _jq: https://stedolan.github.io/jq/
|
| 143 |
+
|
| 144 |
+
Security
|
| 145 |
+
========
|
| 146 |
+
|
| 147 |
+
This library has not been tested against malicious input. In theory it should be
|
| 148 |
+
as safe as JSON, since unlike ``pickle`` the decoder does not execute any code.
|
lib/python3.13/site-packages/cbor2-5.7.1.dist-info/RECORD
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
../../../bin/cbor2,sha256=mBxgdAJTwSbgkqhWKaV9i_2AyoAADy6VZJkiV8yroW0,327
|
| 2 |
+
_cbor2.cpython-313-x86_64-linux-gnu.so,sha256=tiL_yIk9mjzJVCgBnXyyUlNeK7zlzobte71bTLEXRPo,915016
|
| 3 |
+
cbor2-5.7.1.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
|
| 4 |
+
cbor2-5.7.1.dist-info/METADATA,sha256=jChfdgvjQeo7FiqpFK04E1A8A8HsieWfURFOnY5znqw,5410
|
| 5 |
+
cbor2-5.7.1.dist-info/RECORD,,
|
| 6 |
+
cbor2-5.7.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 7 |
+
cbor2-5.7.1.dist-info/WHEEL,sha256=2iHh9e2o6T3nHtu_NVT7Cs7pebIqF94rZK8zrQfgoJI,190
|
| 8 |
+
cbor2-5.7.1.dist-info/entry_points.txt,sha256=Od3b0jBICm8GDjdi1loF9kQw3n-E61DkWIErBWjFKU8,42
|
| 9 |
+
cbor2-5.7.1.dist-info/licenses/LICENSE.txt,sha256=pq_RJtj1RaFRZqIvJfrf9Ln7SXi73RfpfZfZULZtL-8,1081
|
| 10 |
+
cbor2-5.7.1.dist-info/top_level.txt,sha256=saWivOPqWvXfQChNvhqeWUndWDjSYMHq9H9fC8t1xDA,13
|
| 11 |
+
cbor2/__init__.py,sha256=RurTl4ZS_siScJLcpwHfmgSO4h4pWn-bu41ImaqscyY,3190
|
| 12 |
+
cbor2/_decoder.py,sha256=0pwgy9eeGDrXLuq_bffBFjL0ivp6hVJVKqrC8vVG-pQ,30709
|
| 13 |
+
cbor2/_encoder.py,sha256=6virRoEznzXfhihnCJ0DRQkejHU2AqacStdkaYd-c84,31267
|
| 14 |
+
cbor2/_types.py,sha256=7eyVlz4NZ39E0JJE-U6u1tcX8ZVgbsizFGZuUZ37hBQ,6260
|
| 15 |
+
cbor2/decoder.py,sha256=4A2Z2JT447-1GbJNTj0RBTFX3G4C--pwk4wknTgpGj8,249
|
| 16 |
+
cbor2/encoder.py,sha256=GwfM16ite3j845Nruqt2hCtAfg1AMVuIJHvRId6KurA,317
|
| 17 |
+
cbor2/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 18 |
+
cbor2/tool.py,sha256=m7tXDzPfbzbD-TLOuEoxTuP3ev42jymr9q_iZxSKXGo,6795
|
| 19 |
+
cbor2/types.py,sha256=2eOwwTGjVVHqoikU-5ZMR0DJiZ-SYcDY1mGqs-nyGSs,706
|
lib/python3.13/site-packages/cbor2-5.7.1.dist-info/REQUESTED
ADDED
|
File without changes
|
lib/python3.13/site-packages/cbor2-5.7.1.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (80.9.0)
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp313-cp313-manylinux_2_17_x86_64
|
| 5 |
+
Tag: cp313-cp313-manylinux2014_x86_64
|
| 6 |
+
Tag: cp313-cp313-manylinux_2_28_x86_64
|
| 7 |
+
|
lib/python3.13/site-packages/cbor2-5.7.1.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[console_scripts]
|
| 2 |
+
cbor2 = cbor2.tool:main
|
lib/python3.13/site-packages/cbor2-5.7.1.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_cbor2
|
| 2 |
+
cbor2
|
lib/python3.13/site-packages/cbor2/decoder.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from warnings import warn
|
| 2 |
+
|
| 3 |
+
from ._decoder import CBORDecoder as CBORDecoder
|
| 4 |
+
from ._decoder import load as load
|
| 5 |
+
from ._decoder import loads as loads
|
| 6 |
+
|
| 7 |
+
warn("The cbor.decoder module has been deprecated. Instead import everything directly from cbor2.")
|
lib/python3.13/site-packages/cbor2/tool.py
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Command-line tool for CBOR diagnostics and testing"""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import argparse
|
| 6 |
+
import base64
|
| 7 |
+
import decimal
|
| 8 |
+
import fractions
|
| 9 |
+
import io
|
| 10 |
+
import ipaddress
|
| 11 |
+
import json
|
| 12 |
+
import re
|
| 13 |
+
import sys
|
| 14 |
+
import uuid
|
| 15 |
+
from collections.abc import Callable, Collection, Iterable, Iterator
|
| 16 |
+
from contextlib import ExitStack
|
| 17 |
+
from datetime import datetime
|
| 18 |
+
from functools import partial
|
| 19 |
+
from typing import TYPE_CHECKING, Any, BinaryIO, TypeVar
|
| 20 |
+
|
| 21 |
+
from . import CBORDecoder, CBORSimpleValue, CBORTag, FrozenDict, load, undefined
|
| 22 |
+
|
| 23 |
+
if TYPE_CHECKING:
|
| 24 |
+
from typing import Literal, TypeAlias
|
| 25 |
+
|
| 26 |
+
T = TypeVar("T")
|
| 27 |
+
JSONValue: TypeAlias = "str | float | bool | None | list[JSONValue] | dict[str, JSONValue]"
|
| 28 |
+
|
| 29 |
+
default_encoders: dict[type, Callable[[Any], Any]] = {
|
| 30 |
+
bytes: lambda x: x.decode(encoding="utf-8", errors="backslashreplace"),
|
| 31 |
+
decimal.Decimal: str,
|
| 32 |
+
FrozenDict: lambda x: str(dict(x)),
|
| 33 |
+
CBORSimpleValue: lambda x: f"cbor_simple:{x.value:d}",
|
| 34 |
+
type(undefined): lambda x: "cbor:undef",
|
| 35 |
+
datetime: lambda x: x.isoformat(),
|
| 36 |
+
fractions.Fraction: str,
|
| 37 |
+
uuid.UUID: lambda x: x.urn,
|
| 38 |
+
CBORTag: lambda x: {f"CBORTag:{x.tag:d}": x.value},
|
| 39 |
+
set: list,
|
| 40 |
+
re.compile("").__class__: lambda x: x.pattern,
|
| 41 |
+
ipaddress.IPv4Address: str,
|
| 42 |
+
ipaddress.IPv6Address: str,
|
| 43 |
+
ipaddress.IPv4Network: str,
|
| 44 |
+
ipaddress.IPv6Network: str,
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def tag_hook(decoder: CBORDecoder, tag: CBORTag, ignore_tags: Collection[int] = ()) -> object:
|
| 49 |
+
if tag.tag in ignore_tags:
|
| 50 |
+
return tag.value
|
| 51 |
+
|
| 52 |
+
if tag.tag == 24:
|
| 53 |
+
return decoder.decode_from_bytes(tag.value)
|
| 54 |
+
elif decoder.immutable:
|
| 55 |
+
return f"CBORtag:{tag.tag}:{tag.value}"
|
| 56 |
+
|
| 57 |
+
return tag
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
class DefaultEncoder(json.JSONEncoder):
|
| 61 |
+
def default(self, v: Any) -> Any:
|
| 62 |
+
obj_type = v.__class__
|
| 63 |
+
encoder = default_encoders.get(obj_type)
|
| 64 |
+
if encoder:
|
| 65 |
+
return encoder(v)
|
| 66 |
+
|
| 67 |
+
return json.JSONEncoder.default(self, v)
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
def iterdecode(
|
| 71 |
+
f: BinaryIO,
|
| 72 |
+
tag_hook: Callable[[CBORDecoder, CBORTag], Any] | None = None,
|
| 73 |
+
object_hook: Callable[[CBORDecoder, dict[Any, Any]], Any] | None = None,
|
| 74 |
+
str_errors: Literal["strict", "error", "replace"] = "strict",
|
| 75 |
+
) -> Iterator[Any]:
|
| 76 |
+
decoder = CBORDecoder(f, tag_hook=tag_hook, object_hook=object_hook, str_errors=str_errors)
|
| 77 |
+
while True:
|
| 78 |
+
try:
|
| 79 |
+
yield decoder.decode()
|
| 80 |
+
except EOFError:
|
| 81 |
+
return
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
def key_to_str(d: T, dict_ids: set[int] | None = None) -> str | list[Any] | dict[str, Any] | T:
|
| 85 |
+
dict_ids = set(dict_ids or [])
|
| 86 |
+
rval: dict[str, Any] = {}
|
| 87 |
+
if not isinstance(d, dict):
|
| 88 |
+
if isinstance(d, CBORSimpleValue):
|
| 89 |
+
return f"cbor_simple:{d.value:d}"
|
| 90 |
+
|
| 91 |
+
if isinstance(d, (tuple, list, set)):
|
| 92 |
+
if id(d) in dict_ids:
|
| 93 |
+
raise ValueError("Cannot convert self-referential data to JSON")
|
| 94 |
+
else:
|
| 95 |
+
dict_ids.add(id(d))
|
| 96 |
+
|
| 97 |
+
v = [key_to_str(x, dict_ids) for x in d]
|
| 98 |
+
dict_ids.remove(id(d))
|
| 99 |
+
return v
|
| 100 |
+
else:
|
| 101 |
+
return d
|
| 102 |
+
|
| 103 |
+
if id(d) in dict_ids:
|
| 104 |
+
raise ValueError("Cannot convert self-referential data to JSON")
|
| 105 |
+
else:
|
| 106 |
+
dict_ids.add(id(d))
|
| 107 |
+
|
| 108 |
+
for k, v in d.items():
|
| 109 |
+
if isinstance(k, bytes):
|
| 110 |
+
k = k.decode(encoding="utf-8", errors="backslashreplace")
|
| 111 |
+
elif isinstance(k, CBORSimpleValue):
|
| 112 |
+
k = f"cbor_simple:{k.value:d}"
|
| 113 |
+
elif isinstance(k, (FrozenDict, frozenset, tuple)):
|
| 114 |
+
k = str(k)
|
| 115 |
+
|
| 116 |
+
if isinstance(v, dict):
|
| 117 |
+
v = key_to_str(v, dict_ids)
|
| 118 |
+
elif isinstance(v, (tuple, list, set)):
|
| 119 |
+
v = [key_to_str(x, dict_ids) for x in v]
|
| 120 |
+
|
| 121 |
+
rval[k] = v
|
| 122 |
+
|
| 123 |
+
return rval
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
def main() -> None:
|
| 127 |
+
prog = "python -m cbor2.tool"
|
| 128 |
+
description = (
|
| 129 |
+
"A simple command line interface for cbor2 module "
|
| 130 |
+
"to validate and pretty-print CBOR objects."
|
| 131 |
+
)
|
| 132 |
+
parser = argparse.ArgumentParser(prog=prog, description=description)
|
| 133 |
+
parser.add_argument("-o", "--outfile", type=str, help="output file", default="-")
|
| 134 |
+
parser.add_argument(
|
| 135 |
+
"infiles",
|
| 136 |
+
nargs="*",
|
| 137 |
+
default=["-"],
|
| 138 |
+
help="Collection of CBOR files to process or - for stdin",
|
| 139 |
+
)
|
| 140 |
+
parser.add_argument(
|
| 141 |
+
"-k",
|
| 142 |
+
"--sort-keys",
|
| 143 |
+
action="store_true",
|
| 144 |
+
default=False,
|
| 145 |
+
help="sort the output of dictionaries alphabetically by key",
|
| 146 |
+
)
|
| 147 |
+
parser.add_argument(
|
| 148 |
+
"-p",
|
| 149 |
+
"--pretty",
|
| 150 |
+
action="store_true",
|
| 151 |
+
default=False,
|
| 152 |
+
help="indent the output to look good",
|
| 153 |
+
)
|
| 154 |
+
parser.add_argument(
|
| 155 |
+
"-s",
|
| 156 |
+
"--sequence",
|
| 157 |
+
action="store_true",
|
| 158 |
+
default=False,
|
| 159 |
+
help="Parse a sequence of concatenated CBOR items",
|
| 160 |
+
)
|
| 161 |
+
parser.add_argument(
|
| 162 |
+
"-d",
|
| 163 |
+
"--decode",
|
| 164 |
+
action="store_true",
|
| 165 |
+
default=False,
|
| 166 |
+
help="CBOR data is base64 encoded (handy for stdin)",
|
| 167 |
+
)
|
| 168 |
+
parser.add_argument(
|
| 169 |
+
"-i",
|
| 170 |
+
"--tag-ignore",
|
| 171 |
+
type=str,
|
| 172 |
+
default="",
|
| 173 |
+
help="Comma separated list of tags to ignore and only return the value",
|
| 174 |
+
)
|
| 175 |
+
options = parser.parse_args()
|
| 176 |
+
|
| 177 |
+
if options.outfile == "-":
|
| 178 |
+
outfile = 1
|
| 179 |
+
closefd = False
|
| 180 |
+
else:
|
| 181 |
+
outfile = options.outfile
|
| 182 |
+
closefd = True
|
| 183 |
+
|
| 184 |
+
ignore_s = options.tag_ignore.split(",")
|
| 185 |
+
droptags = {int(n) for n in ignore_s if (len(n) and n[0].isdigit())}
|
| 186 |
+
my_hook = partial(tag_hook, ignore_tags=droptags)
|
| 187 |
+
|
| 188 |
+
with open(
|
| 189 |
+
outfile, mode="w", encoding="utf-8", errors="backslashreplace", closefd=closefd
|
| 190 |
+
) as outfp:
|
| 191 |
+
for path in options.infiles:
|
| 192 |
+
with ExitStack() as stack:
|
| 193 |
+
if path == "-":
|
| 194 |
+
infile: BinaryIO = sys.stdin.buffer
|
| 195 |
+
else:
|
| 196 |
+
infile = stack.enter_context(open(path, mode="rb"))
|
| 197 |
+
|
| 198 |
+
if options.decode:
|
| 199 |
+
infile = io.BytesIO(base64.b64decode(infile.read()))
|
| 200 |
+
|
| 201 |
+
try:
|
| 202 |
+
if options.sequence:
|
| 203 |
+
objs: Iterable[Any] = iterdecode(infile, tag_hook=my_hook)
|
| 204 |
+
else:
|
| 205 |
+
objs = (load(infile, tag_hook=my_hook),)
|
| 206 |
+
|
| 207 |
+
for obj in objs:
|
| 208 |
+
json.dump(
|
| 209 |
+
key_to_str(obj),
|
| 210 |
+
outfp,
|
| 211 |
+
sort_keys=options.sort_keys,
|
| 212 |
+
indent=(None, 4)[options.pretty],
|
| 213 |
+
cls=DefaultEncoder,
|
| 214 |
+
ensure_ascii=False,
|
| 215 |
+
)
|
| 216 |
+
outfp.write("\n")
|
| 217 |
+
except (ValueError, EOFError) as e: # pragma: no cover
|
| 218 |
+
raise SystemExit(e)
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
if __name__ == "__main__": # pragma: no cover
|
| 222 |
+
main()
|
lib/python3.13/site-packages/compressed_tensors/__init__.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (c) 2021 - present / Neuralmagic, Inc. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing,
|
| 10 |
+
# software distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
|
| 15 |
+
# flake8: noqa
|
| 16 |
+
# isort: off
|
| 17 |
+
from .logger import LoggerConfig, configure_logger, logger
|
| 18 |
+
from .base import *
|
| 19 |
+
|
| 20 |
+
from .compressors import *
|
| 21 |
+
from .config import *
|
| 22 |
+
from .quantization import QuantizationConfig, QuantizationStatus
|
| 23 |
+
from .utils import *
|
| 24 |
+
from .version import *
|
lib/python3.13/site-packages/compressed_tensors/base.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (c) 2021 - present / Neuralmagic, Inc. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing,
|
| 10 |
+
# software distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
|
| 15 |
+
# configs
|
| 16 |
+
QUANTIZATION_CONFIG_NAME = "quantization_config"
|
| 17 |
+
SPARSITY_CONFIG_NAME = "sparsity_config"
|
| 18 |
+
TRANSFORM_CONFIG_NAME = "transform_config"
|
| 19 |
+
|
| 20 |
+
# required fields
|
| 21 |
+
COMPRESSION_VERSION_NAME = "version"
|
| 22 |
+
QUANTIZATION_METHOD_NAME = "quant_method"
|
| 23 |
+
|
| 24 |
+
# auxillary configs
|
| 25 |
+
KV_CACHE_SCHEME_NAME = "kv_cache_scheme"
|
lib/python3.13/site-packages/compressed_tensors/version.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# file generated by setuptools-scm
|
| 2 |
+
# don't change, don't track in version control
|
| 3 |
+
|
| 4 |
+
__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
|
| 5 |
+
|
| 6 |
+
TYPE_CHECKING = False
|
| 7 |
+
if TYPE_CHECKING:
|
| 8 |
+
from typing import Tuple
|
| 9 |
+
from typing import Union
|
| 10 |
+
|
| 11 |
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
| 12 |
+
else:
|
| 13 |
+
VERSION_TUPLE = object
|
| 14 |
+
|
| 15 |
+
version: str
|
| 16 |
+
__version__: str
|
| 17 |
+
__version_tuple__: VERSION_TUPLE
|
| 18 |
+
version_tuple: VERSION_TUPLE
|
| 19 |
+
|
| 20 |
+
__version__ = version = '0.12.2'
|
| 21 |
+
__version_tuple__ = version_tuple = (0, 12, 2)
|
lib/python3.13/site-packages/gguf-0.17.1.dist-info/METADATA
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.3
|
| 2 |
+
Name: gguf
|
| 3 |
+
Version: 0.17.1
|
| 4 |
+
Summary: Read and write ML models in GGUF for GGML
|
| 5 |
+
Keywords: ggml,gguf,llama.cpp
|
| 6 |
+
Author: GGML
|
| 7 |
+
Author-email: ggml@ggml.ai
|
| 8 |
+
Requires-Python: >=3.8
|
| 9 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 10 |
+
Classifier: Operating System :: OS Independent
|
| 11 |
+
Classifier: Programming Language :: Python :: 3
|
| 12 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 13 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 14 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 15 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 16 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 17 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 18 |
+
Provides-Extra: gui
|
| 19 |
+
Requires-Dist: PySide6 (>=6.9,<7.0) ; (python_version >= "3.9" and python_version < "3.14") and (extra == "gui")
|
| 20 |
+
Requires-Dist: numpy (>=1.17)
|
| 21 |
+
Requires-Dist: pyyaml (>=5.1)
|
| 22 |
+
Requires-Dist: tqdm (>=4.27)
|
| 23 |
+
Project-URL: Homepage, https://ggml.ai
|
| 24 |
+
Project-URL: Repository, https://github.com/ggml-org/llama.cpp
|
| 25 |
+
Description-Content-Type: text/markdown
|
| 26 |
+
|
| 27 |
+
## gguf
|
| 28 |
+
|
| 29 |
+
This is a Python package for writing binary files in the [GGUF](https://github.com/ggml-org/ggml/pull/302)
|
| 30 |
+
(GGML Universal File) format.
|
| 31 |
+
|
| 32 |
+
See [convert_hf_to_gguf.py](https://github.com/ggml-org/llama.cpp/blob/master/convert_hf_to_gguf.py)
|
| 33 |
+
as an example for its usage.
|
| 34 |
+
|
| 35 |
+
## Installation
|
| 36 |
+
```sh
|
| 37 |
+
pip install gguf
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
Optionally, you can install gguf with the extra 'gui' to enable the visual GGUF editor.
|
| 41 |
+
```sh
|
| 42 |
+
pip install gguf[gui]
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
## API Examples/Simple Tools
|
| 46 |
+
|
| 47 |
+
[examples/writer.py](https://github.com/ggml-org/llama.cpp/blob/master/gguf-py/examples/writer.py) — Generates `example.gguf` in the current directory to demonstrate generating a GGUF file. Note that this file cannot be used as a model.
|
| 48 |
+
|
| 49 |
+
[examples/reader.py](https://github.com/ggml-org/llama.cpp/blob/master/gguf-py/examples/reader.py) — Extracts and displays key-value pairs and tensor details from a GGUF file in a readable format.
|
| 50 |
+
|
| 51 |
+
[gguf/scripts/gguf_dump.py](https://github.com/ggml-org/llama.cpp/blob/master/gguf-py/gguf/scripts/gguf_dump.py) — Dumps a GGUF file's metadata to the console.
|
| 52 |
+
|
| 53 |
+
[gguf/scripts/gguf_set_metadata.py](https://github.com/ggml-org/llama.cpp/blob/master/gguf-py/gguf/scripts/gguf_set_metadata.py) — Allows changing simple metadata values in a GGUF file by key.
|
| 54 |
+
|
| 55 |
+
[gguf/scripts/gguf_convert_endian.py](https://github.com/ggml-org/llama.cpp/blob/master/gguf-py/gguf/scripts/gguf_convert_endian.py) — Allows converting the endianness of GGUF files.
|
| 56 |
+
|
| 57 |
+
[gguf/scripts/gguf_new_metadata.py](https://github.com/ggml-org/llama.cpp/blob/master/gguf-py/gguf/scripts/gguf_new_metadata.py) — Copies a GGUF file with added/modified/removed metadata values.
|
| 58 |
+
|
| 59 |
+
[gguf/scripts/gguf_editor_gui.py](https://github.com/ggml-org/llama.cpp/blob/master/gguf-py/gguf/scripts/gguf_editor_gui.py) — Allows for viewing, editing, adding, or removing metadata values within a GGUF file as well as viewing its tensors with a Qt interface.
|
| 60 |
+
|
| 61 |
+
## Development
|
| 62 |
+
Maintainers who participate in development of this package are advised to install it in editable mode:
|
| 63 |
+
|
| 64 |
+
```sh
|
| 65 |
+
cd /path/to/llama.cpp/gguf-py
|
| 66 |
+
|
| 67 |
+
pip install --editable .
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
**Note**: This may require to upgrade your Pip installation, with a message saying that editable installation currently requires `setup.py`.
|
| 71 |
+
In this case, upgrade Pip to the latest:
|
| 72 |
+
|
| 73 |
+
```sh
|
| 74 |
+
pip install --upgrade pip
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
## Automatic publishing with CI
|
| 78 |
+
|
| 79 |
+
There's a GitHub workflow to make a release automatically upon creation of tags in a specified format.
|
| 80 |
+
|
| 81 |
+
1. Bump the version in `pyproject.toml`.
|
| 82 |
+
2. Create a tag named `gguf-vx.x.x` where `x.x.x` is the semantic version number.
|
| 83 |
+
|
| 84 |
+
```sh
|
| 85 |
+
git tag -a gguf-v1.0.0 -m "Version 1.0 release"
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
3. Push the tags.
|
| 89 |
+
|
| 90 |
+
```sh
|
| 91 |
+
git push origin --tags
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
## Manual publishing
|
| 95 |
+
If you want to publish the package manually for any reason, you need to have `twine` and `build` installed:
|
| 96 |
+
|
| 97 |
+
```sh
|
| 98 |
+
pip install build twine
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
Then, follow these steps to release a new version:
|
| 102 |
+
|
| 103 |
+
1. Bump the version in `pyproject.toml`.
|
| 104 |
+
2. Build the package:
|
| 105 |
+
|
| 106 |
+
```sh
|
| 107 |
+
python -m build
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
3. Upload the generated distribution archives:
|
| 111 |
+
|
| 112 |
+
```sh
|
| 113 |
+
python -m twine upload dist/*
|
| 114 |
+
```
|
| 115 |
+
|
| 116 |
+
## Run Unit Tests
|
| 117 |
+
|
| 118 |
+
From root of this repository you can run this command to run all the unit tests
|
| 119 |
+
|
| 120 |
+
```bash
|
| 121 |
+
python -m unittest discover ./gguf-py -v
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
## TODO
|
| 125 |
+
- [ ] Include conversion scripts as command line entry points in this package.
|
| 126 |
+
|
lib/python3.13/site-packages/gguf-0.17.1.dist-info/RECORD
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
../../../bin/gguf-convert-endian,sha256=KWQjuTB8W9HMQqqDz-ZYz13lGkLJV1cIUim-UX13AAk,349
|
| 2 |
+
../../../bin/gguf-dump,sha256=wgEgvSuu87waf4U74j3BCznoPNd4dvCopDBiUu1J89M,339
|
| 3 |
+
../../../bin/gguf-editor-gui,sha256=UTmG8PiG7PnRfTQq2J6C_St3s34xcVC69J9fSpadRQQ,345
|
| 4 |
+
../../../bin/gguf-new-metadata,sha256=UiWeY0bXQillsPq7hhB7016oxU39tpYDBJywzeXeBD0,347
|
| 5 |
+
../../../bin/gguf-set-metadata,sha256=-OEPULN-7WJyXv1-9NgsBqz6Rq0KvW7RnNbCSHTpTQg,347
|
| 6 |
+
gguf-0.17.1.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
|
| 7 |
+
gguf-0.17.1.dist-info/LICENSE,sha256=73jH5mWeNMeYGU8NNE6AfHIt5wy8oTWe9UdyZh4Ryjg,1072
|
| 8 |
+
gguf-0.17.1.dist-info/METADATA,sha256=pa8_ce5ufoWKHq1zzh97He53EZjFtRFONFDWtl7mkAI,4348
|
| 9 |
+
gguf-0.17.1.dist-info/RECORD,,
|
| 10 |
+
gguf-0.17.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 11 |
+
gguf-0.17.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
| 12 |
+
gguf-0.17.1.dist-info/entry_points.txt,sha256=TozYSFmMxpOaKE3brn9nWp-QkgM_sZ3a_uFDOXUCYig,273
|
| 13 |
+
gguf/__init__.py,sha256=PM_AEEzX6ojGAodDt78_LIm19HRCXeA6IXpgcjINfC8,219
|
| 14 |
+
gguf/constants.py,sha256=-92nfNa8XjXbHsMV9Hf0iGHwcmoXzH2JJ73rAv73NPE,89508
|
| 15 |
+
gguf/gguf.py,sha256=8MDu7a0JEXhLUv_tjhYqDrWubVNc41cFvBYZbkZZenI,478
|
| 16 |
+
gguf/gguf_reader.py,sha256=6uI4vaLeRC2MJV-uUjgsRoUZ-Rdszi8mE_bEPwnk6QE,14828
|
| 17 |
+
gguf/gguf_writer.py,sha256=UJXqFa3T2EOLfPZ6ej3vuyV7OBfKXXaszvHKeHIWmSI,43935
|
| 18 |
+
gguf/lazy.py,sha256=Axy_plbHoC34nMeK_ORbbxEyEFm-Fz8BxFIeqeipSYA,9214
|
| 19 |
+
gguf/metadata.py,sha256=v0kxoYfCk_yXZSnzlSO9AhQ6z_HOUpzs0c6ZV4BRSbA,33301
|
| 20 |
+
gguf/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 21 |
+
gguf/quants.py,sha256=BLtCCqhHBtabaYaAp7EckyYOR5idmoKWhu_Hy3glotk,60771
|
| 22 |
+
gguf/scripts/gguf_convert_endian.py,sha256=yzl_MAQ3jyn_9MmOWV1CksHqlohd7DmrG7REwas0rlo,7365
|
| 23 |
+
gguf/scripts/gguf_dump.py,sha256=zDgZSSQLyO3S4YJsSUzdebDfwmdqQPN7_VtFZ5BkGAk,21785
|
| 24 |
+
gguf/scripts/gguf_editor_gui.py,sha256=frdErSIB90N-sAvqUpbLfdDsaUGMMOWQ-0iumwzzm_M,64398
|
| 25 |
+
gguf/scripts/gguf_hash.py,sha256=nyd8kzjRKnOFek5UaD19pNXeAVMXUfFEASZ8konkGX8,3725
|
| 26 |
+
gguf/scripts/gguf_new_metadata.py,sha256=U_v5FgbH292x7bsi2dG4rbQcWc14nmAtZEWdLnbkIZs,9767
|
| 27 |
+
gguf/scripts/gguf_set_metadata.py,sha256=yGEqcQlCimd-pVl23V7u1giJNN3vfvASRqW8em5YWzs,4145
|
| 28 |
+
gguf/tensor_mapping.py,sha256=6pUDYgly0-yErLV8HSZFSnqyFKAp7SieditMEHMsYGI,55999
|
| 29 |
+
gguf/utility.py,sha256=80rZ3MdGZ6bX0_yFvLoPTTOlxga8THcihF0q38y5h6M,10808
|
| 30 |
+
gguf/vocab.py,sha256=Gr43idKqc4yBHQh20HfeW9oegYWLpM-L0ZKCVxPj4Lc,20788
|
lib/python3.13/site-packages/gguf-0.17.1.dist-info/REQUESTED
ADDED
|
File without changes
|
lib/python3.13/site-packages/gguf-0.17.1.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: poetry-core 2.1.3
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
lib/python3.13/site-packages/gguf-0.17.1.dist-info/entry_points.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[console_scripts]
|
| 2 |
+
gguf-convert-endian=gguf.scripts.gguf_convert_endian:main
|
| 3 |
+
gguf-dump=gguf.scripts.gguf_dump:main
|
| 4 |
+
gguf-editor-gui=gguf.scripts.gguf_editor_gui:main
|
| 5 |
+
gguf-new-metadata=gguf.scripts.gguf_new_metadata:main
|
| 6 |
+
gguf-set-metadata=gguf.scripts.gguf_set_metadata:main
|
| 7 |
+
|
lib/python3.13/site-packages/huggingface_hub/lfs.py
ADDED
|
@@ -0,0 +1,466 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding=utf-8
|
| 2 |
+
# Copyright 2019-present, the HuggingFace Inc. team.
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
"""Git LFS related type definitions and utilities"""
|
| 16 |
+
|
| 17 |
+
import inspect
|
| 18 |
+
import io
|
| 19 |
+
import re
|
| 20 |
+
import warnings
|
| 21 |
+
from dataclasses import dataclass
|
| 22 |
+
from math import ceil
|
| 23 |
+
from os.path import getsize
|
| 24 |
+
from pathlib import Path
|
| 25 |
+
from typing import TYPE_CHECKING, BinaryIO, Dict, Iterable, List, Optional, Tuple, TypedDict
|
| 26 |
+
from urllib.parse import unquote
|
| 27 |
+
|
| 28 |
+
from huggingface_hub import constants
|
| 29 |
+
|
| 30 |
+
from .utils import (
|
| 31 |
+
build_hf_headers,
|
| 32 |
+
fix_hf_endpoint_in_url,
|
| 33 |
+
get_session,
|
| 34 |
+
hf_raise_for_status,
|
| 35 |
+
http_backoff,
|
| 36 |
+
logging,
|
| 37 |
+
tqdm,
|
| 38 |
+
validate_hf_hub_args,
|
| 39 |
+
)
|
| 40 |
+
from .utils._lfs import SliceFileObj
|
| 41 |
+
from .utils.sha import sha256, sha_fileobj
|
| 42 |
+
from .utils.tqdm import is_tqdm_disabled
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
if TYPE_CHECKING:
|
| 46 |
+
from ._commit_api import CommitOperationAdd
|
| 47 |
+
|
| 48 |
+
logger = logging.get_logger(__name__)
|
| 49 |
+
|
| 50 |
+
OID_REGEX = re.compile(r"^[0-9a-f]{40}$")
|
| 51 |
+
|
| 52 |
+
LFS_MULTIPART_UPLOAD_COMMAND = "lfs-multipart-upload"
|
| 53 |
+
|
| 54 |
+
LFS_HEADERS = {
|
| 55 |
+
"Accept": "application/vnd.git-lfs+json",
|
| 56 |
+
"Content-Type": "application/vnd.git-lfs+json",
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
@dataclass
|
| 61 |
+
class UploadInfo:
|
| 62 |
+
"""
|
| 63 |
+
Dataclass holding required information to determine whether a blob
|
| 64 |
+
should be uploaded to the hub using the LFS protocol or the regular protocol
|
| 65 |
+
|
| 66 |
+
Args:
|
| 67 |
+
sha256 (`bytes`):
|
| 68 |
+
SHA256 hash of the blob
|
| 69 |
+
size (`int`):
|
| 70 |
+
Size in bytes of the blob
|
| 71 |
+
sample (`bytes`):
|
| 72 |
+
First 512 bytes of the blob
|
| 73 |
+
"""
|
| 74 |
+
|
| 75 |
+
sha256: bytes
|
| 76 |
+
size: int
|
| 77 |
+
sample: bytes
|
| 78 |
+
|
| 79 |
+
@classmethod
|
| 80 |
+
def from_path(cls, path: str):
|
| 81 |
+
size = getsize(path)
|
| 82 |
+
with io.open(path, "rb") as file:
|
| 83 |
+
sample = file.peek(512)[:512]
|
| 84 |
+
sha = sha_fileobj(file)
|
| 85 |
+
return cls(size=size, sha256=sha, sample=sample)
|
| 86 |
+
|
| 87 |
+
@classmethod
|
| 88 |
+
def from_bytes(cls, data: bytes):
|
| 89 |
+
sha = sha256(data).digest()
|
| 90 |
+
return cls(size=len(data), sample=data[:512], sha256=sha)
|
| 91 |
+
|
| 92 |
+
@classmethod
|
| 93 |
+
def from_fileobj(cls, fileobj: BinaryIO):
|
| 94 |
+
sample = fileobj.read(512)
|
| 95 |
+
fileobj.seek(0, io.SEEK_SET)
|
| 96 |
+
sha = sha_fileobj(fileobj)
|
| 97 |
+
size = fileobj.tell()
|
| 98 |
+
fileobj.seek(0, io.SEEK_SET)
|
| 99 |
+
return cls(size=size, sha256=sha, sample=sample)
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
@validate_hf_hub_args
|
| 103 |
+
def post_lfs_batch_info(
|
| 104 |
+
upload_infos: Iterable[UploadInfo],
|
| 105 |
+
token: Optional[str],
|
| 106 |
+
repo_type: str,
|
| 107 |
+
repo_id: str,
|
| 108 |
+
revision: Optional[str] = None,
|
| 109 |
+
endpoint: Optional[str] = None,
|
| 110 |
+
headers: Optional[Dict[str, str]] = None,
|
| 111 |
+
transfers: Optional[List[str]] = None,
|
| 112 |
+
) -> Tuple[List[dict], List[dict], Optional[str]]:
|
| 113 |
+
"""
|
| 114 |
+
Requests the LFS batch endpoint to retrieve upload instructions
|
| 115 |
+
|
| 116 |
+
Learn more: https://github.com/git-lfs/git-lfs/blob/main/docs/api/batch.md
|
| 117 |
+
|
| 118 |
+
Args:
|
| 119 |
+
upload_infos (`Iterable` of `UploadInfo`):
|
| 120 |
+
`UploadInfo` for the files that are being uploaded, typically obtained
|
| 121 |
+
from `CommitOperationAdd.upload_info`
|
| 122 |
+
repo_type (`str`):
|
| 123 |
+
Type of the repo to upload to: `"model"`, `"dataset"` or `"space"`.
|
| 124 |
+
repo_id (`str`):
|
| 125 |
+
A namespace (user or an organization) and a repo name separated
|
| 126 |
+
by a `/`.
|
| 127 |
+
revision (`str`, *optional*):
|
| 128 |
+
The git revision to upload to.
|
| 129 |
+
headers (`dict`, *optional*):
|
| 130 |
+
Additional headers to include in the request
|
| 131 |
+
transfers (`list`, *optional*):
|
| 132 |
+
List of transfer methods to use. Defaults to ["basic", "multipart"].
|
| 133 |
+
|
| 134 |
+
Returns:
|
| 135 |
+
`LfsBatchInfo`: 3-tuple:
|
| 136 |
+
- First element is the list of upload instructions from the server
|
| 137 |
+
- Second element is a list of errors, if any
|
| 138 |
+
- Third element is the chosen transfer adapter if provided by the server (e.g. "basic", "multipart", "xet")
|
| 139 |
+
|
| 140 |
+
Raises:
|
| 141 |
+
[`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError)
|
| 142 |
+
If an argument is invalid or the server response is malformed.
|
| 143 |
+
[`HTTPError`](https://requests.readthedocs.io/en/latest/api/#requests.HTTPError)
|
| 144 |
+
If the server returned an error.
|
| 145 |
+
"""
|
| 146 |
+
endpoint = endpoint if endpoint is not None else constants.ENDPOINT
|
| 147 |
+
url_prefix = ""
|
| 148 |
+
if repo_type in constants.REPO_TYPES_URL_PREFIXES:
|
| 149 |
+
url_prefix = constants.REPO_TYPES_URL_PREFIXES[repo_type]
|
| 150 |
+
batch_url = f"{endpoint}/{url_prefix}{repo_id}.git/info/lfs/objects/batch"
|
| 151 |
+
payload: Dict = {
|
| 152 |
+
"operation": "upload",
|
| 153 |
+
"transfers": transfers if transfers is not None else ["basic", "multipart"],
|
| 154 |
+
"objects": [
|
| 155 |
+
{
|
| 156 |
+
"oid": upload.sha256.hex(),
|
| 157 |
+
"size": upload.size,
|
| 158 |
+
}
|
| 159 |
+
for upload in upload_infos
|
| 160 |
+
],
|
| 161 |
+
"hash_algo": "sha256",
|
| 162 |
+
}
|
| 163 |
+
if revision is not None:
|
| 164 |
+
payload["ref"] = {"name": unquote(revision)} # revision has been previously 'quoted'
|
| 165 |
+
|
| 166 |
+
headers = {
|
| 167 |
+
**LFS_HEADERS,
|
| 168 |
+
**build_hf_headers(token=token),
|
| 169 |
+
**(headers or {}),
|
| 170 |
+
}
|
| 171 |
+
resp = get_session().post(batch_url, headers=headers, json=payload)
|
| 172 |
+
hf_raise_for_status(resp)
|
| 173 |
+
batch_info = resp.json()
|
| 174 |
+
|
| 175 |
+
objects = batch_info.get("objects", None)
|
| 176 |
+
if not isinstance(objects, list):
|
| 177 |
+
raise ValueError("Malformed response from server")
|
| 178 |
+
|
| 179 |
+
chosen_transfer = batch_info.get("transfer")
|
| 180 |
+
chosen_transfer = chosen_transfer if isinstance(chosen_transfer, str) else None
|
| 181 |
+
|
| 182 |
+
return (
|
| 183 |
+
[_validate_batch_actions(obj) for obj in objects if "error" not in obj],
|
| 184 |
+
[_validate_batch_error(obj) for obj in objects if "error" in obj],
|
| 185 |
+
chosen_transfer,
|
| 186 |
+
)
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
class PayloadPartT(TypedDict):
|
| 190 |
+
partNumber: int
|
| 191 |
+
etag: str
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
class CompletionPayloadT(TypedDict):
|
| 195 |
+
"""Payload that will be sent to the Hub when uploading multi-part."""
|
| 196 |
+
|
| 197 |
+
oid: str
|
| 198 |
+
parts: List[PayloadPartT]
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
def lfs_upload(
|
| 202 |
+
operation: "CommitOperationAdd",
|
| 203 |
+
lfs_batch_action: Dict,
|
| 204 |
+
token: Optional[str] = None,
|
| 205 |
+
headers: Optional[Dict[str, str]] = None,
|
| 206 |
+
endpoint: Optional[str] = None,
|
| 207 |
+
) -> None:
|
| 208 |
+
"""
|
| 209 |
+
Handles uploading a given object to the Hub with the LFS protocol.
|
| 210 |
+
|
| 211 |
+
Can be a No-op if the content of the file is already present on the hub large file storage.
|
| 212 |
+
|
| 213 |
+
Args:
|
| 214 |
+
operation (`CommitOperationAdd`):
|
| 215 |
+
The add operation triggering this upload.
|
| 216 |
+
lfs_batch_action (`dict`):
|
| 217 |
+
Upload instructions from the LFS batch endpoint for this object. See [`~utils.lfs.post_lfs_batch_info`] for
|
| 218 |
+
more details.
|
| 219 |
+
headers (`dict`, *optional*):
|
| 220 |
+
Headers to include in the request, including authentication and user agent headers.
|
| 221 |
+
|
| 222 |
+
Raises:
|
| 223 |
+
[`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError)
|
| 224 |
+
If `lfs_batch_action` is improperly formatted
|
| 225 |
+
[`HTTPError`](https://requests.readthedocs.io/en/latest/api/#requests.HTTPError)
|
| 226 |
+
If the upload resulted in an error
|
| 227 |
+
"""
|
| 228 |
+
# 0. If LFS file is already present, skip upload
|
| 229 |
+
_validate_batch_actions(lfs_batch_action)
|
| 230 |
+
actions = lfs_batch_action.get("actions")
|
| 231 |
+
if actions is None:
|
| 232 |
+
# The file was already uploaded
|
| 233 |
+
logger.debug(f"Content of file {operation.path_in_repo} is already present upstream - skipping upload")
|
| 234 |
+
return
|
| 235 |
+
|
| 236 |
+
# 1. Validate server response (check required keys in dict)
|
| 237 |
+
upload_action = lfs_batch_action["actions"]["upload"]
|
| 238 |
+
_validate_lfs_action(upload_action)
|
| 239 |
+
verify_action = lfs_batch_action["actions"].get("verify")
|
| 240 |
+
if verify_action is not None:
|
| 241 |
+
_validate_lfs_action(verify_action)
|
| 242 |
+
|
| 243 |
+
# 2. Upload file (either single part or multi-part)
|
| 244 |
+
header = upload_action.get("header", {})
|
| 245 |
+
chunk_size = header.get("chunk_size")
|
| 246 |
+
upload_url = fix_hf_endpoint_in_url(upload_action["href"], endpoint=endpoint)
|
| 247 |
+
if chunk_size is not None:
|
| 248 |
+
try:
|
| 249 |
+
chunk_size = int(chunk_size)
|
| 250 |
+
except (ValueError, TypeError):
|
| 251 |
+
raise ValueError(
|
| 252 |
+
f"Malformed response from LFS batch endpoint: `chunk_size` should be an integer. Got '{chunk_size}'."
|
| 253 |
+
)
|
| 254 |
+
_upload_multi_part(operation=operation, header=header, chunk_size=chunk_size, upload_url=upload_url)
|
| 255 |
+
else:
|
| 256 |
+
_upload_single_part(operation=operation, upload_url=upload_url)
|
| 257 |
+
|
| 258 |
+
# 3. Verify upload went well
|
| 259 |
+
if verify_action is not None:
|
| 260 |
+
_validate_lfs_action(verify_action)
|
| 261 |
+
verify_url = fix_hf_endpoint_in_url(verify_action["href"], endpoint)
|
| 262 |
+
verify_resp = get_session().post(
|
| 263 |
+
verify_url,
|
| 264 |
+
headers=build_hf_headers(token=token, headers=headers),
|
| 265 |
+
json={"oid": operation.upload_info.sha256.hex(), "size": operation.upload_info.size},
|
| 266 |
+
)
|
| 267 |
+
hf_raise_for_status(verify_resp)
|
| 268 |
+
logger.debug(f"{operation.path_in_repo}: Upload successful")
|
| 269 |
+
|
| 270 |
+
|
| 271 |
+
def _validate_lfs_action(lfs_action: dict):
|
| 272 |
+
"""validates response from the LFS batch endpoint"""
|
| 273 |
+
if not (
|
| 274 |
+
isinstance(lfs_action.get("href"), str)
|
| 275 |
+
and (lfs_action.get("header") is None or isinstance(lfs_action.get("header"), dict))
|
| 276 |
+
):
|
| 277 |
+
raise ValueError("lfs_action is improperly formatted")
|
| 278 |
+
return lfs_action
|
| 279 |
+
|
| 280 |
+
|
| 281 |
+
def _validate_batch_actions(lfs_batch_actions: dict):
|
| 282 |
+
"""validates response from the LFS batch endpoint"""
|
| 283 |
+
if not (isinstance(lfs_batch_actions.get("oid"), str) and isinstance(lfs_batch_actions.get("size"), int)):
|
| 284 |
+
raise ValueError("lfs_batch_actions is improperly formatted")
|
| 285 |
+
|
| 286 |
+
upload_action = lfs_batch_actions.get("actions", {}).get("upload")
|
| 287 |
+
verify_action = lfs_batch_actions.get("actions", {}).get("verify")
|
| 288 |
+
if upload_action is not None:
|
| 289 |
+
_validate_lfs_action(upload_action)
|
| 290 |
+
if verify_action is not None:
|
| 291 |
+
_validate_lfs_action(verify_action)
|
| 292 |
+
return lfs_batch_actions
|
| 293 |
+
|
| 294 |
+
|
| 295 |
+
def _validate_batch_error(lfs_batch_error: dict):
|
| 296 |
+
"""validates response from the LFS batch endpoint"""
|
| 297 |
+
if not (isinstance(lfs_batch_error.get("oid"), str) and isinstance(lfs_batch_error.get("size"), int)):
|
| 298 |
+
raise ValueError("lfs_batch_error is improperly formatted")
|
| 299 |
+
error_info = lfs_batch_error.get("error")
|
| 300 |
+
if not (
|
| 301 |
+
isinstance(error_info, dict)
|
| 302 |
+
and isinstance(error_info.get("message"), str)
|
| 303 |
+
and isinstance(error_info.get("code"), int)
|
| 304 |
+
):
|
| 305 |
+
raise ValueError("lfs_batch_error is improperly formatted")
|
| 306 |
+
return lfs_batch_error
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
def _upload_single_part(operation: "CommitOperationAdd", upload_url: str) -> None:
|
| 310 |
+
"""
|
| 311 |
+
Uploads `fileobj` as a single PUT HTTP request (basic LFS transfer protocol)
|
| 312 |
+
|
| 313 |
+
Args:
|
| 314 |
+
upload_url (`str`):
|
| 315 |
+
The URL to PUT the file to.
|
| 316 |
+
fileobj:
|
| 317 |
+
The file-like object holding the data to upload.
|
| 318 |
+
|
| 319 |
+
Returns: `requests.Response`
|
| 320 |
+
|
| 321 |
+
Raises:
|
| 322 |
+
[`HTTPError`](https://requests.readthedocs.io/en/latest/api/#requests.HTTPError)
|
| 323 |
+
If the upload resulted in an error.
|
| 324 |
+
"""
|
| 325 |
+
with operation.as_file(with_tqdm=True) as fileobj:
|
| 326 |
+
# S3 might raise a transient 500 error -> let's retry if that happens
|
| 327 |
+
response = http_backoff("PUT", upload_url, data=fileobj)
|
| 328 |
+
hf_raise_for_status(response)
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
def _upload_multi_part(operation: "CommitOperationAdd", header: Dict, chunk_size: int, upload_url: str) -> None:
|
| 332 |
+
"""
|
| 333 |
+
Uploads file using HF multipart LFS transfer protocol.
|
| 334 |
+
"""
|
| 335 |
+
# 1. Get upload URLs for each part
|
| 336 |
+
sorted_parts_urls = _get_sorted_parts_urls(header=header, upload_info=operation.upload_info, chunk_size=chunk_size)
|
| 337 |
+
|
| 338 |
+
# 2. Upload parts (either with hf_transfer or in pure Python)
|
| 339 |
+
use_hf_transfer = constants.HF_HUB_ENABLE_HF_TRANSFER
|
| 340 |
+
if (
|
| 341 |
+
constants.HF_HUB_ENABLE_HF_TRANSFER
|
| 342 |
+
and not isinstance(operation.path_or_fileobj, str)
|
| 343 |
+
and not isinstance(operation.path_or_fileobj, Path)
|
| 344 |
+
):
|
| 345 |
+
warnings.warn(
|
| 346 |
+
"hf_transfer is enabled but does not support uploading from bytes or BinaryIO, falling back to regular"
|
| 347 |
+
" upload"
|
| 348 |
+
)
|
| 349 |
+
use_hf_transfer = False
|
| 350 |
+
|
| 351 |
+
response_headers = (
|
| 352 |
+
_upload_parts_hf_transfer(operation=operation, sorted_parts_urls=sorted_parts_urls, chunk_size=chunk_size)
|
| 353 |
+
if use_hf_transfer
|
| 354 |
+
else _upload_parts_iteratively(operation=operation, sorted_parts_urls=sorted_parts_urls, chunk_size=chunk_size)
|
| 355 |
+
)
|
| 356 |
+
|
| 357 |
+
# 3. Send completion request
|
| 358 |
+
completion_res = get_session().post(
|
| 359 |
+
upload_url,
|
| 360 |
+
json=_get_completion_payload(response_headers, operation.upload_info.sha256.hex()),
|
| 361 |
+
headers=LFS_HEADERS,
|
| 362 |
+
)
|
| 363 |
+
hf_raise_for_status(completion_res)
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
def _get_sorted_parts_urls(header: Dict, upload_info: UploadInfo, chunk_size: int) -> List[str]:
|
| 367 |
+
sorted_part_upload_urls = [
|
| 368 |
+
upload_url
|
| 369 |
+
for _, upload_url in sorted(
|
| 370 |
+
[
|
| 371 |
+
(int(part_num, 10), upload_url)
|
| 372 |
+
for part_num, upload_url in header.items()
|
| 373 |
+
if part_num.isdigit() and len(part_num) > 0
|
| 374 |
+
],
|
| 375 |
+
key=lambda t: t[0],
|
| 376 |
+
)
|
| 377 |
+
]
|
| 378 |
+
num_parts = len(sorted_part_upload_urls)
|
| 379 |
+
if num_parts != ceil(upload_info.size / chunk_size):
|
| 380 |
+
raise ValueError("Invalid server response to upload large LFS file")
|
| 381 |
+
return sorted_part_upload_urls
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
def _get_completion_payload(response_headers: List[Dict], oid: str) -> CompletionPayloadT:
|
| 385 |
+
parts: List[PayloadPartT] = []
|
| 386 |
+
for part_number, header in enumerate(response_headers):
|
| 387 |
+
etag = header.get("etag")
|
| 388 |
+
if etag is None or etag == "":
|
| 389 |
+
raise ValueError(f"Invalid etag (`{etag}`) returned for part {part_number + 1}")
|
| 390 |
+
parts.append(
|
| 391 |
+
{
|
| 392 |
+
"partNumber": part_number + 1,
|
| 393 |
+
"etag": etag,
|
| 394 |
+
}
|
| 395 |
+
)
|
| 396 |
+
return {"oid": oid, "parts": parts}
|
| 397 |
+
|
| 398 |
+
|
| 399 |
+
def _upload_parts_iteratively(
|
| 400 |
+
operation: "CommitOperationAdd", sorted_parts_urls: List[str], chunk_size: int
|
| 401 |
+
) -> List[Dict]:
|
| 402 |
+
headers = []
|
| 403 |
+
with operation.as_file(with_tqdm=True) as fileobj:
|
| 404 |
+
for part_idx, part_upload_url in enumerate(sorted_parts_urls):
|
| 405 |
+
with SliceFileObj(
|
| 406 |
+
fileobj,
|
| 407 |
+
seek_from=chunk_size * part_idx,
|
| 408 |
+
read_limit=chunk_size,
|
| 409 |
+
) as fileobj_slice:
|
| 410 |
+
# S3 might raise a transient 500 error -> let's retry if that happens
|
| 411 |
+
part_upload_res = http_backoff("PUT", part_upload_url, data=fileobj_slice)
|
| 412 |
+
hf_raise_for_status(part_upload_res)
|
| 413 |
+
headers.append(part_upload_res.headers)
|
| 414 |
+
return headers # type: ignore
|
| 415 |
+
|
| 416 |
+
|
| 417 |
+
def _upload_parts_hf_transfer(
|
| 418 |
+
operation: "CommitOperationAdd", sorted_parts_urls: List[str], chunk_size: int
|
| 419 |
+
) -> List[Dict]:
|
| 420 |
+
# Upload file using an external Rust-based package. Upload is faster but support less features (no progress bars).
|
| 421 |
+
try:
|
| 422 |
+
from hf_transfer import multipart_upload
|
| 423 |
+
except ImportError:
|
| 424 |
+
raise ValueError(
|
| 425 |
+
"Fast uploading using 'hf_transfer' is enabled (HF_HUB_ENABLE_HF_TRANSFER=1) but 'hf_transfer' package is"
|
| 426 |
+
" not available in your environment. Try `pip install hf_transfer`."
|
| 427 |
+
)
|
| 428 |
+
|
| 429 |
+
supports_callback = "callback" in inspect.signature(multipart_upload).parameters
|
| 430 |
+
if not supports_callback:
|
| 431 |
+
warnings.warn(
|
| 432 |
+
"You are using an outdated version of `hf_transfer`. Consider upgrading to latest version to enable progress bars using `pip install -U hf_transfer`."
|
| 433 |
+
)
|
| 434 |
+
|
| 435 |
+
total = operation.upload_info.size
|
| 436 |
+
desc = operation.path_in_repo
|
| 437 |
+
if len(desc) > 40:
|
| 438 |
+
desc = f"(…){desc[-40:]}"
|
| 439 |
+
|
| 440 |
+
with tqdm(
|
| 441 |
+
unit="B",
|
| 442 |
+
unit_scale=True,
|
| 443 |
+
total=total,
|
| 444 |
+
initial=0,
|
| 445 |
+
desc=desc,
|
| 446 |
+
disable=is_tqdm_disabled(logger.getEffectiveLevel()),
|
| 447 |
+
name="huggingface_hub.lfs_upload",
|
| 448 |
+
) as progress:
|
| 449 |
+
try:
|
| 450 |
+
output = multipart_upload(
|
| 451 |
+
file_path=operation.path_or_fileobj,
|
| 452 |
+
parts_urls=sorted_parts_urls,
|
| 453 |
+
chunk_size=chunk_size,
|
| 454 |
+
max_files=128,
|
| 455 |
+
parallel_failures=127, # could be removed
|
| 456 |
+
max_retries=5,
|
| 457 |
+
**({"callback": progress.update} if supports_callback else {}),
|
| 458 |
+
)
|
| 459 |
+
except Exception as e:
|
| 460 |
+
raise RuntimeError(
|
| 461 |
+
"An error occurred while uploading using `hf_transfer`. Consider disabling HF_HUB_ENABLE_HF_TRANSFER for"
|
| 462 |
+
" better error handling."
|
| 463 |
+
) from e
|
| 464 |
+
if not supports_callback:
|
| 465 |
+
progress.update(total)
|
| 466 |
+
return output
|
lib/python3.13/site-packages/huggingface_hub/repocard.py
ADDED
|
@@ -0,0 +1,827 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import re
|
| 3 |
+
from pathlib import Path
|
| 4 |
+
from typing import Any, Dict, Literal, Optional, Type, Union
|
| 5 |
+
|
| 6 |
+
import requests
|
| 7 |
+
import yaml
|
| 8 |
+
|
| 9 |
+
from huggingface_hub.file_download import hf_hub_download
|
| 10 |
+
from huggingface_hub.hf_api import upload_file
|
| 11 |
+
from huggingface_hub.repocard_data import (
|
| 12 |
+
CardData,
|
| 13 |
+
DatasetCardData,
|
| 14 |
+
EvalResult,
|
| 15 |
+
ModelCardData,
|
| 16 |
+
SpaceCardData,
|
| 17 |
+
eval_results_to_model_index,
|
| 18 |
+
model_index_to_eval_results,
|
| 19 |
+
)
|
| 20 |
+
from huggingface_hub.utils import get_session, is_jinja_available, yaml_dump
|
| 21 |
+
|
| 22 |
+
from . import constants
|
| 23 |
+
from .errors import EntryNotFoundError
|
| 24 |
+
from .utils import SoftTemporaryDirectory, logging, validate_hf_hub_args
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
logger = logging.get_logger(__name__)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
TEMPLATE_MODELCARD_PATH = Path(__file__).parent / "templates" / "modelcard_template.md"
|
| 31 |
+
TEMPLATE_DATASETCARD_PATH = Path(__file__).parent / "templates" / "datasetcard_template.md"
|
| 32 |
+
|
| 33 |
+
# exact same regex as in the Hub server. Please keep in sync.
|
| 34 |
+
# See https://github.com/huggingface/moon-landing/blob/main/server/lib/ViewMarkdown.ts#L18
|
| 35 |
+
REGEX_YAML_BLOCK = re.compile(r"^(\s*---[\r\n]+)([\S\s]*?)([\r\n]+---(\r\n|\n|$))")
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
class RepoCard:
|
| 39 |
+
card_data_class = CardData
|
| 40 |
+
default_template_path = TEMPLATE_MODELCARD_PATH
|
| 41 |
+
repo_type = "model"
|
| 42 |
+
|
| 43 |
+
def __init__(self, content: str, ignore_metadata_errors: bool = False):
|
| 44 |
+
"""Initialize a RepoCard from string content. The content should be a
|
| 45 |
+
Markdown file with a YAML block at the beginning and a Markdown body.
|
| 46 |
+
|
| 47 |
+
Args:
|
| 48 |
+
content (`str`): The content of the Markdown file.
|
| 49 |
+
|
| 50 |
+
Example:
|
| 51 |
+
```python
|
| 52 |
+
>>> from huggingface_hub.repocard import RepoCard
|
| 53 |
+
>>> text = '''
|
| 54 |
+
... ---
|
| 55 |
+
... language: en
|
| 56 |
+
... license: mit
|
| 57 |
+
... ---
|
| 58 |
+
...
|
| 59 |
+
... # My repo
|
| 60 |
+
... '''
|
| 61 |
+
>>> card = RepoCard(text)
|
| 62 |
+
>>> card.data.to_dict()
|
| 63 |
+
{'language': 'en', 'license': 'mit'}
|
| 64 |
+
>>> card.text
|
| 65 |
+
'\\n# My repo\\n'
|
| 66 |
+
|
| 67 |
+
```
|
| 68 |
+
> [!TIP]
|
| 69 |
+
> Raises the following error:
|
| 70 |
+
>
|
| 71 |
+
> - [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError)
|
| 72 |
+
> when the content of the repo card metadata is not a dictionary.
|
| 73 |
+
"""
|
| 74 |
+
|
| 75 |
+
# Set the content of the RepoCard, as well as underlying .data and .text attributes.
|
| 76 |
+
# See the `content` property setter for more details.
|
| 77 |
+
self.ignore_metadata_errors = ignore_metadata_errors
|
| 78 |
+
self.content = content
|
| 79 |
+
|
| 80 |
+
@property
|
| 81 |
+
def content(self):
|
| 82 |
+
"""The content of the RepoCard, including the YAML block and the Markdown body."""
|
| 83 |
+
line_break = _detect_line_ending(self._content) or "\n"
|
| 84 |
+
return f"---{line_break}{self.data.to_yaml(line_break=line_break, original_order=self._original_order)}{line_break}---{line_break}{self.text}"
|
| 85 |
+
|
| 86 |
+
@content.setter
|
| 87 |
+
def content(self, content: str):
|
| 88 |
+
"""Set the content of the RepoCard."""
|
| 89 |
+
self._content = content
|
| 90 |
+
|
| 91 |
+
match = REGEX_YAML_BLOCK.search(content)
|
| 92 |
+
if match:
|
| 93 |
+
# Metadata found in the YAML block
|
| 94 |
+
yaml_block = match.group(2)
|
| 95 |
+
self.text = content[match.end() :]
|
| 96 |
+
data_dict = yaml.safe_load(yaml_block)
|
| 97 |
+
|
| 98 |
+
if data_dict is None:
|
| 99 |
+
data_dict = {}
|
| 100 |
+
|
| 101 |
+
# The YAML block's data should be a dictionary
|
| 102 |
+
if not isinstance(data_dict, dict):
|
| 103 |
+
raise ValueError("repo card metadata block should be a dict")
|
| 104 |
+
else:
|
| 105 |
+
# Model card without metadata... create empty metadata
|
| 106 |
+
logger.warning("Repo card metadata block was not found. Setting CardData to empty.")
|
| 107 |
+
data_dict = {}
|
| 108 |
+
self.text = content
|
| 109 |
+
|
| 110 |
+
self.data = self.card_data_class(**data_dict, ignore_metadata_errors=self.ignore_metadata_errors)
|
| 111 |
+
self._original_order = list(data_dict.keys())
|
| 112 |
+
|
| 113 |
+
def __str__(self):
|
| 114 |
+
return self.content
|
| 115 |
+
|
| 116 |
+
def save(self, filepath: Union[Path, str]):
|
| 117 |
+
r"""Save a RepoCard to a file.
|
| 118 |
+
|
| 119 |
+
Args:
|
| 120 |
+
filepath (`Union[Path, str]`): Filepath to the markdown file to save.
|
| 121 |
+
|
| 122 |
+
Example:
|
| 123 |
+
```python
|
| 124 |
+
>>> from huggingface_hub.repocard import RepoCard
|
| 125 |
+
>>> card = RepoCard("---\nlanguage: en\n---\n# This is a test repo card")
|
| 126 |
+
>>> card.save("/tmp/test.md")
|
| 127 |
+
|
| 128 |
+
```
|
| 129 |
+
"""
|
| 130 |
+
filepath = Path(filepath)
|
| 131 |
+
filepath.parent.mkdir(parents=True, exist_ok=True)
|
| 132 |
+
# Preserve newlines as in the existing file.
|
| 133 |
+
with open(filepath, mode="w", newline="", encoding="utf-8") as f:
|
| 134 |
+
f.write(str(self))
|
| 135 |
+
|
| 136 |
+
@classmethod
|
| 137 |
+
def load(
|
| 138 |
+
cls,
|
| 139 |
+
repo_id_or_path: Union[str, Path],
|
| 140 |
+
repo_type: Optional[str] = None,
|
| 141 |
+
token: Optional[str] = None,
|
| 142 |
+
ignore_metadata_errors: bool = False,
|
| 143 |
+
):
|
| 144 |
+
"""Initialize a RepoCard from a Hugging Face Hub repo's README.md or a local filepath.
|
| 145 |
+
|
| 146 |
+
Args:
|
| 147 |
+
repo_id_or_path (`Union[str, Path]`):
|
| 148 |
+
The repo ID associated with a Hugging Face Hub repo or a local filepath.
|
| 149 |
+
repo_type (`str`, *optional*):
|
| 150 |
+
The type of Hugging Face repo to push to. Defaults to None, which will use use "model". Other options
|
| 151 |
+
are "dataset" and "space". Not used when loading from a local filepath. If this is called from a child
|
| 152 |
+
class, the default value will be the child class's `repo_type`.
|
| 153 |
+
token (`str`, *optional*):
|
| 154 |
+
Authentication token, obtained with `huggingface_hub.HfApi.login` method. Will default to the stored token.
|
| 155 |
+
ignore_metadata_errors (`str`):
|
| 156 |
+
If True, errors while parsing the metadata section will be ignored. Some information might be lost during
|
| 157 |
+
the process. Use it at your own risk.
|
| 158 |
+
|
| 159 |
+
Returns:
|
| 160 |
+
[`huggingface_hub.repocard.RepoCard`]: The RepoCard (or subclass) initialized from the repo's
|
| 161 |
+
README.md file or filepath.
|
| 162 |
+
|
| 163 |
+
Example:
|
| 164 |
+
```python
|
| 165 |
+
>>> from huggingface_hub.repocard import RepoCard
|
| 166 |
+
>>> card = RepoCard.load("nateraw/food")
|
| 167 |
+
>>> assert card.data.tags == ["generated_from_trainer", "image-classification", "pytorch"]
|
| 168 |
+
|
| 169 |
+
```
|
| 170 |
+
"""
|
| 171 |
+
|
| 172 |
+
if Path(repo_id_or_path).is_file():
|
| 173 |
+
card_path = Path(repo_id_or_path)
|
| 174 |
+
elif isinstance(repo_id_or_path, str):
|
| 175 |
+
card_path = Path(
|
| 176 |
+
hf_hub_download(
|
| 177 |
+
repo_id_or_path,
|
| 178 |
+
constants.REPOCARD_NAME,
|
| 179 |
+
repo_type=repo_type or cls.repo_type,
|
| 180 |
+
token=token,
|
| 181 |
+
)
|
| 182 |
+
)
|
| 183 |
+
else:
|
| 184 |
+
raise ValueError(f"Cannot load RepoCard: path not found on disk ({repo_id_or_path}).")
|
| 185 |
+
|
| 186 |
+
# Preserve newlines in the existing file.
|
| 187 |
+
with card_path.open(mode="r", newline="", encoding="utf-8") as f:
|
| 188 |
+
return cls(f.read(), ignore_metadata_errors=ignore_metadata_errors)
|
| 189 |
+
|
| 190 |
+
def validate(self, repo_type: Optional[str] = None):
|
| 191 |
+
"""Validates card against Hugging Face Hub's card validation logic.
|
| 192 |
+
Using this function requires access to the internet, so it is only called
|
| 193 |
+
internally by [`huggingface_hub.repocard.RepoCard.push_to_hub`].
|
| 194 |
+
|
| 195 |
+
Args:
|
| 196 |
+
repo_type (`str`, *optional*, defaults to "model"):
|
| 197 |
+
The type of Hugging Face repo to push to. Options are "model", "dataset", and "space".
|
| 198 |
+
If this function is called from a child class, the default will be the child class's `repo_type`.
|
| 199 |
+
|
| 200 |
+
> [!TIP]
|
| 201 |
+
> Raises the following errors:
|
| 202 |
+
>
|
| 203 |
+
> - [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError)
|
| 204 |
+
> if the card fails validation checks.
|
| 205 |
+
> - [`HTTPError`](https://requests.readthedocs.io/en/latest/api/#requests.HTTPError)
|
| 206 |
+
> if the request to the Hub API fails for any other reason.
|
| 207 |
+
"""
|
| 208 |
+
|
| 209 |
+
# If repo type is provided, otherwise, use the repo type of the card.
|
| 210 |
+
repo_type = repo_type or self.repo_type
|
| 211 |
+
|
| 212 |
+
body = {
|
| 213 |
+
"repoType": repo_type,
|
| 214 |
+
"content": str(self),
|
| 215 |
+
}
|
| 216 |
+
headers = {"Accept": "text/plain"}
|
| 217 |
+
|
| 218 |
+
try:
|
| 219 |
+
r = get_session().post("https://huggingface.co/api/validate-yaml", body, headers=headers)
|
| 220 |
+
r.raise_for_status()
|
| 221 |
+
except requests.exceptions.HTTPError as exc:
|
| 222 |
+
if r.status_code == 400:
|
| 223 |
+
raise ValueError(r.text)
|
| 224 |
+
else:
|
| 225 |
+
raise exc
|
| 226 |
+
|
| 227 |
+
def push_to_hub(
|
| 228 |
+
self,
|
| 229 |
+
repo_id: str,
|
| 230 |
+
token: Optional[str] = None,
|
| 231 |
+
repo_type: Optional[str] = None,
|
| 232 |
+
commit_message: Optional[str] = None,
|
| 233 |
+
commit_description: Optional[str] = None,
|
| 234 |
+
revision: Optional[str] = None,
|
| 235 |
+
create_pr: Optional[bool] = None,
|
| 236 |
+
parent_commit: Optional[str] = None,
|
| 237 |
+
):
|
| 238 |
+
"""Push a RepoCard to a Hugging Face Hub repo.
|
| 239 |
+
|
| 240 |
+
Args:
|
| 241 |
+
repo_id (`str`):
|
| 242 |
+
The repo ID of the Hugging Face Hub repo to push to. Example: "nateraw/food".
|
| 243 |
+
token (`str`, *optional*):
|
| 244 |
+
Authentication token, obtained with `huggingface_hub.HfApi.login` method. Will default to
|
| 245 |
+
the stored token.
|
| 246 |
+
repo_type (`str`, *optional*, defaults to "model"):
|
| 247 |
+
The type of Hugging Face repo to push to. Options are "model", "dataset", and "space". If this
|
| 248 |
+
function is called by a child class, it will default to the child class's `repo_type`.
|
| 249 |
+
commit_message (`str`, *optional*):
|
| 250 |
+
The summary / title / first line of the generated commit.
|
| 251 |
+
commit_description (`str`, *optional*)
|
| 252 |
+
The description of the generated commit.
|
| 253 |
+
revision (`str`, *optional*):
|
| 254 |
+
The git revision to commit from. Defaults to the head of the `"main"` branch.
|
| 255 |
+
create_pr (`bool`, *optional*):
|
| 256 |
+
Whether or not to create a Pull Request with this commit. Defaults to `False`.
|
| 257 |
+
parent_commit (`str`, *optional*):
|
| 258 |
+
The OID / SHA of the parent commit, as a hexadecimal string. Shorthands (7 first characters) are also supported.
|
| 259 |
+
If specified and `create_pr` is `False`, the commit will fail if `revision` does not point to `parent_commit`.
|
| 260 |
+
If specified and `create_pr` is `True`, the pull request will be created from `parent_commit`.
|
| 261 |
+
Specifying `parent_commit` ensures the repo has not changed before committing the changes, and can be
|
| 262 |
+
especially useful if the repo is updated / committed to concurrently.
|
| 263 |
+
Returns:
|
| 264 |
+
`str`: URL of the commit which updated the card metadata.
|
| 265 |
+
"""
|
| 266 |
+
|
| 267 |
+
# If repo type is provided, otherwise, use the repo type of the card.
|
| 268 |
+
repo_type = repo_type or self.repo_type
|
| 269 |
+
|
| 270 |
+
# Validate card before pushing to hub
|
| 271 |
+
self.validate(repo_type=repo_type)
|
| 272 |
+
|
| 273 |
+
with SoftTemporaryDirectory() as tmpdir:
|
| 274 |
+
tmp_path = Path(tmpdir) / constants.REPOCARD_NAME
|
| 275 |
+
tmp_path.write_text(str(self), encoding="utf-8")
|
| 276 |
+
url = upload_file(
|
| 277 |
+
path_or_fileobj=str(tmp_path),
|
| 278 |
+
path_in_repo=constants.REPOCARD_NAME,
|
| 279 |
+
repo_id=repo_id,
|
| 280 |
+
token=token,
|
| 281 |
+
repo_type=repo_type,
|
| 282 |
+
commit_message=commit_message,
|
| 283 |
+
commit_description=commit_description,
|
| 284 |
+
create_pr=create_pr,
|
| 285 |
+
revision=revision,
|
| 286 |
+
parent_commit=parent_commit,
|
| 287 |
+
)
|
| 288 |
+
return url
|
| 289 |
+
|
| 290 |
+
@classmethod
|
| 291 |
+
def from_template(
|
| 292 |
+
cls,
|
| 293 |
+
card_data: CardData,
|
| 294 |
+
template_path: Optional[str] = None,
|
| 295 |
+
template_str: Optional[str] = None,
|
| 296 |
+
**template_kwargs,
|
| 297 |
+
):
|
| 298 |
+
"""Initialize a RepoCard from a template. By default, it uses the default template.
|
| 299 |
+
|
| 300 |
+
Templates are Jinja2 templates that can be customized by passing keyword arguments.
|
| 301 |
+
|
| 302 |
+
Args:
|
| 303 |
+
card_data (`huggingface_hub.CardData`):
|
| 304 |
+
A huggingface_hub.CardData instance containing the metadata you want to include in the YAML
|
| 305 |
+
header of the repo card on the Hugging Face Hub.
|
| 306 |
+
template_path (`str`, *optional*):
|
| 307 |
+
A path to a markdown file with optional Jinja template variables that can be filled
|
| 308 |
+
in with `template_kwargs`. Defaults to the default template.
|
| 309 |
+
|
| 310 |
+
Returns:
|
| 311 |
+
[`huggingface_hub.repocard.RepoCard`]: A RepoCard instance with the specified card data and content from the
|
| 312 |
+
template.
|
| 313 |
+
"""
|
| 314 |
+
if is_jinja_available():
|
| 315 |
+
import jinja2
|
| 316 |
+
else:
|
| 317 |
+
raise ImportError(
|
| 318 |
+
"Using RepoCard.from_template requires Jinja2 to be installed. Please"
|
| 319 |
+
" install it with `pip install Jinja2`."
|
| 320 |
+
)
|
| 321 |
+
|
| 322 |
+
kwargs = card_data.to_dict().copy()
|
| 323 |
+
kwargs.update(template_kwargs) # Template_kwargs have priority
|
| 324 |
+
|
| 325 |
+
if template_path is not None:
|
| 326 |
+
template_str = Path(template_path).read_text()
|
| 327 |
+
if template_str is None:
|
| 328 |
+
template_str = Path(cls.default_template_path).read_text()
|
| 329 |
+
template = jinja2.Template(template_str)
|
| 330 |
+
content = template.render(card_data=card_data.to_yaml(), **kwargs)
|
| 331 |
+
return cls(content)
|
| 332 |
+
|
| 333 |
+
|
| 334 |
+
class ModelCard(RepoCard):
|
| 335 |
+
card_data_class = ModelCardData
|
| 336 |
+
default_template_path = TEMPLATE_MODELCARD_PATH
|
| 337 |
+
repo_type = "model"
|
| 338 |
+
|
| 339 |
+
@classmethod
|
| 340 |
+
def from_template( # type: ignore # violates Liskov property but easier to use
|
| 341 |
+
cls,
|
| 342 |
+
card_data: ModelCardData,
|
| 343 |
+
template_path: Optional[str] = None,
|
| 344 |
+
template_str: Optional[str] = None,
|
| 345 |
+
**template_kwargs,
|
| 346 |
+
):
|
| 347 |
+
"""Initialize a ModelCard from a template. By default, it uses the default template, which can be found here:
|
| 348 |
+
https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md
|
| 349 |
+
|
| 350 |
+
Templates are Jinja2 templates that can be customized by passing keyword arguments.
|
| 351 |
+
|
| 352 |
+
Args:
|
| 353 |
+
card_data (`huggingface_hub.ModelCardData`):
|
| 354 |
+
A huggingface_hub.ModelCardData instance containing the metadata you want to include in the YAML
|
| 355 |
+
header of the model card on the Hugging Face Hub.
|
| 356 |
+
template_path (`str`, *optional*):
|
| 357 |
+
A path to a markdown file with optional Jinja template variables that can be filled
|
| 358 |
+
in with `template_kwargs`. Defaults to the default template.
|
| 359 |
+
|
| 360 |
+
Returns:
|
| 361 |
+
[`huggingface_hub.ModelCard`]: A ModelCard instance with the specified card data and content from the
|
| 362 |
+
template.
|
| 363 |
+
|
| 364 |
+
Example:
|
| 365 |
+
```python
|
| 366 |
+
>>> from huggingface_hub import ModelCard, ModelCardData, EvalResult
|
| 367 |
+
|
| 368 |
+
>>> # Using the Default Template
|
| 369 |
+
>>> card_data = ModelCardData(
|
| 370 |
+
... language='en',
|
| 371 |
+
... license='mit',
|
| 372 |
+
... library_name='timm',
|
| 373 |
+
... tags=['image-classification', 'resnet'],
|
| 374 |
+
... datasets=['beans'],
|
| 375 |
+
... metrics=['accuracy'],
|
| 376 |
+
... )
|
| 377 |
+
>>> card = ModelCard.from_template(
|
| 378 |
+
... card_data,
|
| 379 |
+
... model_description='This model does x + y...'
|
| 380 |
+
... )
|
| 381 |
+
|
| 382 |
+
>>> # Including Evaluation Results
|
| 383 |
+
>>> card_data = ModelCardData(
|
| 384 |
+
... language='en',
|
| 385 |
+
... tags=['image-classification', 'resnet'],
|
| 386 |
+
... eval_results=[
|
| 387 |
+
... EvalResult(
|
| 388 |
+
... task_type='image-classification',
|
| 389 |
+
... dataset_type='beans',
|
| 390 |
+
... dataset_name='Beans',
|
| 391 |
+
... metric_type='accuracy',
|
| 392 |
+
... metric_value=0.9,
|
| 393 |
+
... ),
|
| 394 |
+
... ],
|
| 395 |
+
... model_name='my-cool-model',
|
| 396 |
+
... )
|
| 397 |
+
>>> card = ModelCard.from_template(card_data)
|
| 398 |
+
|
| 399 |
+
>>> # Using a Custom Template
|
| 400 |
+
>>> card_data = ModelCardData(
|
| 401 |
+
... language='en',
|
| 402 |
+
... tags=['image-classification', 'resnet']
|
| 403 |
+
... )
|
| 404 |
+
>>> card = ModelCard.from_template(
|
| 405 |
+
... card_data=card_data,
|
| 406 |
+
... template_path='./src/huggingface_hub/templates/modelcard_template.md',
|
| 407 |
+
... custom_template_var='custom value', # will be replaced in template if it exists
|
| 408 |
+
... )
|
| 409 |
+
|
| 410 |
+
```
|
| 411 |
+
"""
|
| 412 |
+
return super().from_template(card_data, template_path, template_str, **template_kwargs)
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
class DatasetCard(RepoCard):
|
| 416 |
+
card_data_class = DatasetCardData
|
| 417 |
+
default_template_path = TEMPLATE_DATASETCARD_PATH
|
| 418 |
+
repo_type = "dataset"
|
| 419 |
+
|
| 420 |
+
@classmethod
|
| 421 |
+
def from_template( # type: ignore # violates Liskov property but easier to use
|
| 422 |
+
cls,
|
| 423 |
+
card_data: DatasetCardData,
|
| 424 |
+
template_path: Optional[str] = None,
|
| 425 |
+
template_str: Optional[str] = None,
|
| 426 |
+
**template_kwargs,
|
| 427 |
+
):
|
| 428 |
+
"""Initialize a DatasetCard from a template. By default, it uses the default template, which can be found here:
|
| 429 |
+
https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md
|
| 430 |
+
|
| 431 |
+
Templates are Jinja2 templates that can be customized by passing keyword arguments.
|
| 432 |
+
|
| 433 |
+
Args:
|
| 434 |
+
card_data (`huggingface_hub.DatasetCardData`):
|
| 435 |
+
A huggingface_hub.DatasetCardData instance containing the metadata you want to include in the YAML
|
| 436 |
+
header of the dataset card on the Hugging Face Hub.
|
| 437 |
+
template_path (`str`, *optional*):
|
| 438 |
+
A path to a markdown file with optional Jinja template variables that can be filled
|
| 439 |
+
in with `template_kwargs`. Defaults to the default template.
|
| 440 |
+
|
| 441 |
+
Returns:
|
| 442 |
+
[`huggingface_hub.DatasetCard`]: A DatasetCard instance with the specified card data and content from the
|
| 443 |
+
template.
|
| 444 |
+
|
| 445 |
+
Example:
|
| 446 |
+
```python
|
| 447 |
+
>>> from huggingface_hub import DatasetCard, DatasetCardData
|
| 448 |
+
|
| 449 |
+
>>> # Using the Default Template
|
| 450 |
+
>>> card_data = DatasetCardData(
|
| 451 |
+
... language='en',
|
| 452 |
+
... license='mit',
|
| 453 |
+
... annotations_creators='crowdsourced',
|
| 454 |
+
... task_categories=['text-classification'],
|
| 455 |
+
... task_ids=['sentiment-classification', 'text-scoring'],
|
| 456 |
+
... multilinguality='monolingual',
|
| 457 |
+
... pretty_name='My Text Classification Dataset',
|
| 458 |
+
... )
|
| 459 |
+
>>> card = DatasetCard.from_template(
|
| 460 |
+
... card_data,
|
| 461 |
+
... pretty_name=card_data.pretty_name,
|
| 462 |
+
... )
|
| 463 |
+
|
| 464 |
+
>>> # Using a Custom Template
|
| 465 |
+
>>> card_data = DatasetCardData(
|
| 466 |
+
... language='en',
|
| 467 |
+
... license='mit',
|
| 468 |
+
... )
|
| 469 |
+
>>> card = DatasetCard.from_template(
|
| 470 |
+
... card_data=card_data,
|
| 471 |
+
... template_path='./src/huggingface_hub/templates/datasetcard_template.md',
|
| 472 |
+
... custom_template_var='custom value', # will be replaced in template if it exists
|
| 473 |
+
... )
|
| 474 |
+
|
| 475 |
+
```
|
| 476 |
+
"""
|
| 477 |
+
return super().from_template(card_data, template_path, template_str, **template_kwargs)
|
| 478 |
+
|
| 479 |
+
|
| 480 |
+
class SpaceCard(RepoCard):
|
| 481 |
+
card_data_class = SpaceCardData
|
| 482 |
+
default_template_path = TEMPLATE_MODELCARD_PATH
|
| 483 |
+
repo_type = "space"
|
| 484 |
+
|
| 485 |
+
|
| 486 |
+
def _detect_line_ending(content: str) -> Literal["\r", "\n", "\r\n", None]: # noqa: F722
|
| 487 |
+
"""Detect the line ending of a string. Used by RepoCard to avoid making huge diff on newlines.
|
| 488 |
+
|
| 489 |
+
Uses same implementation as in Hub server, keep it in sync.
|
| 490 |
+
|
| 491 |
+
Returns:
|
| 492 |
+
str: The detected line ending of the string.
|
| 493 |
+
"""
|
| 494 |
+
cr = content.count("\r")
|
| 495 |
+
lf = content.count("\n")
|
| 496 |
+
crlf = content.count("\r\n")
|
| 497 |
+
if cr + lf == 0:
|
| 498 |
+
return None
|
| 499 |
+
if crlf == cr and crlf == lf:
|
| 500 |
+
return "\r\n"
|
| 501 |
+
if cr > lf:
|
| 502 |
+
return "\r"
|
| 503 |
+
else:
|
| 504 |
+
return "\n"
|
| 505 |
+
|
| 506 |
+
|
| 507 |
+
def metadata_load(local_path: Union[str, Path]) -> Optional[Dict]:
|
| 508 |
+
content = Path(local_path).read_text()
|
| 509 |
+
match = REGEX_YAML_BLOCK.search(content)
|
| 510 |
+
if match:
|
| 511 |
+
yaml_block = match.group(2)
|
| 512 |
+
data = yaml.safe_load(yaml_block)
|
| 513 |
+
if data is None or isinstance(data, dict):
|
| 514 |
+
return data
|
| 515 |
+
raise ValueError("repo card metadata block should be a dict")
|
| 516 |
+
else:
|
| 517 |
+
return None
|
| 518 |
+
|
| 519 |
+
|
| 520 |
+
def metadata_save(local_path: Union[str, Path], data: Dict) -> None:
|
| 521 |
+
"""
|
| 522 |
+
Save the metadata dict in the upper YAML part Trying to preserve newlines as
|
| 523 |
+
in the existing file. Docs about open() with newline="" parameter:
|
| 524 |
+
https://docs.python.org/3/library/functions.html?highlight=open#open Does
|
| 525 |
+
not work with "^M" linebreaks, which are replaced by \n
|
| 526 |
+
"""
|
| 527 |
+
line_break = "\n"
|
| 528 |
+
content = ""
|
| 529 |
+
# try to detect existing newline character
|
| 530 |
+
if os.path.exists(local_path):
|
| 531 |
+
with open(local_path, "r", newline="", encoding="utf8") as readme:
|
| 532 |
+
content = readme.read()
|
| 533 |
+
if isinstance(readme.newlines, tuple):
|
| 534 |
+
line_break = readme.newlines[0]
|
| 535 |
+
elif isinstance(readme.newlines, str):
|
| 536 |
+
line_break = readme.newlines
|
| 537 |
+
|
| 538 |
+
# creates a new file if it not
|
| 539 |
+
with open(local_path, "w", newline="", encoding="utf8") as readme:
|
| 540 |
+
data_yaml = yaml_dump(data, sort_keys=False, line_break=line_break)
|
| 541 |
+
# sort_keys: keep dict order
|
| 542 |
+
match = REGEX_YAML_BLOCK.search(content)
|
| 543 |
+
if match:
|
| 544 |
+
output = content[: match.start()] + f"---{line_break}{data_yaml}---{line_break}" + content[match.end() :]
|
| 545 |
+
else:
|
| 546 |
+
output = f"---{line_break}{data_yaml}---{line_break}{content}"
|
| 547 |
+
|
| 548 |
+
readme.write(output)
|
| 549 |
+
readme.close()
|
| 550 |
+
|
| 551 |
+
|
| 552 |
+
def metadata_eval_result(
|
| 553 |
+
*,
|
| 554 |
+
model_pretty_name: str,
|
| 555 |
+
task_pretty_name: str,
|
| 556 |
+
task_id: str,
|
| 557 |
+
metrics_pretty_name: str,
|
| 558 |
+
metrics_id: str,
|
| 559 |
+
metrics_value: Any,
|
| 560 |
+
dataset_pretty_name: str,
|
| 561 |
+
dataset_id: str,
|
| 562 |
+
metrics_config: Optional[str] = None,
|
| 563 |
+
metrics_verified: bool = False,
|
| 564 |
+
dataset_config: Optional[str] = None,
|
| 565 |
+
dataset_split: Optional[str] = None,
|
| 566 |
+
dataset_revision: Optional[str] = None,
|
| 567 |
+
metrics_verification_token: Optional[str] = None,
|
| 568 |
+
) -> Dict:
|
| 569 |
+
"""
|
| 570 |
+
Creates a metadata dict with the result from a model evaluated on a dataset.
|
| 571 |
+
|
| 572 |
+
Args:
|
| 573 |
+
model_pretty_name (`str`):
|
| 574 |
+
The name of the model in natural language.
|
| 575 |
+
task_pretty_name (`str`):
|
| 576 |
+
The name of a task in natural language.
|
| 577 |
+
task_id (`str`):
|
| 578 |
+
Example: automatic-speech-recognition. A task id.
|
| 579 |
+
metrics_pretty_name (`str`):
|
| 580 |
+
A name for the metric in natural language. Example: Test WER.
|
| 581 |
+
metrics_id (`str`):
|
| 582 |
+
Example: wer. A metric id from https://hf.co/metrics.
|
| 583 |
+
metrics_value (`Any`):
|
| 584 |
+
The value from the metric. Example: 20.0 or "20.0 ± 1.2".
|
| 585 |
+
dataset_pretty_name (`str`):
|
| 586 |
+
The name of the dataset in natural language.
|
| 587 |
+
dataset_id (`str`):
|
| 588 |
+
Example: common_voice. A dataset id from https://hf.co/datasets.
|
| 589 |
+
metrics_config (`str`, *optional*):
|
| 590 |
+
The name of the metric configuration used in `load_metric()`.
|
| 591 |
+
Example: bleurt-large-512 in `load_metric("bleurt", "bleurt-large-512")`.
|
| 592 |
+
metrics_verified (`bool`, *optional*, defaults to `False`):
|
| 593 |
+
Indicates whether the metrics originate from Hugging Face's [evaluation service](https://huggingface.co/spaces/autoevaluate/model-evaluator) or not. Automatically computed by Hugging Face, do not set.
|
| 594 |
+
dataset_config (`str`, *optional*):
|
| 595 |
+
Example: fr. The name of the dataset configuration used in `load_dataset()`.
|
| 596 |
+
dataset_split (`str`, *optional*):
|
| 597 |
+
Example: test. The name of the dataset split used in `load_dataset()`.
|
| 598 |
+
dataset_revision (`str`, *optional*):
|
| 599 |
+
Example: 5503434ddd753f426f4b38109466949a1217c2bb. The name of the dataset dataset revision
|
| 600 |
+
used in `load_dataset()`.
|
| 601 |
+
metrics_verification_token (`bool`, *optional*):
|
| 602 |
+
A JSON Web Token that is used to verify whether the metrics originate from Hugging Face's [evaluation service](https://huggingface.co/spaces/autoevaluate/model-evaluator) or not.
|
| 603 |
+
|
| 604 |
+
Returns:
|
| 605 |
+
`dict`: a metadata dict with the result from a model evaluated on a dataset.
|
| 606 |
+
|
| 607 |
+
Example:
|
| 608 |
+
```python
|
| 609 |
+
>>> from huggingface_hub import metadata_eval_result
|
| 610 |
+
>>> results = metadata_eval_result(
|
| 611 |
+
... model_pretty_name="RoBERTa fine-tuned on ReactionGIF",
|
| 612 |
+
... task_pretty_name="Text Classification",
|
| 613 |
+
... task_id="text-classification",
|
| 614 |
+
... metrics_pretty_name="Accuracy",
|
| 615 |
+
... metrics_id="accuracy",
|
| 616 |
+
... metrics_value=0.2662102282047272,
|
| 617 |
+
... dataset_pretty_name="ReactionJPEG",
|
| 618 |
+
... dataset_id="julien-c/reactionjpeg",
|
| 619 |
+
... dataset_config="default",
|
| 620 |
+
... dataset_split="test",
|
| 621 |
+
... )
|
| 622 |
+
>>> results == {
|
| 623 |
+
... 'model-index': [
|
| 624 |
+
... {
|
| 625 |
+
... 'name': 'RoBERTa fine-tuned on ReactionGIF',
|
| 626 |
+
... 'results': [
|
| 627 |
+
... {
|
| 628 |
+
... 'task': {
|
| 629 |
+
... 'type': 'text-classification',
|
| 630 |
+
... 'name': 'Text Classification'
|
| 631 |
+
... },
|
| 632 |
+
... 'dataset': {
|
| 633 |
+
... 'name': 'ReactionJPEG',
|
| 634 |
+
... 'type': 'julien-c/reactionjpeg',
|
| 635 |
+
... 'config': 'default',
|
| 636 |
+
... 'split': 'test'
|
| 637 |
+
... },
|
| 638 |
+
... 'metrics': [
|
| 639 |
+
... {
|
| 640 |
+
... 'type': 'accuracy',
|
| 641 |
+
... 'value': 0.2662102282047272,
|
| 642 |
+
... 'name': 'Accuracy',
|
| 643 |
+
... 'verified': False
|
| 644 |
+
... }
|
| 645 |
+
... ]
|
| 646 |
+
... }
|
| 647 |
+
... ]
|
| 648 |
+
... }
|
| 649 |
+
... ]
|
| 650 |
+
... }
|
| 651 |
+
True
|
| 652 |
+
|
| 653 |
+
```
|
| 654 |
+
"""
|
| 655 |
+
|
| 656 |
+
return {
|
| 657 |
+
"model-index": eval_results_to_model_index(
|
| 658 |
+
model_name=model_pretty_name,
|
| 659 |
+
eval_results=[
|
| 660 |
+
EvalResult(
|
| 661 |
+
task_name=task_pretty_name,
|
| 662 |
+
task_type=task_id,
|
| 663 |
+
metric_name=metrics_pretty_name,
|
| 664 |
+
metric_type=metrics_id,
|
| 665 |
+
metric_value=metrics_value,
|
| 666 |
+
dataset_name=dataset_pretty_name,
|
| 667 |
+
dataset_type=dataset_id,
|
| 668 |
+
metric_config=metrics_config,
|
| 669 |
+
verified=metrics_verified,
|
| 670 |
+
verify_token=metrics_verification_token,
|
| 671 |
+
dataset_config=dataset_config,
|
| 672 |
+
dataset_split=dataset_split,
|
| 673 |
+
dataset_revision=dataset_revision,
|
| 674 |
+
)
|
| 675 |
+
],
|
| 676 |
+
)
|
| 677 |
+
}
|
| 678 |
+
|
| 679 |
+
|
| 680 |
+
@validate_hf_hub_args
|
| 681 |
+
def metadata_update(
|
| 682 |
+
repo_id: str,
|
| 683 |
+
metadata: Dict,
|
| 684 |
+
*,
|
| 685 |
+
repo_type: Optional[str] = None,
|
| 686 |
+
overwrite: bool = False,
|
| 687 |
+
token: Optional[str] = None,
|
| 688 |
+
commit_message: Optional[str] = None,
|
| 689 |
+
commit_description: Optional[str] = None,
|
| 690 |
+
revision: Optional[str] = None,
|
| 691 |
+
create_pr: bool = False,
|
| 692 |
+
parent_commit: Optional[str] = None,
|
| 693 |
+
) -> str:
|
| 694 |
+
"""
|
| 695 |
+
Updates the metadata in the README.md of a repository on the Hugging Face Hub.
|
| 696 |
+
If the README.md file doesn't exist yet, a new one is created with metadata and an
|
| 697 |
+
the default ModelCard or DatasetCard template. For `space` repo, an error is thrown
|
| 698 |
+
as a Space cannot exist without a `README.md` file.
|
| 699 |
+
|
| 700 |
+
Args:
|
| 701 |
+
repo_id (`str`):
|
| 702 |
+
The name of the repository.
|
| 703 |
+
metadata (`dict`):
|
| 704 |
+
A dictionary containing the metadata to be updated.
|
| 705 |
+
repo_type (`str`, *optional*):
|
| 706 |
+
Set to `"dataset"` or `"space"` if updating to a dataset or space,
|
| 707 |
+
`None` or `"model"` if updating to a model. Default is `None`.
|
| 708 |
+
overwrite (`bool`, *optional*, defaults to `False`):
|
| 709 |
+
If set to `True` an existing field can be overwritten, otherwise
|
| 710 |
+
attempting to overwrite an existing field will cause an error.
|
| 711 |
+
token (`str`, *optional*):
|
| 712 |
+
The Hugging Face authentication token.
|
| 713 |
+
commit_message (`str`, *optional*):
|
| 714 |
+
The summary / title / first line of the generated commit. Defaults to
|
| 715 |
+
`f"Update metadata with huggingface_hub"`
|
| 716 |
+
commit_description (`str` *optional*)
|
| 717 |
+
The description of the generated commit
|
| 718 |
+
revision (`str`, *optional*):
|
| 719 |
+
The git revision to commit from. Defaults to the head of the
|
| 720 |
+
`"main"` branch.
|
| 721 |
+
create_pr (`boolean`, *optional*):
|
| 722 |
+
Whether or not to create a Pull Request from `revision` with that commit.
|
| 723 |
+
Defaults to `False`.
|
| 724 |
+
parent_commit (`str`, *optional*):
|
| 725 |
+
The OID / SHA of the parent commit, as a hexadecimal string. Shorthands (7 first characters) are also supported.
|
| 726 |
+
If specified and `create_pr` is `False`, the commit will fail if `revision` does not point to `parent_commit`.
|
| 727 |
+
If specified and `create_pr` is `True`, the pull request will be created from `parent_commit`.
|
| 728 |
+
Specifying `parent_commit` ensures the repo has not changed before committing the changes, and can be
|
| 729 |
+
especially useful if the repo is updated / committed to concurrently.
|
| 730 |
+
Returns:
|
| 731 |
+
`str`: URL of the commit which updated the card metadata.
|
| 732 |
+
|
| 733 |
+
Example:
|
| 734 |
+
```python
|
| 735 |
+
>>> from huggingface_hub import metadata_update
|
| 736 |
+
>>> metadata = {'model-index': [{'name': 'RoBERTa fine-tuned on ReactionGIF',
|
| 737 |
+
... 'results': [{'dataset': {'name': 'ReactionGIF',
|
| 738 |
+
... 'type': 'julien-c/reactiongif'},
|
| 739 |
+
... 'metrics': [{'name': 'Recall',
|
| 740 |
+
... 'type': 'recall',
|
| 741 |
+
... 'value': 0.7762102282047272}],
|
| 742 |
+
... 'task': {'name': 'Text Classification',
|
| 743 |
+
... 'type': 'text-classification'}}]}]}
|
| 744 |
+
>>> url = metadata_update("hf-internal-testing/reactiongif-roberta-card", metadata)
|
| 745 |
+
|
| 746 |
+
```
|
| 747 |
+
"""
|
| 748 |
+
commit_message = commit_message if commit_message is not None else "Update metadata with huggingface_hub"
|
| 749 |
+
|
| 750 |
+
# Card class given repo_type
|
| 751 |
+
card_class: Type[RepoCard]
|
| 752 |
+
if repo_type is None or repo_type == "model":
|
| 753 |
+
card_class = ModelCard
|
| 754 |
+
elif repo_type == "dataset":
|
| 755 |
+
card_class = DatasetCard
|
| 756 |
+
elif repo_type == "space":
|
| 757 |
+
card_class = RepoCard
|
| 758 |
+
else:
|
| 759 |
+
raise ValueError(f"Unknown repo_type: {repo_type}")
|
| 760 |
+
|
| 761 |
+
# Either load repo_card from the Hub or create an empty one.
|
| 762 |
+
# NOTE: Will not create the repo if it doesn't exist.
|
| 763 |
+
try:
|
| 764 |
+
card = card_class.load(repo_id, token=token, repo_type=repo_type)
|
| 765 |
+
except EntryNotFoundError:
|
| 766 |
+
if repo_type == "space":
|
| 767 |
+
raise ValueError("Cannot update metadata on a Space that doesn't contain a `README.md` file.")
|
| 768 |
+
|
| 769 |
+
# Initialize a ModelCard or DatasetCard from default template and no data.
|
| 770 |
+
# Cast to the concrete expected card type to satisfy type checkers.
|
| 771 |
+
card = card_class.from_template(CardData()) # type: ignore[return-value]
|
| 772 |
+
|
| 773 |
+
for key, value in metadata.items():
|
| 774 |
+
if key == "model-index":
|
| 775 |
+
# if the new metadata doesn't include a name, either use existing one or repo name
|
| 776 |
+
if "name" not in value[0]:
|
| 777 |
+
value[0]["name"] = getattr(card, "model_name", repo_id)
|
| 778 |
+
model_name, new_results = model_index_to_eval_results(value)
|
| 779 |
+
if card.data.eval_results is None:
|
| 780 |
+
card.data.eval_results = new_results
|
| 781 |
+
card.data.model_name = model_name
|
| 782 |
+
else:
|
| 783 |
+
existing_results = card.data.eval_results
|
| 784 |
+
|
| 785 |
+
# Iterate over new results
|
| 786 |
+
# Iterate over existing results
|
| 787 |
+
# If both results describe the same metric but value is different:
|
| 788 |
+
# If overwrite=True: overwrite the metric value
|
| 789 |
+
# Else: raise ValueError
|
| 790 |
+
# Else: append new result to existing ones.
|
| 791 |
+
for new_result in new_results:
|
| 792 |
+
result_found = False
|
| 793 |
+
for existing_result in existing_results:
|
| 794 |
+
if new_result.is_equal_except_value(existing_result):
|
| 795 |
+
if new_result != existing_result and not overwrite:
|
| 796 |
+
raise ValueError(
|
| 797 |
+
"You passed a new value for the existing metric"
|
| 798 |
+
f" 'name: {new_result.metric_name}, type: "
|
| 799 |
+
f"{new_result.metric_type}'. Set `overwrite=True`"
|
| 800 |
+
" to overwrite existing metrics."
|
| 801 |
+
)
|
| 802 |
+
result_found = True
|
| 803 |
+
existing_result.metric_value = new_result.metric_value
|
| 804 |
+
if existing_result.verified is True:
|
| 805 |
+
existing_result.verify_token = new_result.verify_token
|
| 806 |
+
if not result_found:
|
| 807 |
+
card.data.eval_results.append(new_result)
|
| 808 |
+
else:
|
| 809 |
+
# Any metadata that is not a result metric
|
| 810 |
+
if card.data.get(key) is not None and not overwrite and card.data.get(key) != value:
|
| 811 |
+
raise ValueError(
|
| 812 |
+
f"You passed a new value for the existing meta data field '{key}'."
|
| 813 |
+
" Set `overwrite=True` to overwrite existing metadata."
|
| 814 |
+
)
|
| 815 |
+
else:
|
| 816 |
+
card.data[key] = value
|
| 817 |
+
|
| 818 |
+
return card.push_to_hub(
|
| 819 |
+
repo_id,
|
| 820 |
+
token=token,
|
| 821 |
+
repo_type=repo_type,
|
| 822 |
+
commit_message=commit_message,
|
| 823 |
+
commit_description=commit_description,
|
| 824 |
+
create_pr=create_pr,
|
| 825 |
+
revision=revision,
|
| 826 |
+
parent_commit=parent_commit,
|
| 827 |
+
)
|
lib/python3.13/site-packages/mdurl-0.1.2.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
uv
|
lib/python3.13/site-packages/mdurl-0.1.2.dist-info/METADATA
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: mdurl
|
| 3 |
+
Version: 0.1.2
|
| 4 |
+
Summary: Markdown URL utilities
|
| 5 |
+
Keywords: markdown,commonmark
|
| 6 |
+
Author-email: Taneli Hukkinen <hukkin@users.noreply.github.com>
|
| 7 |
+
Requires-Python: >=3.7
|
| 8 |
+
Description-Content-Type: text/markdown
|
| 9 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 10 |
+
Classifier: Operating System :: MacOS
|
| 11 |
+
Classifier: Operating System :: Microsoft :: Windows
|
| 12 |
+
Classifier: Operating System :: POSIX :: Linux
|
| 13 |
+
Classifier: Programming Language :: Python :: 3 :: Only
|
| 14 |
+
Classifier: Programming Language :: Python :: 3.7
|
| 15 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 16 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 17 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 18 |
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
| 19 |
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
| 20 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 21 |
+
Classifier: Typing :: Typed
|
| 22 |
+
Project-URL: Homepage, https://github.com/executablebooks/mdurl
|
| 23 |
+
|
| 24 |
+
# mdurl
|
| 25 |
+
|
| 26 |
+
[](https://github.com/executablebooks/mdurl/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush)
|
| 27 |
+
[](https://codecov.io/gh/executablebooks/mdurl)
|
| 28 |
+
[](https://pypi.org/project/mdurl)
|
| 29 |
+
|
| 30 |
+
This is a Python port of the JavaScript [mdurl](https://www.npmjs.com/package/mdurl) package.
|
| 31 |
+
See the [upstream README.md file](https://github.com/markdown-it/mdurl/blob/master/README.md) for API documentation.
|
| 32 |
+
|
lib/python3.13/site-packages/mdurl-0.1.2.dist-info/REQUESTED
ADDED
|
File without changes
|
lib/python3.13/site-packages/msgspec/__init__.py
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from ._core import (
|
| 2 |
+
DecodeError,
|
| 3 |
+
EncodeError,
|
| 4 |
+
Field as _Field,
|
| 5 |
+
Meta,
|
| 6 |
+
MsgspecError,
|
| 7 |
+
Raw,
|
| 8 |
+
Struct,
|
| 9 |
+
UnsetType,
|
| 10 |
+
UNSET,
|
| 11 |
+
NODEFAULT,
|
| 12 |
+
ValidationError,
|
| 13 |
+
defstruct,
|
| 14 |
+
convert,
|
| 15 |
+
to_builtins,
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def field(*, default=NODEFAULT, default_factory=NODEFAULT, name=None):
|
| 20 |
+
return _Field(default=default, default_factory=default_factory, name=name)
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
field.__doc__ = _Field.__doc__
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
from . import msgpack
|
| 27 |
+
from . import json
|
| 28 |
+
from . import yaml
|
| 29 |
+
from . import toml
|
| 30 |
+
from . import inspect
|
| 31 |
+
from . import structs
|
| 32 |
+
from ._version import get_versions
|
| 33 |
+
|
| 34 |
+
__version__ = get_versions()["version"]
|
| 35 |
+
del get_versions
|
lib/python3.13/site-packages/msgspec/__init__.pyi
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import enum
|
| 2 |
+
from typing import (
|
| 3 |
+
Any,
|
| 4 |
+
Callable,
|
| 5 |
+
ClassVar,
|
| 6 |
+
Dict,
|
| 7 |
+
Final,
|
| 8 |
+
Iterable,
|
| 9 |
+
Literal,
|
| 10 |
+
Mapping,
|
| 11 |
+
Optional,
|
| 12 |
+
Tuple,
|
| 13 |
+
Type,
|
| 14 |
+
TypeVar,
|
| 15 |
+
Union,
|
| 16 |
+
overload,
|
| 17 |
+
)
|
| 18 |
+
|
| 19 |
+
from typing_extensions import dataclass_transform, Buffer
|
| 20 |
+
|
| 21 |
+
from . import inspect, json, msgpack, structs, toml, yaml
|
| 22 |
+
|
| 23 |
+
T = TypeVar("T")
|
| 24 |
+
|
| 25 |
+
class UnsetType(enum.Enum):
|
| 26 |
+
UNSET = "UNSET"
|
| 27 |
+
|
| 28 |
+
UNSET = UnsetType.UNSET
|
| 29 |
+
|
| 30 |
+
class _NoDefault(enum.Enum):
|
| 31 |
+
NODEFAULT = "NODEFAULT"
|
| 32 |
+
|
| 33 |
+
NODEFAULT = _NoDefault.NODEFAULT
|
| 34 |
+
|
| 35 |
+
@overload
|
| 36 |
+
def field(*, default: T, name: Optional[str] = None) -> T: ...
|
| 37 |
+
@overload
|
| 38 |
+
def field(*, default_factory: Callable[[], T], name: Optional[str] = None) -> T: ...
|
| 39 |
+
@overload
|
| 40 |
+
def field(*, name: Optional[str] = None) -> Any: ...
|
| 41 |
+
@dataclass_transform(field_specifiers=(field,))
|
| 42 |
+
class Struct:
|
| 43 |
+
__struct_fields__: ClassVar[Tuple[str, ...]]
|
| 44 |
+
__struct_config__: ClassVar[structs.StructConfig]
|
| 45 |
+
__match_args__: ClassVar[Tuple[str, ...]]
|
| 46 |
+
# A default __init__ so that Structs with unknown field types (say
|
| 47 |
+
# constructed by `defstruct`) won't error on every call to `__init__`
|
| 48 |
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
| 49 |
+
def __init_subclass__(
|
| 50 |
+
cls,
|
| 51 |
+
tag: Union[None, bool, str, int, Callable[[str], Union[str, int]]] = None,
|
| 52 |
+
tag_field: Union[None, str] = None,
|
| 53 |
+
rename: Union[
|
| 54 |
+
None,
|
| 55 |
+
Literal["lower", "upper", "camel", "pascal", "kebab"],
|
| 56 |
+
Callable[[str], Optional[str]],
|
| 57 |
+
Mapping[str, str],
|
| 58 |
+
] = None,
|
| 59 |
+
omit_defaults: bool = False,
|
| 60 |
+
forbid_unknown_fields: bool = False,
|
| 61 |
+
frozen: bool = False,
|
| 62 |
+
eq: bool = True,
|
| 63 |
+
order: bool = False,
|
| 64 |
+
kw_only: bool = False,
|
| 65 |
+
repr_omit_defaults: bool = False,
|
| 66 |
+
array_like: bool = False,
|
| 67 |
+
gc: bool = True,
|
| 68 |
+
weakref: bool = False,
|
| 69 |
+
dict: bool = False,
|
| 70 |
+
cache_hash: bool = False,
|
| 71 |
+
) -> None: ...
|
| 72 |
+
def __rich_repr__(
|
| 73 |
+
self,
|
| 74 |
+
) -> Iterable[Union[Any, Tuple[Any], Tuple[str, Any], Tuple[str, Any, Any]]]: ...
|
| 75 |
+
|
| 76 |
+
def defstruct(
|
| 77 |
+
name: str,
|
| 78 |
+
fields: Iterable[Union[str, Tuple[str, type], Tuple[str, type, Any]]],
|
| 79 |
+
*,
|
| 80 |
+
bases: Optional[Tuple[Type[Struct], ...]] = None,
|
| 81 |
+
module: Optional[str] = None,
|
| 82 |
+
namespace: Optional[Dict[str, Any]] = None,
|
| 83 |
+
tag: Union[None, bool, str, int, Callable[[str], Union[str, int]]] = None,
|
| 84 |
+
tag_field: Union[None, str] = None,
|
| 85 |
+
rename: Union[
|
| 86 |
+
None,
|
| 87 |
+
Literal["lower", "upper", "camel", "pascal", "kebab"],
|
| 88 |
+
Callable[[str], Optional[str]],
|
| 89 |
+
Mapping[str, str],
|
| 90 |
+
] = None,
|
| 91 |
+
omit_defaults: bool = False,
|
| 92 |
+
forbid_unknown_fields: bool = False,
|
| 93 |
+
frozen: bool = False,
|
| 94 |
+
eq: bool = True,
|
| 95 |
+
order: bool = False,
|
| 96 |
+
kw_only: bool = False,
|
| 97 |
+
repr_omit_defaults: bool = False,
|
| 98 |
+
array_like: bool = False,
|
| 99 |
+
gc: bool = True,
|
| 100 |
+
weakref: bool = False,
|
| 101 |
+
dict: bool = False,
|
| 102 |
+
cache_hash: bool = False,
|
| 103 |
+
) -> Type[Struct]: ...
|
| 104 |
+
|
| 105 |
+
# Lie and say `Raw` is a subclass of `bytes`, so mypy will accept it in most
|
| 106 |
+
# places where an object that implements the buffer protocol is valid
|
| 107 |
+
class Raw(bytes):
|
| 108 |
+
@overload
|
| 109 |
+
def __new__(cls) -> "Raw": ...
|
| 110 |
+
@overload
|
| 111 |
+
def __new__(cls, msg: Union[Buffer, str]) -> "Raw": ...
|
| 112 |
+
def copy(self) -> "Raw": ...
|
| 113 |
+
|
| 114 |
+
class Meta:
|
| 115 |
+
def __init__(
|
| 116 |
+
self,
|
| 117 |
+
*,
|
| 118 |
+
gt: Union[int, float, None] = None,
|
| 119 |
+
ge: Union[int, float, None] = None,
|
| 120 |
+
lt: Union[int, float, None] = None,
|
| 121 |
+
le: Union[int, float, None] = None,
|
| 122 |
+
multiple_of: Union[int, float, None] = None,
|
| 123 |
+
pattern: Union[str, None] = None,
|
| 124 |
+
min_length: Union[int, None] = None,
|
| 125 |
+
max_length: Union[int, None] = None,
|
| 126 |
+
tz: Union[bool, None] = None,
|
| 127 |
+
title: Union[str, None] = None,
|
| 128 |
+
description: Union[str, None] = None,
|
| 129 |
+
examples: Union[list, None] = None,
|
| 130 |
+
extra_json_schema: Union[dict, None] = None,
|
| 131 |
+
extra: Union[dict, None] = None,
|
| 132 |
+
): ...
|
| 133 |
+
gt: Final[Union[int, float, None]]
|
| 134 |
+
ge: Final[Union[int, float, None]]
|
| 135 |
+
lt: Final[Union[int, float, None]]
|
| 136 |
+
le: Final[Union[int, float, None]]
|
| 137 |
+
multiple_of: Final[Union[int, float, None]]
|
| 138 |
+
pattern: Final[Union[str, None]]
|
| 139 |
+
min_length: Final[Union[int, None]]
|
| 140 |
+
max_length: Final[Union[int, None]]
|
| 141 |
+
tz: Final[Union[int, None]]
|
| 142 |
+
title: Final[Union[str, None]]
|
| 143 |
+
description: Final[Union[str, None]]
|
| 144 |
+
examples: Final[Union[list, None]]
|
| 145 |
+
extra_json_schema: Final[Union[dict, None]]
|
| 146 |
+
extra: Final[Union[dict, None]]
|
| 147 |
+
def __rich_repr__(self) -> Iterable[Tuple[str, Any]]: ...
|
| 148 |
+
|
| 149 |
+
def to_builtins(
|
| 150 |
+
obj: Any,
|
| 151 |
+
*,
|
| 152 |
+
str_keys: bool = False,
|
| 153 |
+
builtin_types: Union[Iterable[type], None] = None,
|
| 154 |
+
enc_hook: Optional[Callable[[Any], Any]] = None,
|
| 155 |
+
order: Literal[None, "deterministic", "sorted"] = None,
|
| 156 |
+
) -> Any: ...
|
| 157 |
+
@overload
|
| 158 |
+
def convert(
|
| 159 |
+
obj: Any,
|
| 160 |
+
type: Type[T],
|
| 161 |
+
*,
|
| 162 |
+
strict: bool = True,
|
| 163 |
+
from_attributes: bool = False,
|
| 164 |
+
dec_hook: Optional[Callable[[type, Any], Any]] = None,
|
| 165 |
+
builtin_types: Union[Iterable[type], None] = None,
|
| 166 |
+
str_keys: bool = False,
|
| 167 |
+
) -> T: ...
|
| 168 |
+
@overload
|
| 169 |
+
def convert(
|
| 170 |
+
obj: Any,
|
| 171 |
+
type: Any,
|
| 172 |
+
*,
|
| 173 |
+
strict: bool = True,
|
| 174 |
+
from_attributes: bool = False,
|
| 175 |
+
dec_hook: Optional[Callable[[type, Any], Any]] = None,
|
| 176 |
+
builtin_types: Union[Iterable[type], None] = None,
|
| 177 |
+
str_keys: bool = False,
|
| 178 |
+
) -> Any: ...
|
| 179 |
+
|
| 180 |
+
class MsgspecError(Exception): ...
|
| 181 |
+
class EncodeError(MsgspecError): ...
|
| 182 |
+
class DecodeError(MsgspecError): ...
|
| 183 |
+
class ValidationError(DecodeError): ...
|
| 184 |
+
|
| 185 |
+
__version__: str
|
lib/python3.13/site-packages/msgspec/_utils.py
ADDED
|
@@ -0,0 +1,319 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# type: ignore
|
| 2 |
+
import collections
|
| 3 |
+
import sys
|
| 4 |
+
import typing
|
| 5 |
+
|
| 6 |
+
from typing import _AnnotatedAlias # noqa: F401
|
| 7 |
+
|
| 8 |
+
try:
|
| 9 |
+
from typing_extensions import get_type_hints as _get_type_hints
|
| 10 |
+
except Exception:
|
| 11 |
+
from typing import get_type_hints as _get_type_hints
|
| 12 |
+
|
| 13 |
+
try:
|
| 14 |
+
from typing_extensions import NotRequired, Required
|
| 15 |
+
except Exception:
|
| 16 |
+
try:
|
| 17 |
+
from typing import NotRequired, Required
|
| 18 |
+
except Exception:
|
| 19 |
+
Required = NotRequired = None
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def get_type_hints(obj):
|
| 23 |
+
return _get_type_hints(obj, include_extras=True)
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
# The `is_class` argument was new in 3.11, but was backported to 3.9 and 3.10.
|
| 27 |
+
# It's _likely_ to be available for 3.9/3.10, but may not be. Easiest way to
|
| 28 |
+
# check is to try it and see. This check can be removed when we drop support
|
| 29 |
+
# for Python 3.10.
|
| 30 |
+
try:
|
| 31 |
+
typing.ForwardRef("Foo", is_class=True)
|
| 32 |
+
except TypeError:
|
| 33 |
+
|
| 34 |
+
def _forward_ref(value):
|
| 35 |
+
return typing.ForwardRef(value, is_argument=False)
|
| 36 |
+
|
| 37 |
+
else:
|
| 38 |
+
|
| 39 |
+
def _forward_ref(value):
|
| 40 |
+
return typing.ForwardRef(value, is_argument=False, is_class=True)
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
# Python 3.13 adds a new mandatory type_params kwarg to _eval_type
|
| 44 |
+
if sys.version_info >= (3, 13):
|
| 45 |
+
|
| 46 |
+
def _eval_type(t, globalns, localns):
|
| 47 |
+
return typing._eval_type(t, globalns, localns, ())
|
| 48 |
+
elif sys.version_info < (3, 10):
|
| 49 |
+
|
| 50 |
+
def _eval_type(t, globalns, localns):
|
| 51 |
+
try:
|
| 52 |
+
return typing._eval_type(t, globalns, localns)
|
| 53 |
+
except TypeError as e:
|
| 54 |
+
try:
|
| 55 |
+
from eval_type_backport import eval_type_backport
|
| 56 |
+
except ImportError:
|
| 57 |
+
raise TypeError(
|
| 58 |
+
f"Unable to evaluate type annotation {t.__forward_arg__!r}. If you are making use "
|
| 59 |
+
"of the new typing syntax (unions using `|` since Python 3.10 or builtins subscripting "
|
| 60 |
+
"since Python 3.9), you should either replace the use of new syntax with the existing "
|
| 61 |
+
"`typing` constructs or install the `eval_type_backport` package."
|
| 62 |
+
) from e
|
| 63 |
+
|
| 64 |
+
return eval_type_backport(
|
| 65 |
+
t,
|
| 66 |
+
globalns,
|
| 67 |
+
localns,
|
| 68 |
+
try_default=False,
|
| 69 |
+
)
|
| 70 |
+
else:
|
| 71 |
+
_eval_type = typing._eval_type
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
def _apply_params(obj, mapping):
|
| 75 |
+
if isinstance(obj, typing.TypeVar):
|
| 76 |
+
return mapping.get(obj, obj)
|
| 77 |
+
|
| 78 |
+
try:
|
| 79 |
+
parameters = tuple(obj.__parameters__)
|
| 80 |
+
except Exception:
|
| 81 |
+
# Not parameterized or __parameters__ is invalid, ignore
|
| 82 |
+
return obj
|
| 83 |
+
|
| 84 |
+
if not parameters:
|
| 85 |
+
# Not parametrized
|
| 86 |
+
return obj
|
| 87 |
+
|
| 88 |
+
# Parametrized
|
| 89 |
+
args = tuple(mapping.get(p, p) for p in parameters)
|
| 90 |
+
return obj[args]
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
def _get_class_mro_and_typevar_mappings(obj):
|
| 94 |
+
mapping = {}
|
| 95 |
+
|
| 96 |
+
if isinstance(obj, type):
|
| 97 |
+
cls = obj
|
| 98 |
+
else:
|
| 99 |
+
cls = obj.__origin__
|
| 100 |
+
|
| 101 |
+
def inner(c, scope):
|
| 102 |
+
if isinstance(c, type):
|
| 103 |
+
cls = c
|
| 104 |
+
new_scope = {}
|
| 105 |
+
else:
|
| 106 |
+
cls = getattr(c, "__origin__", None)
|
| 107 |
+
if cls in (None, object, typing.Generic) or cls in mapping:
|
| 108 |
+
return
|
| 109 |
+
params = cls.__parameters__
|
| 110 |
+
args = tuple(_apply_params(a, scope) for a in c.__args__)
|
| 111 |
+
assert len(params) == len(args)
|
| 112 |
+
mapping[cls] = new_scope = dict(zip(params, args))
|
| 113 |
+
|
| 114 |
+
if issubclass(cls, typing.Generic):
|
| 115 |
+
bases = getattr(cls, "__orig_bases__", cls.__bases__)
|
| 116 |
+
for b in bases:
|
| 117 |
+
inner(b, new_scope)
|
| 118 |
+
|
| 119 |
+
inner(obj, {})
|
| 120 |
+
return cls.__mro__, mapping
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
def get_class_annotations(obj):
|
| 124 |
+
"""Get the annotations for a class.
|
| 125 |
+
|
| 126 |
+
This is similar to ``typing.get_type_hints``, except:
|
| 127 |
+
|
| 128 |
+
- We maintain it
|
| 129 |
+
- It leaves extras like ``Annotated``/``ClassVar`` alone
|
| 130 |
+
- It resolves any parametrized generics in the class mro. The returned
|
| 131 |
+
mapping may still include ``TypeVar`` values, but those should be treated
|
| 132 |
+
as their unparametrized variants (i.e. equal to ``Any`` for the common case).
|
| 133 |
+
|
| 134 |
+
Note that this function doesn't check that Generic types are being used
|
| 135 |
+
properly - invalid uses of `Generic` may slip through without complaint.
|
| 136 |
+
|
| 137 |
+
The assumption here is that the user is making use of a static analysis
|
| 138 |
+
tool like ``mypy``/``pyright`` already, which would catch misuse of these
|
| 139 |
+
APIs.
|
| 140 |
+
"""
|
| 141 |
+
hints = {}
|
| 142 |
+
mro, typevar_mappings = _get_class_mro_and_typevar_mappings(obj)
|
| 143 |
+
|
| 144 |
+
for cls in mro:
|
| 145 |
+
if cls in (typing.Generic, object):
|
| 146 |
+
continue
|
| 147 |
+
|
| 148 |
+
mapping = typevar_mappings.get(cls)
|
| 149 |
+
cls_locals = dict(vars(cls))
|
| 150 |
+
cls_globals = getattr(sys.modules.get(cls.__module__, None), "__dict__", {})
|
| 151 |
+
|
| 152 |
+
ann = cls.__dict__.get("__annotations__", {})
|
| 153 |
+
for name, value in ann.items():
|
| 154 |
+
if name in hints:
|
| 155 |
+
continue
|
| 156 |
+
if value is None:
|
| 157 |
+
value = type(None)
|
| 158 |
+
elif isinstance(value, str):
|
| 159 |
+
value = _forward_ref(value)
|
| 160 |
+
value = _eval_type(value, cls_locals, cls_globals)
|
| 161 |
+
if mapping is not None:
|
| 162 |
+
value = _apply_params(value, mapping)
|
| 163 |
+
hints[name] = value
|
| 164 |
+
return hints
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
# A mapping from a type annotation (or annotation __origin__) to the concrete
|
| 168 |
+
# python type that msgspec will use when decoding. THIS IS PRIVATE FOR A
|
| 169 |
+
# REASON. DON'T MUCK WITH THIS.
|
| 170 |
+
_CONCRETE_TYPES = {
|
| 171 |
+
list: list,
|
| 172 |
+
tuple: tuple,
|
| 173 |
+
set: set,
|
| 174 |
+
frozenset: frozenset,
|
| 175 |
+
dict: dict,
|
| 176 |
+
typing.List: list,
|
| 177 |
+
typing.Tuple: tuple,
|
| 178 |
+
typing.Set: set,
|
| 179 |
+
typing.FrozenSet: frozenset,
|
| 180 |
+
typing.Dict: dict,
|
| 181 |
+
typing.Collection: list,
|
| 182 |
+
typing.MutableSequence: list,
|
| 183 |
+
typing.Sequence: list,
|
| 184 |
+
typing.MutableMapping: dict,
|
| 185 |
+
typing.Mapping: dict,
|
| 186 |
+
typing.MutableSet: set,
|
| 187 |
+
typing.AbstractSet: set,
|
| 188 |
+
collections.abc.Collection: list,
|
| 189 |
+
collections.abc.MutableSequence: list,
|
| 190 |
+
collections.abc.Sequence: list,
|
| 191 |
+
collections.abc.MutableSet: set,
|
| 192 |
+
collections.abc.Set: set,
|
| 193 |
+
collections.abc.MutableMapping: dict,
|
| 194 |
+
collections.abc.Mapping: dict,
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
def get_typeddict_info(obj):
|
| 199 |
+
if isinstance(obj, type):
|
| 200 |
+
cls = obj
|
| 201 |
+
else:
|
| 202 |
+
cls = obj.__origin__
|
| 203 |
+
|
| 204 |
+
raw_hints = get_class_annotations(obj)
|
| 205 |
+
|
| 206 |
+
if hasattr(cls, "__required_keys__"):
|
| 207 |
+
required = set(cls.__required_keys__)
|
| 208 |
+
elif cls.__total__:
|
| 209 |
+
required = set(raw_hints)
|
| 210 |
+
else:
|
| 211 |
+
required = set()
|
| 212 |
+
|
| 213 |
+
# Both `typing.TypedDict` and `typing_extensions.TypedDict` have a bug
|
| 214 |
+
# where `Required`/`NotRequired` aren't properly detected at runtime when
|
| 215 |
+
# `__future__.annotations` is enabled, meaning the `__required_keys__`
|
| 216 |
+
# isn't correct. This code block works around this issue by amending the
|
| 217 |
+
# set of required keys as needed, while also stripping off any
|
| 218 |
+
# `Required`/`NotRequired` wrappers.
|
| 219 |
+
hints = {}
|
| 220 |
+
for k, v in raw_hints.items():
|
| 221 |
+
origin = getattr(v, "__origin__", False)
|
| 222 |
+
if origin is Required:
|
| 223 |
+
required.add(k)
|
| 224 |
+
hints[k] = v.__args__[0]
|
| 225 |
+
elif origin is NotRequired:
|
| 226 |
+
required.discard(k)
|
| 227 |
+
hints[k] = v.__args__[0]
|
| 228 |
+
else:
|
| 229 |
+
hints[k] = v
|
| 230 |
+
return hints, required
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
def get_dataclass_info(obj):
|
| 234 |
+
if isinstance(obj, type):
|
| 235 |
+
cls = obj
|
| 236 |
+
else:
|
| 237 |
+
cls = obj.__origin__
|
| 238 |
+
hints = get_class_annotations(obj)
|
| 239 |
+
required = []
|
| 240 |
+
optional = []
|
| 241 |
+
defaults = []
|
| 242 |
+
|
| 243 |
+
if hasattr(cls, "__dataclass_fields__"):
|
| 244 |
+
from dataclasses import _FIELD, _FIELD_INITVAR, MISSING
|
| 245 |
+
|
| 246 |
+
for field in cls.__dataclass_fields__.values():
|
| 247 |
+
if field._field_type is not _FIELD:
|
| 248 |
+
if field._field_type is _FIELD_INITVAR:
|
| 249 |
+
raise TypeError(
|
| 250 |
+
"dataclasses with `InitVar` fields are not supported"
|
| 251 |
+
)
|
| 252 |
+
continue
|
| 253 |
+
name = field.name
|
| 254 |
+
typ = hints[name]
|
| 255 |
+
if field.default is not MISSING:
|
| 256 |
+
defaults.append(field.default)
|
| 257 |
+
optional.append((name, typ, False))
|
| 258 |
+
elif field.default_factory is not MISSING:
|
| 259 |
+
defaults.append(field.default_factory)
|
| 260 |
+
optional.append((name, typ, True))
|
| 261 |
+
else:
|
| 262 |
+
required.append((name, typ, False))
|
| 263 |
+
|
| 264 |
+
required.extend(optional)
|
| 265 |
+
|
| 266 |
+
pre_init = None
|
| 267 |
+
post_init = getattr(cls, "__post_init__", None)
|
| 268 |
+
else:
|
| 269 |
+
from attrs import NOTHING, Factory
|
| 270 |
+
|
| 271 |
+
fields_with_validators = []
|
| 272 |
+
|
| 273 |
+
for field in cls.__attrs_attrs__:
|
| 274 |
+
name = field.name
|
| 275 |
+
typ = hints[name]
|
| 276 |
+
default = field.default
|
| 277 |
+
if default is not NOTHING:
|
| 278 |
+
if isinstance(default, Factory):
|
| 279 |
+
if default.takes_self:
|
| 280 |
+
raise NotImplementedError(
|
| 281 |
+
"Support for default factories with `takes_self=True` "
|
| 282 |
+
"is not implemented. File a GitHub issue if you need "
|
| 283 |
+
"this feature!"
|
| 284 |
+
)
|
| 285 |
+
defaults.append(default.factory)
|
| 286 |
+
optional.append((name, typ, True))
|
| 287 |
+
else:
|
| 288 |
+
defaults.append(default)
|
| 289 |
+
optional.append((name, typ, False))
|
| 290 |
+
else:
|
| 291 |
+
required.append((name, typ, False))
|
| 292 |
+
|
| 293 |
+
if field.validator is not None:
|
| 294 |
+
fields_with_validators.append(field)
|
| 295 |
+
|
| 296 |
+
required.extend(optional)
|
| 297 |
+
|
| 298 |
+
pre_init = getattr(cls, "__attrs_pre_init__", None)
|
| 299 |
+
post_init = getattr(cls, "__attrs_post_init__", None)
|
| 300 |
+
|
| 301 |
+
if fields_with_validators:
|
| 302 |
+
post_init = _wrap_attrs_validators(fields_with_validators, post_init)
|
| 303 |
+
|
| 304 |
+
return cls, tuple(required), tuple(defaults), pre_init, post_init
|
| 305 |
+
|
| 306 |
+
|
| 307 |
+
def _wrap_attrs_validators(fields, post_init):
|
| 308 |
+
def inner(obj):
|
| 309 |
+
for field in fields:
|
| 310 |
+
field.validator(obj, field, getattr(obj, field.name))
|
| 311 |
+
if post_init is not None:
|
| 312 |
+
post_init(obj)
|
| 313 |
+
|
| 314 |
+
return inner
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
def rebuild(cls, kwargs):
|
| 318 |
+
"""Used to unpickle Structs with keyword-only fields"""
|
| 319 |
+
return cls(**kwargs)
|
lib/python3.13/site-packages/msgspec/json.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from ._core import (
|
| 2 |
+
JSONDecoder as Decoder,
|
| 3 |
+
JSONEncoder as Encoder,
|
| 4 |
+
json_decode as decode,
|
| 5 |
+
json_encode as encode,
|
| 6 |
+
json_format as format,
|
| 7 |
+
)
|
| 8 |
+
from ._json_schema import schema, schema_components
|
lib/python3.13/site-packages/msgspec/json.pyi
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from collections.abc import Iterable
|
| 2 |
+
from typing import (
|
| 3 |
+
Any,
|
| 4 |
+
Callable,
|
| 5 |
+
Dict,
|
| 6 |
+
Generic,
|
| 7 |
+
Iterable,
|
| 8 |
+
Literal,
|
| 9 |
+
Optional,
|
| 10 |
+
Tuple,
|
| 11 |
+
Type,
|
| 12 |
+
TypeVar,
|
| 13 |
+
Union,
|
| 14 |
+
overload,
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
from typing_extensions import Buffer
|
| 18 |
+
|
| 19 |
+
T = TypeVar("T")
|
| 20 |
+
|
| 21 |
+
enc_hook_sig = Optional[Callable[[Any], Any]]
|
| 22 |
+
dec_hook_sig = Optional[Callable[[type, Any], Any]]
|
| 23 |
+
float_hook_sig = Optional[Callable[[str], Any]]
|
| 24 |
+
schema_hook_sig = Optional[Callable[[type], dict[str, Any]]]
|
| 25 |
+
|
| 26 |
+
class Encoder:
|
| 27 |
+
enc_hook: enc_hook_sig
|
| 28 |
+
decimal_format: Literal["string", "number"]
|
| 29 |
+
uuid_format: Literal["canonical", "hex"]
|
| 30 |
+
order: Literal[None, "deterministic", "sorted"]
|
| 31 |
+
|
| 32 |
+
def __init__(
|
| 33 |
+
self,
|
| 34 |
+
*,
|
| 35 |
+
enc_hook: enc_hook_sig = None,
|
| 36 |
+
decimal_format: Literal["string", "number"] = "string",
|
| 37 |
+
uuid_format: Literal["canonical", "hex"] = "canonical",
|
| 38 |
+
order: Literal[None, "deterministic", "sorted"] = None,
|
| 39 |
+
): ...
|
| 40 |
+
def encode(self, obj: Any, /) -> bytes: ...
|
| 41 |
+
def encode_lines(self, items: Iterable, /) -> bytes: ...
|
| 42 |
+
def encode_into(
|
| 43 |
+
self, obj: Any, buffer: bytearray, offset: Optional[int] = 0, /
|
| 44 |
+
) -> None: ...
|
| 45 |
+
|
| 46 |
+
class Decoder(Generic[T]):
|
| 47 |
+
type: Type[T]
|
| 48 |
+
strict: bool
|
| 49 |
+
dec_hook: dec_hook_sig
|
| 50 |
+
float_hook: float_hook_sig
|
| 51 |
+
|
| 52 |
+
@overload
|
| 53 |
+
def __init__(
|
| 54 |
+
self: Decoder[Any],
|
| 55 |
+
*,
|
| 56 |
+
strict: bool = True,
|
| 57 |
+
dec_hook: dec_hook_sig = None,
|
| 58 |
+
float_hook: float_hook_sig = None,
|
| 59 |
+
) -> None: ...
|
| 60 |
+
@overload
|
| 61 |
+
def __init__(
|
| 62 |
+
self: Decoder[T],
|
| 63 |
+
type: Type[T] = ...,
|
| 64 |
+
*,
|
| 65 |
+
strict: bool = True,
|
| 66 |
+
dec_hook: dec_hook_sig = None,
|
| 67 |
+
float_hook: float_hook_sig = None,
|
| 68 |
+
) -> None: ...
|
| 69 |
+
@overload
|
| 70 |
+
def __init__(
|
| 71 |
+
self: Decoder[Any],
|
| 72 |
+
type: Any = ...,
|
| 73 |
+
*,
|
| 74 |
+
strict: bool = True,
|
| 75 |
+
dec_hook: dec_hook_sig = None,
|
| 76 |
+
float_hook: float_hook_sig = None,
|
| 77 |
+
) -> None: ...
|
| 78 |
+
def decode(self, buf: Union[Buffer, str], /) -> T: ...
|
| 79 |
+
def decode_lines(self, buf: Union[Buffer, str], /) -> list[T]: ...
|
| 80 |
+
|
| 81 |
+
@overload
|
| 82 |
+
def decode(
|
| 83 |
+
buf: Union[Buffer, str],
|
| 84 |
+
/,
|
| 85 |
+
*,
|
| 86 |
+
strict: bool = True,
|
| 87 |
+
dec_hook: dec_hook_sig = None,
|
| 88 |
+
) -> Any: ...
|
| 89 |
+
@overload
|
| 90 |
+
def decode(
|
| 91 |
+
buf: Union[Buffer, str],
|
| 92 |
+
/,
|
| 93 |
+
*,
|
| 94 |
+
type: Type[T] = ...,
|
| 95 |
+
strict: bool = True,
|
| 96 |
+
dec_hook: dec_hook_sig = None,
|
| 97 |
+
) -> T: ...
|
| 98 |
+
@overload
|
| 99 |
+
def decode(
|
| 100 |
+
buf: Union[Buffer, str],
|
| 101 |
+
/,
|
| 102 |
+
*,
|
| 103 |
+
type: Any = ...,
|
| 104 |
+
strict: bool = True,
|
| 105 |
+
dec_hook: dec_hook_sig = None,
|
| 106 |
+
) -> Any: ...
|
| 107 |
+
def encode(obj: Any, /, *, enc_hook: enc_hook_sig = None, order: Literal[None, "deterministic", "sorted"] = None) -> bytes: ...
|
| 108 |
+
def schema(type: Any, *, schema_hook: schema_hook_sig = None) -> Dict[str, Any]: ...
|
| 109 |
+
def schema_components(
|
| 110 |
+
types: Iterable[Any],
|
| 111 |
+
*,
|
| 112 |
+
schema_hook: schema_hook_sig = None,
|
| 113 |
+
ref_template: str = "#/$defs/{name}"
|
| 114 |
+
) -> Tuple[Tuple[Dict[str, Any], ...], Dict[str, Any]]: ...
|
| 115 |
+
@overload
|
| 116 |
+
def format(buf: str, /, *, indent: int = 2) -> str: ...
|
| 117 |
+
@overload
|
| 118 |
+
def format(buf: Buffer, /, *, indent: int = 2) -> bytes: ...
|
lib/python3.13/site-packages/msgspec/msgpack.pyi
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import (
|
| 2 |
+
Any,
|
| 3 |
+
Callable,
|
| 4 |
+
Generic,
|
| 5 |
+
Literal,
|
| 6 |
+
Optional,
|
| 7 |
+
Type,
|
| 8 |
+
TypeVar,
|
| 9 |
+
Union,
|
| 10 |
+
overload,
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
from typing_extensions import Buffer
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
T = TypeVar("T")
|
| 17 |
+
|
| 18 |
+
enc_hook_sig = Optional[Callable[[Any], Any]]
|
| 19 |
+
ext_hook_sig = Optional[Callable[[int, memoryview], Any]]
|
| 20 |
+
dec_hook_sig = Optional[Callable[[type, Any], Any]]
|
| 21 |
+
|
| 22 |
+
class Ext:
|
| 23 |
+
code: int
|
| 24 |
+
data: Union[bytes, bytearray, memoryview]
|
| 25 |
+
def __init__(
|
| 26 |
+
self, code: int, data: Union[bytes, bytearray, memoryview]
|
| 27 |
+
) -> None: ...
|
| 28 |
+
|
| 29 |
+
class Decoder(Generic[T]):
|
| 30 |
+
type: Type[T]
|
| 31 |
+
strict: bool
|
| 32 |
+
dec_hook: dec_hook_sig
|
| 33 |
+
ext_hook: ext_hook_sig
|
| 34 |
+
@overload
|
| 35 |
+
def __init__(
|
| 36 |
+
self: Decoder[Any],
|
| 37 |
+
*,
|
| 38 |
+
strict: bool = True,
|
| 39 |
+
dec_hook: dec_hook_sig = None,
|
| 40 |
+
ext_hook: ext_hook_sig = None,
|
| 41 |
+
) -> None: ...
|
| 42 |
+
@overload
|
| 43 |
+
def __init__(
|
| 44 |
+
self: Decoder[T],
|
| 45 |
+
type: Type[T] = ...,
|
| 46 |
+
*,
|
| 47 |
+
strict: bool = True,
|
| 48 |
+
dec_hook: dec_hook_sig = None,
|
| 49 |
+
ext_hook: ext_hook_sig = None,
|
| 50 |
+
) -> None: ...
|
| 51 |
+
@overload
|
| 52 |
+
def __init__(
|
| 53 |
+
self: Decoder[Any],
|
| 54 |
+
type: Any = ...,
|
| 55 |
+
*,
|
| 56 |
+
strict: bool = True,
|
| 57 |
+
dec_hook: dec_hook_sig = None,
|
| 58 |
+
ext_hook: ext_hook_sig = None,
|
| 59 |
+
) -> None: ...
|
| 60 |
+
def decode(self, buf: Buffer, /) -> T: ...
|
| 61 |
+
|
| 62 |
+
class Encoder:
|
| 63 |
+
enc_hook: enc_hook_sig
|
| 64 |
+
decimal_format: Literal["string", "number"]
|
| 65 |
+
uuid_format: Literal["canonical", "hex", "bytes"]
|
| 66 |
+
order: Literal[None, "deterministic", "sorted"]
|
| 67 |
+
def __init__(
|
| 68 |
+
self,
|
| 69 |
+
*,
|
| 70 |
+
enc_hook: enc_hook_sig = None,
|
| 71 |
+
decimal_format: Literal["string", "number"] = "string",
|
| 72 |
+
uuid_format: Literal["canonical", "hex", "bytes"] = "canonical",
|
| 73 |
+
order: Literal[None, "deterministic", "sorted"] = None,
|
| 74 |
+
): ...
|
| 75 |
+
def encode(self, obj: Any, /) -> bytes: ...
|
| 76 |
+
def encode_into(
|
| 77 |
+
self, obj: Any, buffer: bytearray, offset: Optional[int] = 0, /
|
| 78 |
+
) -> None: ...
|
| 79 |
+
|
| 80 |
+
@overload
|
| 81 |
+
def decode(
|
| 82 |
+
buf: Buffer,
|
| 83 |
+
/,
|
| 84 |
+
*,
|
| 85 |
+
strict: bool = True,
|
| 86 |
+
dec_hook: dec_hook_sig = None,
|
| 87 |
+
ext_hook: ext_hook_sig = None,
|
| 88 |
+
) -> Any: ...
|
| 89 |
+
@overload
|
| 90 |
+
def decode(
|
| 91 |
+
buf: Buffer,
|
| 92 |
+
/,
|
| 93 |
+
*,
|
| 94 |
+
type: Type[T] = ...,
|
| 95 |
+
strict: bool = True,
|
| 96 |
+
dec_hook: dec_hook_sig = None,
|
| 97 |
+
ext_hook: ext_hook_sig = None,
|
| 98 |
+
) -> T: ...
|
| 99 |
+
@overload
|
| 100 |
+
def decode(
|
| 101 |
+
buf: Buffer,
|
| 102 |
+
/,
|
| 103 |
+
*,
|
| 104 |
+
type: Any = ...,
|
| 105 |
+
strict: bool = True,
|
| 106 |
+
dec_hook: dec_hook_sig = None,
|
| 107 |
+
ext_hook: ext_hook_sig = None,
|
| 108 |
+
) -> Any: ...
|
| 109 |
+
def encode(obj: Any, /, *, enc_hook: enc_hook_sig = None, order: Literal[None, "deterministic", "sorted"] = None) -> bytes: ...
|
lib/python3.13/site-packages/msgspec/py.typed
ADDED
|
File without changes
|
lib/python3.13/site-packages/msgspec/structs.py
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import Any
|
| 4 |
+
|
| 5 |
+
from . import NODEFAULT, Struct, field
|
| 6 |
+
from ._core import ( # noqa
|
| 7 |
+
Factory as _Factory,
|
| 8 |
+
StructConfig,
|
| 9 |
+
asdict,
|
| 10 |
+
astuple,
|
| 11 |
+
replace,
|
| 12 |
+
force_setattr,
|
| 13 |
+
)
|
| 14 |
+
from ._utils import get_class_annotations as _get_class_annotations
|
| 15 |
+
|
| 16 |
+
__all__ = (
|
| 17 |
+
"FieldInfo",
|
| 18 |
+
"StructConfig",
|
| 19 |
+
"asdict",
|
| 20 |
+
"astuple",
|
| 21 |
+
"fields",
|
| 22 |
+
"force_setattr",
|
| 23 |
+
"replace",
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def __dir__():
|
| 28 |
+
return __all__
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
class FieldInfo(Struct):
|
| 32 |
+
"""A record describing a field in a struct type.
|
| 33 |
+
|
| 34 |
+
Parameters
|
| 35 |
+
----------
|
| 36 |
+
name: str
|
| 37 |
+
The field name as seen by Python code (e.g. ``field_one``).
|
| 38 |
+
encode_name: str
|
| 39 |
+
The name used when encoding/decoding the field. This may differ if
|
| 40 |
+
the field is renamed (e.g. ``fieldOne``).
|
| 41 |
+
type: Any
|
| 42 |
+
The full field type annotation.
|
| 43 |
+
default: Any, optional
|
| 44 |
+
A default value for the field. Will be `NODEFAULT` if no default value
|
| 45 |
+
is set.
|
| 46 |
+
default_factory: Any, optional
|
| 47 |
+
A callable that creates a default value for the field. Will be
|
| 48 |
+
`NODEFAULT` if no ``default_factory`` is set.
|
| 49 |
+
"""
|
| 50 |
+
|
| 51 |
+
name: str
|
| 52 |
+
encode_name: str
|
| 53 |
+
type: Any
|
| 54 |
+
default: Any = field(default_factory=lambda: NODEFAULT)
|
| 55 |
+
default_factory: Any = field(default_factory=lambda: NODEFAULT)
|
| 56 |
+
|
| 57 |
+
@property
|
| 58 |
+
def required(self) -> bool:
|
| 59 |
+
"""A helper for checking whether a field is required"""
|
| 60 |
+
return self.default is NODEFAULT and self.default_factory is NODEFAULT
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def fields(type_or_instance: Struct | type[Struct]) -> tuple[FieldInfo]:
|
| 64 |
+
"""Get information about the fields in a Struct.
|
| 65 |
+
|
| 66 |
+
Parameters
|
| 67 |
+
----------
|
| 68 |
+
type_or_instance:
|
| 69 |
+
A struct type or instance.
|
| 70 |
+
|
| 71 |
+
Returns
|
| 72 |
+
-------
|
| 73 |
+
tuple[FieldInfo]
|
| 74 |
+
"""
|
| 75 |
+
if isinstance(type_or_instance, Struct):
|
| 76 |
+
annotated_cls = cls = type(type_or_instance)
|
| 77 |
+
else:
|
| 78 |
+
annotated_cls = type_or_instance
|
| 79 |
+
cls = getattr(type_or_instance, "__origin__", type_or_instance)
|
| 80 |
+
if not (isinstance(cls, type) and issubclass(cls, Struct)):
|
| 81 |
+
raise TypeError("Must be called with a struct type or instance")
|
| 82 |
+
|
| 83 |
+
hints = _get_class_annotations(annotated_cls)
|
| 84 |
+
npos = len(cls.__struct_fields__) - len(cls.__struct_defaults__)
|
| 85 |
+
fields = []
|
| 86 |
+
for name, encode_name, default_obj in zip(
|
| 87 |
+
cls.__struct_fields__,
|
| 88 |
+
cls.__struct_encode_fields__,
|
| 89 |
+
(NODEFAULT,) * npos + cls.__struct_defaults__,
|
| 90 |
+
):
|
| 91 |
+
default = default_factory = NODEFAULT
|
| 92 |
+
if isinstance(default_obj, _Factory):
|
| 93 |
+
default_factory = default_obj.factory
|
| 94 |
+
elif default_obj is not NODEFAULT:
|
| 95 |
+
default = default_obj
|
| 96 |
+
|
| 97 |
+
field = FieldInfo(
|
| 98 |
+
name=name,
|
| 99 |
+
encode_name=encode_name,
|
| 100 |
+
type=hints[name],
|
| 101 |
+
default=default,
|
| 102 |
+
default_factory=default_factory,
|
| 103 |
+
)
|
| 104 |
+
fields.append(field)
|
| 105 |
+
|
| 106 |
+
return tuple(fields)
|
lib/python3.13/site-packages/msgspec/toml.py
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import datetime as _datetime
|
| 4 |
+
from typing import TYPE_CHECKING, overload, TypeVar, Any
|
| 5 |
+
|
| 6 |
+
from . import (
|
| 7 |
+
DecodeError as _DecodeError,
|
| 8 |
+
convert as _convert,
|
| 9 |
+
to_builtins as _to_builtins,
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
if TYPE_CHECKING:
|
| 13 |
+
from typing import Callable, Optional, Type, Union, Literal
|
| 14 |
+
from typing_extensions import Buffer
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
__all__ = ("encode", "decode")
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def __dir__():
|
| 21 |
+
return __all__
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def _import_tomllib():
|
| 25 |
+
try:
|
| 26 |
+
import tomllib # type: ignore
|
| 27 |
+
|
| 28 |
+
return tomllib
|
| 29 |
+
except ImportError:
|
| 30 |
+
pass
|
| 31 |
+
|
| 32 |
+
try:
|
| 33 |
+
import tomli # type: ignore
|
| 34 |
+
|
| 35 |
+
return tomli
|
| 36 |
+
except ImportError:
|
| 37 |
+
raise ImportError(
|
| 38 |
+
"`msgspec.toml.decode` requires `tomli` be installed.\n\n"
|
| 39 |
+
"Please either `pip` or `conda` install it as follows:\n\n"
|
| 40 |
+
" $ python -m pip install tomli # using pip\n"
|
| 41 |
+
" $ conda install tomli # or using conda"
|
| 42 |
+
) from None
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def _import_tomli_w():
|
| 46 |
+
try:
|
| 47 |
+
import tomli_w # type: ignore
|
| 48 |
+
|
| 49 |
+
return tomli_w
|
| 50 |
+
except ImportError:
|
| 51 |
+
raise ImportError(
|
| 52 |
+
"`msgspec.toml.encode` requires `tomli_w` be installed.\n\n"
|
| 53 |
+
"Please either `pip` or `conda` install it as follows:\n\n"
|
| 54 |
+
" $ python -m pip install tomli_w # using pip\n"
|
| 55 |
+
" $ conda install tomli_w # or using conda"
|
| 56 |
+
) from None
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def encode(
|
| 60 |
+
obj: Any,
|
| 61 |
+
*,
|
| 62 |
+
enc_hook: Optional[Callable[[Any], Any]] = None,
|
| 63 |
+
order: Literal[None, "deterministic", "sorted"] = None,
|
| 64 |
+
) -> bytes:
|
| 65 |
+
"""Serialize an object as TOML.
|
| 66 |
+
|
| 67 |
+
Parameters
|
| 68 |
+
----------
|
| 69 |
+
obj : Any
|
| 70 |
+
The object to serialize.
|
| 71 |
+
enc_hook : callable, optional
|
| 72 |
+
A callable to call for objects that aren't supported msgspec types.
|
| 73 |
+
Takes the unsupported object and should return a supported object, or
|
| 74 |
+
raise a ``NotImplementedError`` if unsupported.
|
| 75 |
+
order : {None, 'deterministic', 'sorted'}, optional
|
| 76 |
+
The ordering to use when encoding unordered compound types.
|
| 77 |
+
|
| 78 |
+
- ``None``: All objects are encoded in the most efficient manner
|
| 79 |
+
matching their in-memory representations. The default.
|
| 80 |
+
- `'deterministic'`: Unordered collections (sets, dicts) are sorted to
|
| 81 |
+
ensure a consistent output between runs. Useful when
|
| 82 |
+
comparison/hashing of the encoded binary output is necessary.
|
| 83 |
+
- `'sorted'`: Like `'deterministic'`, but *all* object-like types
|
| 84 |
+
(structs, dataclasses, ...) are also sorted by field name before
|
| 85 |
+
encoding. This is slower than `'deterministic'`, but may produce more
|
| 86 |
+
human-readable output.
|
| 87 |
+
|
| 88 |
+
Returns
|
| 89 |
+
-------
|
| 90 |
+
data : bytes
|
| 91 |
+
The serialized object.
|
| 92 |
+
|
| 93 |
+
See Also
|
| 94 |
+
--------
|
| 95 |
+
decode
|
| 96 |
+
"""
|
| 97 |
+
toml = _import_tomli_w()
|
| 98 |
+
msg = _to_builtins(
|
| 99 |
+
obj,
|
| 100 |
+
builtin_types=(_datetime.datetime, _datetime.date, _datetime.time),
|
| 101 |
+
str_keys=True,
|
| 102 |
+
enc_hook=enc_hook,
|
| 103 |
+
order=order,
|
| 104 |
+
)
|
| 105 |
+
return toml.dumps(msg).encode("utf-8")
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
T = TypeVar("T")
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
@overload
|
| 112 |
+
def decode(
|
| 113 |
+
buf: Union[Buffer, str],
|
| 114 |
+
*,
|
| 115 |
+
strict: bool = True,
|
| 116 |
+
dec_hook: Optional[Callable[[type, Any], Any]] = None,
|
| 117 |
+
) -> Any:
|
| 118 |
+
pass
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
@overload
|
| 122 |
+
def decode(
|
| 123 |
+
buf: Union[Buffer, str],
|
| 124 |
+
*,
|
| 125 |
+
type: Type[T] = ...,
|
| 126 |
+
strict: bool = True,
|
| 127 |
+
dec_hook: Optional[Callable[[type, Any], Any]] = None,
|
| 128 |
+
) -> T:
|
| 129 |
+
pass
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
@overload
|
| 133 |
+
def decode(
|
| 134 |
+
buf: Union[Buffer, str],
|
| 135 |
+
*,
|
| 136 |
+
type: Any = ...,
|
| 137 |
+
strict: bool = True,
|
| 138 |
+
dec_hook: Optional[Callable[[type, Any], Any]] = None,
|
| 139 |
+
) -> Any:
|
| 140 |
+
pass
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
def decode(buf, *, type=Any, strict=True, dec_hook=None):
|
| 144 |
+
"""Deserialize an object from TOML.
|
| 145 |
+
|
| 146 |
+
Parameters
|
| 147 |
+
----------
|
| 148 |
+
buf : bytes-like or str
|
| 149 |
+
The message to decode.
|
| 150 |
+
type : type, optional
|
| 151 |
+
A Python type (in type annotation form) to decode the object as. If
|
| 152 |
+
provided, the message will be type checked and decoded as the specified
|
| 153 |
+
type. Defaults to `Any`, in which case the message will be decoded
|
| 154 |
+
using the default TOML types.
|
| 155 |
+
strict : bool, optional
|
| 156 |
+
Whether type coercion rules should be strict. Setting to False enables
|
| 157 |
+
a wider set of coercion rules from string to non-string types for all
|
| 158 |
+
values. Default is True.
|
| 159 |
+
dec_hook : callable, optional
|
| 160 |
+
An optional callback for handling decoding custom types. Should have
|
| 161 |
+
the signature ``dec_hook(type: Type, obj: Any) -> Any``, where ``type``
|
| 162 |
+
is the expected message type, and ``obj`` is the decoded representation
|
| 163 |
+
composed of only basic TOML types. This hook should transform ``obj``
|
| 164 |
+
into type ``type``, or raise a ``NotImplementedError`` if unsupported.
|
| 165 |
+
|
| 166 |
+
Returns
|
| 167 |
+
-------
|
| 168 |
+
obj : Any
|
| 169 |
+
The deserialized object.
|
| 170 |
+
|
| 171 |
+
See Also
|
| 172 |
+
--------
|
| 173 |
+
encode
|
| 174 |
+
"""
|
| 175 |
+
toml = _import_tomllib()
|
| 176 |
+
if isinstance(buf, str):
|
| 177 |
+
str_buf = buf
|
| 178 |
+
elif isinstance(buf, (bytes, bytearray)):
|
| 179 |
+
str_buf = buf.decode("utf-8")
|
| 180 |
+
else:
|
| 181 |
+
# call `memoryview` first, since `bytes(1)` is actually valid
|
| 182 |
+
str_buf = bytes(memoryview(buf)).decode("utf-8")
|
| 183 |
+
try:
|
| 184 |
+
obj = toml.loads(str_buf)
|
| 185 |
+
except toml.TOMLDecodeError as exc:
|
| 186 |
+
raise _DecodeError(str(exc)) from None
|
| 187 |
+
|
| 188 |
+
if type is Any:
|
| 189 |
+
return obj
|
| 190 |
+
return _convert(
|
| 191 |
+
obj,
|
| 192 |
+
type,
|
| 193 |
+
builtin_types=(_datetime.datetime, _datetime.date, _datetime.time),
|
| 194 |
+
str_keys=True,
|
| 195 |
+
strict=strict,
|
| 196 |
+
dec_hook=dec_hook,
|
| 197 |
+
)
|
lib/python3.13/site-packages/msgspec/yaml.py
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import datetime as _datetime
|
| 4 |
+
from typing import TYPE_CHECKING, overload, TypeVar, Any
|
| 5 |
+
|
| 6 |
+
from . import (
|
| 7 |
+
DecodeError as _DecodeError,
|
| 8 |
+
convert as _convert,
|
| 9 |
+
to_builtins as _to_builtins,
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
if TYPE_CHECKING:
|
| 13 |
+
from typing import Callable, Optional, Type, Union, Literal
|
| 14 |
+
from typing_extensions import Buffer
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
__all__ = ("encode", "decode")
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def __dir__():
|
| 21 |
+
return __all__
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def _import_pyyaml(name):
|
| 25 |
+
try:
|
| 26 |
+
import yaml # type: ignore
|
| 27 |
+
except ImportError:
|
| 28 |
+
raise ImportError(
|
| 29 |
+
f"`msgspec.yaml.{name}` requires PyYAML be installed.\n\n"
|
| 30 |
+
"Please either `pip` or `conda` install it as follows:\n\n"
|
| 31 |
+
" $ python -m pip install pyyaml # using pip\n"
|
| 32 |
+
" $ conda install pyyaml # or using conda"
|
| 33 |
+
) from None
|
| 34 |
+
else:
|
| 35 |
+
return yaml
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def encode(
|
| 39 |
+
obj: Any,
|
| 40 |
+
*,
|
| 41 |
+
enc_hook: Optional[Callable[[Any], Any]] = None,
|
| 42 |
+
order: Literal[None, "deterministic", "sorted"] = None,
|
| 43 |
+
) -> bytes:
|
| 44 |
+
"""Serialize an object as YAML.
|
| 45 |
+
|
| 46 |
+
Parameters
|
| 47 |
+
----------
|
| 48 |
+
obj : Any
|
| 49 |
+
The object to serialize.
|
| 50 |
+
enc_hook : callable, optional
|
| 51 |
+
A callable to call for objects that aren't supported msgspec types.
|
| 52 |
+
Takes the unsupported object and should return a supported object, or
|
| 53 |
+
raise a ``NotImplementedError`` if unsupported.
|
| 54 |
+
order : {None, 'deterministic', 'sorted'}, optional
|
| 55 |
+
The ordering to use when encoding unordered compound types.
|
| 56 |
+
|
| 57 |
+
- ``None``: All objects are encoded in the most efficient manner
|
| 58 |
+
matching their in-memory representations. The default.
|
| 59 |
+
- `'deterministic'`: Unordered collections (sets, dicts) are sorted to
|
| 60 |
+
ensure a consistent output between runs. Useful when
|
| 61 |
+
comparison/hashing of the encoded binary output is necessary.
|
| 62 |
+
- `'sorted'`: Like `'deterministic'`, but *all* object-like types
|
| 63 |
+
(structs, dataclasses, ...) are also sorted by field name before
|
| 64 |
+
encoding. This is slower than `'deterministic'`, but may produce more
|
| 65 |
+
human-readable output.
|
| 66 |
+
|
| 67 |
+
Returns
|
| 68 |
+
-------
|
| 69 |
+
data : bytes
|
| 70 |
+
The serialized object.
|
| 71 |
+
|
| 72 |
+
Notes
|
| 73 |
+
-----
|
| 74 |
+
This function requires that the third-party `PyYAML library
|
| 75 |
+
<https://pyyaml.org/>`_ is installed.
|
| 76 |
+
|
| 77 |
+
See Also
|
| 78 |
+
--------
|
| 79 |
+
decode
|
| 80 |
+
"""
|
| 81 |
+
yaml = _import_pyyaml("encode")
|
| 82 |
+
# Use the C extension if available
|
| 83 |
+
Dumper = getattr(yaml, "CSafeDumper", yaml.SafeDumper)
|
| 84 |
+
|
| 85 |
+
return yaml.dump_all(
|
| 86 |
+
[
|
| 87 |
+
_to_builtins(
|
| 88 |
+
obj,
|
| 89 |
+
builtin_types=(_datetime.datetime, _datetime.date),
|
| 90 |
+
enc_hook=enc_hook,
|
| 91 |
+
order=order,
|
| 92 |
+
)
|
| 93 |
+
],
|
| 94 |
+
encoding="utf-8",
|
| 95 |
+
Dumper=Dumper,
|
| 96 |
+
allow_unicode=True,
|
| 97 |
+
sort_keys=False,
|
| 98 |
+
)
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
T = TypeVar("T")
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
@overload
|
| 105 |
+
def decode(
|
| 106 |
+
buf: Union[Buffer, str],
|
| 107 |
+
*,
|
| 108 |
+
strict: bool = True,
|
| 109 |
+
dec_hook: Optional[Callable[[type, Any], Any]] = None,
|
| 110 |
+
) -> Any:
|
| 111 |
+
pass
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
@overload
|
| 115 |
+
def decode(
|
| 116 |
+
buf: Union[bytes, str],
|
| 117 |
+
*,
|
| 118 |
+
type: Type[T] = ...,
|
| 119 |
+
strict: bool = True,
|
| 120 |
+
dec_hook: Optional[Callable[[type, Any], Any]] = None,
|
| 121 |
+
) -> T:
|
| 122 |
+
pass
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
@overload
|
| 126 |
+
def decode(
|
| 127 |
+
buf: Union[bytes, str],
|
| 128 |
+
*,
|
| 129 |
+
type: Any = ...,
|
| 130 |
+
strict: bool = True,
|
| 131 |
+
dec_hook: Optional[Callable[[type, Any], Any]] = None,
|
| 132 |
+
) -> Any:
|
| 133 |
+
pass
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
def decode(buf, *, type=Any, strict=True, dec_hook=None):
|
| 137 |
+
"""Deserialize an object from YAML.
|
| 138 |
+
|
| 139 |
+
Parameters
|
| 140 |
+
----------
|
| 141 |
+
buf : bytes-like or str
|
| 142 |
+
The message to decode.
|
| 143 |
+
type : type, optional
|
| 144 |
+
A Python type (in type annotation form) to decode the object as. If
|
| 145 |
+
provided, the message will be type checked and decoded as the specified
|
| 146 |
+
type. Defaults to `Any`, in which case the message will be decoded
|
| 147 |
+
using the default YAML types.
|
| 148 |
+
strict : bool, optional
|
| 149 |
+
Whether type coercion rules should be strict. Setting to False enables
|
| 150 |
+
a wider set of coercion rules from string to non-string types for all
|
| 151 |
+
values. Default is True.
|
| 152 |
+
dec_hook : callable, optional
|
| 153 |
+
An optional callback for handling decoding custom types. Should have
|
| 154 |
+
the signature ``dec_hook(type: Type, obj: Any) -> Any``, where ``type``
|
| 155 |
+
is the expected message type, and ``obj`` is the decoded representation
|
| 156 |
+
composed of only basic YAML types. This hook should transform ``obj``
|
| 157 |
+
into type ``type``, or raise a ``NotImplementedError`` if unsupported.
|
| 158 |
+
|
| 159 |
+
Returns
|
| 160 |
+
-------
|
| 161 |
+
obj : Any
|
| 162 |
+
The deserialized object.
|
| 163 |
+
|
| 164 |
+
Notes
|
| 165 |
+
-----
|
| 166 |
+
This function requires that the third-party `PyYAML library
|
| 167 |
+
<https://pyyaml.org/>`_ is installed.
|
| 168 |
+
|
| 169 |
+
See Also
|
| 170 |
+
--------
|
| 171 |
+
encode
|
| 172 |
+
"""
|
| 173 |
+
yaml = _import_pyyaml("decode")
|
| 174 |
+
# Use the C extension if available
|
| 175 |
+
Loader = getattr(yaml, "CSafeLoader", yaml.SafeLoader)
|
| 176 |
+
if not isinstance(buf, (str, bytes)):
|
| 177 |
+
# call `memoryview` first, since `bytes(1)` is actually valid
|
| 178 |
+
buf = bytes(memoryview(buf))
|
| 179 |
+
try:
|
| 180 |
+
obj = yaml.load(buf, Loader)
|
| 181 |
+
except yaml.YAMLError as exc:
|
| 182 |
+
raise _DecodeError(str(exc)) from None
|
| 183 |
+
|
| 184 |
+
if type is Any:
|
| 185 |
+
return obj
|
| 186 |
+
return _convert(
|
| 187 |
+
obj,
|
| 188 |
+
type,
|
| 189 |
+
builtin_types=(_datetime.datetime, _datetime.date),
|
| 190 |
+
strict=strict,
|
| 191 |
+
dec_hook=dec_hook,
|
| 192 |
+
)
|
lib/python3.13/site-packages/numba-0.61.2.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
uv
|
lib/python3.13/site-packages/numba-0.61.2.dist-info/METADATA
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.4
|
| 2 |
+
Name: numba
|
| 3 |
+
Version: 0.61.2
|
| 4 |
+
Summary: compiling Python code using LLVM
|
| 5 |
+
Home-page: https://numba.pydata.org
|
| 6 |
+
License: BSD
|
| 7 |
+
Classifier: Development Status :: 4 - Beta
|
| 8 |
+
Classifier: Intended Audience :: Developers
|
| 9 |
+
Classifier: License :: OSI Approved :: BSD License
|
| 10 |
+
Classifier: Operating System :: OS Independent
|
| 11 |
+
Classifier: Programming Language :: Python
|
| 12 |
+
Classifier: Programming Language :: Python :: 3
|
| 13 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 14 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 15 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 16 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 17 |
+
Classifier: Topic :: Software Development :: Compilers
|
| 18 |
+
Requires-Python: >=3.10
|
| 19 |
+
License-File: LICENSE
|
| 20 |
+
License-File: LICENSES.third-party
|
| 21 |
+
Requires-Dist: llvmlite<0.45,>=0.44.0dev0
|
| 22 |
+
Requires-Dist: numpy<2.3,>=1.24
|
| 23 |
+
Dynamic: classifier
|
| 24 |
+
Dynamic: description
|
| 25 |
+
Dynamic: home-page
|
| 26 |
+
Dynamic: license
|
| 27 |
+
Dynamic: license-file
|
| 28 |
+
Dynamic: requires-dist
|
| 29 |
+
Dynamic: requires-python
|
| 30 |
+
Dynamic: summary
|
| 31 |
+
|
| 32 |
+
*****
|
| 33 |
+
Numba
|
| 34 |
+
*****
|
| 35 |
+
|
| 36 |
+
.. image:: https://badges.gitter.im/numba/numba.svg
|
| 37 |
+
:target: https://gitter.im/numba/numba?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
|
| 38 |
+
:alt: Gitter
|
| 39 |
+
|
| 40 |
+
.. image:: https://img.shields.io/badge/discuss-on%20discourse-blue
|
| 41 |
+
:target: https://numba.discourse.group/
|
| 42 |
+
:alt: Discourse
|
| 43 |
+
|
| 44 |
+
.. image:: https://zenodo.org/badge/3659275.svg
|
| 45 |
+
:target: https://zenodo.org/badge/latestdoi/3659275
|
| 46 |
+
:alt: Zenodo DOI
|
| 47 |
+
|
| 48 |
+
.. image:: https://img.shields.io/pypi/v/numba.svg
|
| 49 |
+
:target: https://pypi.python.org/pypi/numba/
|
| 50 |
+
:alt: PyPI
|
| 51 |
+
|
| 52 |
+
.. image:: https://dev.azure.com/numba/numba/_apis/build/status/numba.numba?branchName=main
|
| 53 |
+
:target: https://dev.azure.com/numba/numba/_build/latest?definitionId=1?branchName=main
|
| 54 |
+
:alt: Azure Pipelines
|
| 55 |
+
|
| 56 |
+
A Just-In-Time Compiler for Numerical Functions in Python
|
| 57 |
+
#########################################################
|
| 58 |
+
|
| 59 |
+
Numba is an open source, NumPy-aware optimizing compiler for Python sponsored
|
| 60 |
+
by Anaconda, Inc. It uses the LLVM compiler project to generate machine code
|
| 61 |
+
from Python syntax.
|
| 62 |
+
|
| 63 |
+
Numba can compile a large subset of numerically-focused Python, including many
|
| 64 |
+
NumPy functions. Additionally, Numba has support for automatic
|
| 65 |
+
parallelization of loops, generation of GPU-accelerated code, and creation of
|
| 66 |
+
ufuncs and C callbacks.
|
| 67 |
+
|
| 68 |
+
For more information about Numba, see the Numba homepage:
|
| 69 |
+
https://numba.pydata.org and the online documentation:
|
| 70 |
+
https://numba.readthedocs.io/en/stable/index.html
|
| 71 |
+
|
| 72 |
+
Installation
|
| 73 |
+
============
|
| 74 |
+
|
| 75 |
+
Please follow the instructions:
|
| 76 |
+
|
| 77 |
+
https://numba.readthedocs.io/en/stable/user/installing.html
|
| 78 |
+
|
| 79 |
+
Demo
|
| 80 |
+
====
|
| 81 |
+
|
| 82 |
+
Please have a look and the demo notebooks via the mybinder service:
|
| 83 |
+
|
| 84 |
+
https://mybinder.org/v2/gh/numba/numba-examples/master?filepath=notebooks
|
| 85 |
+
|
| 86 |
+
Contact
|
| 87 |
+
=======
|
| 88 |
+
|
| 89 |
+
Numba has a discourse forum for discussions:
|
| 90 |
+
|
| 91 |
+
* https://numba.discourse.group
|
| 92 |
+
|
lib/python3.13/site-packages/numba-0.61.2.dist-info/RECORD
ADDED
|
@@ -0,0 +1,824 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
../../../bin/numba,sha256=ZTY7LpNvvvliwUn7Z_suv0feXZiIifGp_UFry8NIxV0,223
|
| 2 |
+
numba-0.61.2.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
|
| 3 |
+
numba-0.61.2.dist-info/METADATA,sha256=1V2oaXBcgn0-MzY2_RUXBZIcocsmOQOBwTTS3fmkoWI,2838
|
| 4 |
+
numba-0.61.2.dist-info/RECORD,,
|
| 5 |
+
numba-0.61.2.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 6 |
+
numba-0.61.2.dist-info/WHEEL,sha256=nblTQT1blkV4AqHweFiF9VczUBStdpro9HYesm10meU,151
|
| 7 |
+
numba-0.61.2.dist-info/licenses/LICENSE,sha256=OnDgohytAxRyRvY2PQe_dvriFscneXB_SuXbBrys8Gc,1286
|
| 8 |
+
numba-0.61.2.dist-info/licenses/LICENSES.third-party,sha256=qdg_StDkoxTMfEeYhaLes_ajVqcWZqfbpxtmg1lgKEs,24767
|
| 9 |
+
numba-0.61.2.dist-info/top_level.txt,sha256=lAjxwBJKjiuhWb3Oxtg12KVAHFHBvynjw2CXL-a00Ig,6
|
| 10 |
+
numba/__init__.py,sha256=lZjrM6ztmH6cI0W8tVegdLkb06JIkXLjPfJ2QUP9-mQ,8607
|
| 11 |
+
numba/__main__.py,sha256=Mr67cF_MTaSs9gZGD7paaQFE8dq62dXt6ixEI0Fo7dM,152
|
| 12 |
+
numba/_arraystruct.h,sha256=SgoBWBXJODhp6giCY6b4joNSoF8TPQW_YB9-jsmkm-k,499
|
| 13 |
+
numba/_devicearray.cpython-313-x86_64-linux-gnu.so,sha256=cQN9vgvn2ciXKp43Z4CSCdulLblGUtstx_1uudHtX70,46904
|
| 14 |
+
numba/_devicearray.h,sha256=fnyiPxdF47Um9uiMEJL-1e8qg2ZdYMy6NHFifelktg4,666
|
| 15 |
+
numba/_dispatcher.cpython-313-x86_64-linux-gnu.so,sha256=AIQMMz8ujJiXHq3Kf-oHCMjriC8RORf5WVI-lBxEWDQ,505264
|
| 16 |
+
numba/_dynfunc.c,sha256=3sRnmMyA_IS7IKHGvkF9tsKvGTjdkzABGX4yj1bYE6M,19615
|
| 17 |
+
numba/_dynfunc.cpython-313-x86_64-linux-gnu.so,sha256=ZAzU9h4NjyhJtyGr37_QwUdMr-dK-rvHnRkxMMYTnEE,54056
|
| 18 |
+
numba/_dynfuncmod.c,sha256=xFiXbTRxFkU17_QPyOL2ybgDbMix5hKXM9Bic76BgSg,2635
|
| 19 |
+
numba/_hashtable.h,sha256=74Dqe0BcBgs7X9R1Msv5BJhbC4LCi_34mNoUiBP5nlo,4499
|
| 20 |
+
numba/_helperlib.c,sha256=308FYR7g1xBRznTiHEYp-8akmAVkgA3v1C43wmj_pxU,34855
|
| 21 |
+
numba/_helperlib.cpython-313-x86_64-linux-gnu.so,sha256=wEYjHdUYAkmr8D8U6lA2vGdsVBsavHzeVZXDtvVDzf4,811920
|
| 22 |
+
numba/_helpermod.c,sha256=aDfIUK7AzWQXc7nxcJkUnFwdTqUK6CZeOTucTzP2Kl8,7461
|
| 23 |
+
numba/_lapack.c,sha256=Xn8uUHFgWJk8eVilo1byHazu7fGTm7AqILxApoAlsNY,55086
|
| 24 |
+
numba/_numba_common.h,sha256=qcZMEJFdEH4y2BJ4f-FVV-gzoSV4BW-5xC-RaB_5e-w,1667
|
| 25 |
+
numba/_pymodule.h,sha256=b2ng0SLtGIvbLzZnxVFhs9UzWcFnqDkxJ3b7icsECUg,1268
|
| 26 |
+
numba/_random.c,sha256=xplDgTp5b_XC8SYgKSSdqx6HEdxfTJNv4f_EpSRcNOc,13152
|
| 27 |
+
numba/_typeof.h,sha256=TL7gz-3EUTlq5YAzNxpHFMNCXglo1witOJTIlr520s4,344
|
| 28 |
+
numba/_unicodetype_db.h,sha256=BK_cQfuPjJVk5hB8AZr7o0geNkHA7R1yDJvLw6HQtuI,248614
|
| 29 |
+
numba/_version.py,sha256=KL66YOdeFloWRAH-UdCmSp7bh9nGdLa5HwV7IH5CuYg,498
|
| 30 |
+
numba/capsulethunk.h,sha256=q1mCpzXEqBFZjtq_N_Cq8jEezFroB8Lgqaev_YhztIg,2553
|
| 31 |
+
numba/cext/__init__.py,sha256=ZGFuefIViSAZpwX2PlttNOSKuubZ9afqDDN_35SYE28,507
|
| 32 |
+
numba/cext/cext.h,sha256=mivAtJMQbz6WMrlkIcOQjlW6_LAsecplyH_4TWbCy-g,638
|
| 33 |
+
numba/cext/dictobject.c,sha256=zI0HZ1VhCwiqvYVLqso3xILVUEWQV3kqFeQDH0LwKhM,38175
|
| 34 |
+
numba/cext/dictobject.h,sha256=AEY_44GaiJsTyTHkZqG2JGiVoFOpNpMB94ZSD2nJ8fA,5980
|
| 35 |
+
numba/cext/listobject.c,sha256=h1v1VGs4td4-1XQL7pb5TNAo9-tEntYgAjrFKIG6WHY,31928
|
| 36 |
+
numba/cext/listobject.h,sha256=S2605_HlvaK03buI-SFTjEl4OqZvd93-kvOVxudrZxE,4125
|
| 37 |
+
numba/cext/utils.c,sha256=FW9zwCwlZIQcge2d7KQlsFU2k6EcfcrY-rhn9x71vx0,201
|
| 38 |
+
numba/cloudpickle/__init__.py,sha256=vb2JCOn1EpLUdVyPe1ESyhLymcvh-Rk3ISHJ-52aDLw,308
|
| 39 |
+
numba/cloudpickle/cloudpickle.py,sha256=r6fexaim62xqpJXtkpKmVcUod-d3s9ihaRBdoA58GjM,55920
|
| 40 |
+
numba/cloudpickle/cloudpickle_fast.py,sha256=1GqUD4nLKsv0vv9ty2La3eVLyeWNrPFlhUCN-aNI-30,322
|
| 41 |
+
numba/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 42 |
+
numba/core/analysis.py,sha256=WUuo8Fez3856YxXhNophQYlegY1tHAi74GLYcr7FcW0,28317
|
| 43 |
+
numba/core/annotations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 44 |
+
numba/core/annotations/pretty_annotate.py,sha256=_RiqUaNuc7cQwYit7z5NpvdxzYe5mPzNVjybXyhqVfM,9540
|
| 45 |
+
numba/core/annotations/template.html,sha256=nU0wqR4YNRTGVTc-9JgpQvwMW9IFb4F-0GS17vvfdiQ,3464
|
| 46 |
+
numba/core/annotations/type_annotations.py,sha256=O5j1DM5JZ-2BpTOP8CqI-D3O5tY0naog3-Xl7xBG4vE,11184
|
| 47 |
+
numba/core/base.py,sha256=cKSN7uub3fLeC7YilyJDt70Jln8H4ov3ve4OuhUsTNo,45514
|
| 48 |
+
numba/core/boxing.py,sha256=fhUz2REFdHowwl0p0-6sGrVLNCkiI-3pM8MA25WosUo,393
|
| 49 |
+
numba/core/bytecode.py,sha256=i5jekhFdPYV_HKfcOUl_NW3x7YEg6y8rbVWr2x_35g4,24428
|
| 50 |
+
numba/core/byteflow.py,sha256=af2m9KteTwHdnzDsXbXmxno7582ErY-SFRtm1PY9_zc,72769
|
| 51 |
+
numba/core/caching.py,sha256=s9sx2Grxh5FKmrrkfqLKl8-hsDtO3RMoOVvlZVCZbZ4,25101
|
| 52 |
+
numba/core/callconv.py,sha256=qrCt6ct27WCtbwJgIZIa-kY2HYtqbFWnRWXTmG_r3FA,37439
|
| 53 |
+
numba/core/callwrapper.py,sha256=RxaV-p8315st3H5TfaAGidjvo8H04Lf1PSgtZlOSRAw,8450
|
| 54 |
+
numba/core/ccallback.py,sha256=jfxSEbMKmbKVZfz3DC5S7p2oPnV3y3Oj8svwlP9SElQ,4312
|
| 55 |
+
numba/core/cgutils.py,sha256=3G5vmPfiIGM7AqsVZwk6Hw5b73HQl45ui9EGokKFLmg,39175
|
| 56 |
+
numba/core/codegen.py,sha256=2ENFuaNy_xswHyIwMrt6gN5pRIsXvObzfqprcCqmvNE,55937
|
| 57 |
+
numba/core/compiler.py,sha256=qC867N-qi3iaeCI-CEkdxzrsOrjwD_TP-dN3bkzzEpQ,27864
|
| 58 |
+
numba/core/compiler_lock.py,sha256=CM8ONwrW9UGLT_uQ3xpG5huU-M3XRAYA32hCLNnuTTQ,1521
|
| 59 |
+
numba/core/compiler_machinery.py,sha256=PP3iSI9SB7wz_4VhZaEiG8c3ezALMtgiuCsfNHIb4sA,14381
|
| 60 |
+
numba/core/config.py,sha256=DnD5DaeFISXEHUUXU6iR2wnIDUCTYg6ftPkxJVnTiUg,22580
|
| 61 |
+
numba/core/consts.py,sha256=lkwM0wNPw9rjv9rcFsDufZESSo4fC0yeszec92O96ys,4501
|
| 62 |
+
numba/core/controlflow.py,sha256=HQVTTUj54rHLCcr0VfsR9T0gole0Un1iy-IG-sv7Oqw,31175
|
| 63 |
+
numba/core/cpu.py,sha256=WSHcPek-8zCpvCsY5l6GFf1zO7V85CE7cbB-JxJrMKY,12200
|
| 64 |
+
numba/core/cpu_options.py,sha256=Bb2cZNivUKBFRvW2KEifRvDk_bGdGm8FiJcz0XiWpsA,5512
|
| 65 |
+
numba/core/datamodel/__init__.py,sha256=uEqJC_eaDkBhrb1NZzU76hn5Zv5vtsPNxxic-wLd05E,225
|
| 66 |
+
numba/core/datamodel/manager.py,sha256=OFSk3zpXbt0rOTHCEudW30cwn90uqhAIShd65n8Wa2M,2155
|
| 67 |
+
numba/core/datamodel/models.py,sha256=2sAhRRHMQf26fpGzC6smaItExr-zjqVs2Dqodbibiek,360
|
| 68 |
+
numba/core/datamodel/new_models.py,sha256=KzO7F7lUAjnlpXhZMKIu6Rtj0NVZ2t2SoYG6vBwHFag,44845
|
| 69 |
+
numba/core/datamodel/old_models.py,sha256=KxsP8ymKktbMeOOZJv9SPtx7cOyOgXGn_JIGho2VerY,44497
|
| 70 |
+
numba/core/datamodel/packer.py,sha256=PK-fWl1nBm2BpJwd7PMswTYACgWm41bHhkVh9CNTgBw,6645
|
| 71 |
+
numba/core/datamodel/registry.py,sha256=uEJyukeEvGfyIovLfBO3Rr6maqLWhgK9msD1hg7fKmg,416
|
| 72 |
+
numba/core/datamodel/testing.py,sha256=f31La03lzPAPGPF-OE-VaV-rLv0h-BT9rmRFElEDIco,5346
|
| 73 |
+
numba/core/debuginfo.py,sha256=7UGcm8gFOMbO5wXWQjL9aWNdx-6_XPaxk_ANFhsKElg,17525
|
| 74 |
+
numba/core/decorators.py,sha256=GIXTHwL1BJQF50k61V1FX3I7oLDAhNMeGPoP5VGTEm8,11206
|
| 75 |
+
numba/core/descriptors.py,sha256=pYBrPowcj7MJob32fdZZ2WrmL4NWr69GPBsl0_QaqIA,345
|
| 76 |
+
numba/core/dispatcher.py,sha256=ibOCBuMlXrCFn8wF3Ims7wdMyx-n0-EDS_fBA8fx69c,51733
|
| 77 |
+
numba/core/entrypoints.py,sha256=eZkSqheZj4WuTVy0cjApQCQXs9rOxoNGXZ3PcuxDiGU,1615
|
| 78 |
+
numba/core/environment.py,sha256=wCydbj-gUqqy0Ql_RFmHBazk7Wb722qa71SIQRRve1c,1639
|
| 79 |
+
numba/core/errors.py,sha256=f55avuy5p7afjouhaRVLFVQ7nZr3kNAMBy52sG_EuPM,24987
|
| 80 |
+
numba/core/event.py,sha256=q4eNSV-FMnlL_jbzm51sTiVqu2acj6e74qiPBtC0ong,12095
|
| 81 |
+
numba/core/extending.py,sha256=5jj8CX2blZ7vH-iInDKrThXwmhjJhUgiZ4JrGOBDgLg,19581
|
| 82 |
+
numba/core/externals.py,sha256=Dwxc71cCdcizy-_TZRR849eDMzNOXa1Y_KSZ8tUoCVI,4851
|
| 83 |
+
numba/core/fastmathpass.py,sha256=0HQfDhMmdjKG-tTiqeoYoUtDDP6CZIEPF7pGZnbDIRc,1211
|
| 84 |
+
numba/core/funcdesc.py,sha256=1VX9EhGiUTxD8ixQhC6GlXOzj9HxEpsYhf_RxLyeOR8,8273
|
| 85 |
+
numba/core/generators.py,sha256=KsHYH7fC6mKrYNMFHZ4hekK8gQN0W_442QECsIOe3lU,14176
|
| 86 |
+
numba/core/imputils.py,sha256=Iuh0GphkXwaA3Fg71XmsQaMlQoeiYx0LovWlyNeFR-8,14889
|
| 87 |
+
numba/core/inline_closurecall.py,sha256=ZoGeN4_30n_s0354csEMiwzBXe8NW2LN9izpvH1BYUg,72127
|
| 88 |
+
numba/core/interpreter.py,sha256=0bCkNGCd_skiop3svvVSX7RflfUfG2Ju4CptNAyOeVo,137522
|
| 89 |
+
numba/core/intrinsics.py,sha256=IZqjKTPQ_74XdNGt3-WurTKTfgEhGVkfhPSwdv0EpSA,2008
|
| 90 |
+
numba/core/ir.py,sha256=5sgGHOy2XmgWjT7xPNLARsiTnee3Hy5xbPhUyHV_Gmk,52254
|
| 91 |
+
numba/core/ir_utils.py,sha256=usTx6j_XOyty0A6xraoowHr22Mu0JKxV4jYXgn-aASw,94990
|
| 92 |
+
numba/core/itanium_mangler.py,sha256=k5y_dq72XKaOWCmIBzxajyDgcs63f0ufxCkbelDWDOo,6722
|
| 93 |
+
numba/core/llvm_bindings.py,sha256=WbDEV7F3oyvYqucqa04pcGSz-hkXPyNPA3KJf4Ljv84,1177
|
| 94 |
+
numba/core/lowering.py,sha256=u_S2fCkFZY1_ye0U5Q2F8csR8-KsM-jr_Gn6zTjk6JM,67011
|
| 95 |
+
numba/core/new_boxing.py,sha256=Om9GMhScL1ixWvKBf5QF-CmXmiHOJnqiI7QgSj3IDHI,49438
|
| 96 |
+
numba/core/object_mode_passes.py,sha256=XeRInu0p6iWhfthmFd40wDcqjvM9AGcd6SpE-dzS6Vw,5869
|
| 97 |
+
numba/core/old_boxing.py,sha256=bLqLDRYC4ufHVyG_R5X3kAEs-ulDDuwuIrVqDzn9BXI,47236
|
| 98 |
+
numba/core/optional.py,sha256=5g0Bgn4pB09yyVOP5X973f-RpVrKA1Y3l40PlJX6gd4,4182
|
| 99 |
+
numba/core/options.py,sha256=QISFK5LSWEBZkl6EpOa7rWStaKrChgZx39xtskvHoEQ,2999
|
| 100 |
+
numba/core/postproc.py,sha256=2DWTz4PvcPQQTj7y_L30ij1sII3OKt0l0K_azsFGLFM,9318
|
| 101 |
+
numba/core/pylowering.py,sha256=OJMzHwCusj0Fa-qIR94bNVSuIJTcL5youagB6yRl8a4,24891
|
| 102 |
+
numba/core/pythonapi.py,sha256=y8BTED44HqbAbFttXsRorApMGoEhgGS3cpvpUsn8Kk0,69621
|
| 103 |
+
numba/core/registry.py,sha256=H0eAEHnO392xVxYpJ65gnmWsppVC_L8aCV_aDnDYl10,2625
|
| 104 |
+
numba/core/removerefctpass.py,sha256=WBbqRQ5rQYXi0SK5sytOvMHzM7AY2qw6FJYC7f0zQ6E,3398
|
| 105 |
+
numba/core/rewrites/__init__.py,sha256=nYQr5fLoOWzeeWbP8AeQnWij9nAoAMkFG-B6gjJ7d7E,284
|
| 106 |
+
numba/core/rewrites/ir_print.py,sha256=TXGMw9NziDSAYxc3SguhdIU7Pn6NQP9X5umlAvlm14U,2969
|
| 107 |
+
numba/core/rewrites/registry.py,sha256=0vubYnbutEygNYiNEbvm-Mf9mP977giP83QHBiSeKBA,3651
|
| 108 |
+
numba/core/rewrites/static_binop.py,sha256=beLhF0A5FyoDKKS84jsNvMOgQAFeEWckm6z-rrI-8Bw,1146
|
| 109 |
+
numba/core/rewrites/static_getitem.py,sha256=OmYFspFKSSk63fVwV2Oj8Wu4ZhVRt0rQR_E-rg_V3ZM,6624
|
| 110 |
+
numba/core/rewrites/static_raise.py,sha256=aBHSyB_Djac-T2gN44aiTwBKCIDVb9h_Mv12qQF62zY,3576
|
| 111 |
+
numba/core/runtime/__init__.py,sha256=g0oEnSA15s0XLF7kuPp_U7pw5KUcnZjcDdF0gD51rIM,23
|
| 112 |
+
numba/core/runtime/_nrt_python.c,sha256=wQN78ajJFcmCqrr-0LdDis1xgN51gdOqoAQ3fcanRpk,14939
|
| 113 |
+
numba/core/runtime/_nrt_python.cpython-313-x86_64-linux-gnu.so,sha256=i-voHSMdPJoKG_VnHSFHtUF1Zjb93WNzDwwqQhqpgyc,196224
|
| 114 |
+
numba/core/runtime/_nrt_pythonmod.c,sha256=Gk3pLk3R96W5gHumuJ1eg2N-eXeNOlrsWPNbtQMBht0,6095
|
| 115 |
+
numba/core/runtime/context.py,sha256=ONphIGatCFTKZKw93bhI3gEGlsS3anG7gNow2vZgk3o,15944
|
| 116 |
+
numba/core/runtime/nrt.cpp,sha256=6HoAZuhcuagbBJXvZP2A8o522kYZGhwcG8NZfI2CP_0,18525
|
| 117 |
+
numba/core/runtime/nrt.h,sha256=JJzmIotXg2otcSudPYPud6Wsl6fbJdSX_7M2rGJ0rH0,6453
|
| 118 |
+
numba/core/runtime/nrt.py,sha256=vwfYk5NSKCqbTDX7ylE5_6P53Zjo7Zl7R_i2v1JVMCY,4071
|
| 119 |
+
numba/core/runtime/nrt_external.h,sha256=q2IkdHTFlV34qrQlkOL1BJrosG-4a10vxBDcyQR_iHg,1865
|
| 120 |
+
numba/core/runtime/nrtdynmod.py,sha256=zEw65U8Kz9bA1MDC1Nsp84xA6zTxjkRXZS31s_HRdQE,7490
|
| 121 |
+
numba/core/runtime/nrtopt.py,sha256=OUuVG7DznCbJI6Xhwn3fLCucEbZ6nhimogNzduEQYho,5834
|
| 122 |
+
numba/core/serialize.py,sha256=Gzh0soJm8G7C_FvpL-7dj6ydXGQPnbrcVxtViV2QPts,6272
|
| 123 |
+
numba/core/sigutils.py,sha256=KpoyuVJ5RGgtyMK2cgzmN0P3pU39zU1M-NbxSai90d4,1613
|
| 124 |
+
numba/core/ssa.py,sha256=0grM2SdX_vZjpD540O6I_gHZMzN57aRjyeFfDneF5JA,16546
|
| 125 |
+
numba/core/target_extension.py,sha256=CJlJ3nb3YlIYybujExLTEFT2cO5kItqIay5Qgc6Sm3s,4606
|
| 126 |
+
numba/core/targetconfig.py,sha256=TOH0CFU0XkiPuhEoVRrXTPTPnTi9FCSC-3wYurVjB18,9817
|
| 127 |
+
numba/core/tracing.py,sha256=O-eQay_IuutIjEx7PMKabLyuVpT0oMgy99e57ALqqSk,6901
|
| 128 |
+
numba/core/transforms.py,sha256=C6jHD3tysfhRB0n9a2wDIZh9tQfjW5d0Qa-o-cUg81g,31771
|
| 129 |
+
numba/core/typeconv/__init__.py,sha256=KrF14DtWGRNjGJwRsBVGcsCNWEBQ6PqLg5o_6sJSTEM,34
|
| 130 |
+
numba/core/typeconv/_typeconv.cpython-313-x86_64-linux-gnu.so,sha256=htHcuTlu41Vn5Z93saC2oFsVtgQAlmpZXVOChxaGlTs,139240
|
| 131 |
+
numba/core/typeconv/castgraph.py,sha256=jSG30D_rPtiUZuQFFnlCG4N3VG-7pmMwmrtNVI0NS2A,4075
|
| 132 |
+
numba/core/typeconv/rules.py,sha256=-UiVALjcbWftHB0_SwhAlttqZqNGbUcZJnw3KK598JE,2353
|
| 133 |
+
numba/core/typeconv/typeconv.py,sha256=unUXurghuhnWA2pA-6CA1m_a6qVOmAj6_wopk6iuLv0,4369
|
| 134 |
+
numba/core/typed_passes.py,sha256=I9AgISBV1iQzVX0Osq0lBV5jtOvyzSAhgU4Nl9hUDyM,38624
|
| 135 |
+
numba/core/typeinfer.py,sha256=PiZflCE2X2m4-GyJriUTNpaDO2juf4lxPIfg-omB1pU,71283
|
| 136 |
+
numba/core/types/__init__.py,sha256=te_BimK8ap8ISOJtH_W8OAMPSRpAb6Z-LZTkCi_cXCQ,10418
|
| 137 |
+
numba/core/types/__init__.pyi,sha256=IfSSUu8RZKujhXcGhZ2pM-AYOsug_hZbZpw_Bf1ggms,5679
|
| 138 |
+
numba/core/types/abstract.py,sha256=6izEJB0LuQcn1OomxPkENqiiOt0E4L8N6P6G0lo-GaE,15172
|
| 139 |
+
numba/core/types/common.py,sha256=lcBWBAXAxtVs81G4cLzjNoXnSuvhd5newMwrJLuKxQw,3022
|
| 140 |
+
numba/core/types/containers.py,sha256=zrzAQNsDW_oXgYliojfmVaRI2WHvFazDviBFPFcnEsw,27998
|
| 141 |
+
numba/core/types/function_type.py,sha256=wWskEdTuvm287ZZwRdvff7dQ4yZAGVDBmANPIlWnf3Y,6551
|
| 142 |
+
numba/core/types/functions.py,sha256=7AXMlfIGv3opwg0OuK3bojN0e_3PVzB-QRZSvh0KSgk,26938
|
| 143 |
+
numba/core/types/iterators.py,sha256=Byq2QyPRSTL_Z-xeUJKljd3anzDny8CN1TEp-YmqISw,3534
|
| 144 |
+
numba/core/types/misc.py,sha256=NcljFVerH2tvV-o2n0uWM0d53Tp91Wp3BWXmBPGgISk,14609
|
| 145 |
+
numba/core/types/new_scalars/__init__.py,sha256=PNNiWfnO-lFEHVA5Nl_tgGQWn7w_HWBuls8pNCQ1noQ,775
|
| 146 |
+
numba/core/types/new_scalars/machine_types.py,sha256=wYmfqP1q0fYG03IXRh-3Q-xTOdWnG1zFOeV3Z47m6Ng,3635
|
| 147 |
+
numba/core/types/new_scalars/numpy_types.py,sha256=7icXUKUujP30soyxOSKeHk95Gz-d303svxZqiFgFBl0,4221
|
| 148 |
+
numba/core/types/new_scalars/python_types.py,sha256=R3bkM9rN36LuDsbX68qgJbJuhTmxFI9TcQU5RKPx1hU,3742
|
| 149 |
+
numba/core/types/new_scalars/scalars.py,sha256=wm4gGEn8RKqlOR5jBGw2UFR0H3UHs7ZYom-dQJR0MJ8,3858
|
| 150 |
+
numba/core/types/npytypes.py,sha256=Dko5LsKPeqyD-AXg0yKj_unnBOPPCDjaCf1DtOZPMsA,20597
|
| 151 |
+
numba/core/types/old_scalars.py,sha256=8nYY97-8HXWjX3ZsKR7PU_bfILwhJE5aGVmgpz9LSMU,7225
|
| 152 |
+
numba/core/types/scalars.py,sha256=Q84ff0e35ZMskLMgDbuQvAeymO5GX5TnvHwkxmp9Dis,354
|
| 153 |
+
numba/core/typing/__init__.py,sha256=FD8n9EBp1Dd65qpibBRAYoGMkRy-U1snNitmaSceyLE,152
|
| 154 |
+
numba/core/typing/arraydecl.py,sha256=bFeyDlDyLgVBtjsKVGhL241JjwgY7pAHliR15B35JI0,31758
|
| 155 |
+
numba/core/typing/asnumbatype.py,sha256=67welqrrQN_dErvwWB-jUOJMmjqdFMf6WQcGSL9Dd68,4482
|
| 156 |
+
numba/core/typing/bufproto.py,sha256=zVIp31qMyQdcKftYwZMomQX2mrUm8JlOypGKR73jnOc,2206
|
| 157 |
+
numba/core/typing/builtins.py,sha256=rfwnSTqOoz-M1Da9Neyc1mHE-qGTqBvDN6IutTB4Jqk,359
|
| 158 |
+
numba/core/typing/cffi_utils.py,sha256=PyXrHNzWAC_7ED1pjMiF6mYk8uSce_dzehqaHDAji24,7949
|
| 159 |
+
numba/core/typing/cmathdecl.py,sha256=_DnSUWl3mp9NzBZGwfT0PtwgQD8I_5OtUpDpBhonwmA,361
|
| 160 |
+
numba/core/typing/collections.py,sha256=WDhsPKYV7QUd5ACfEd8zJphvCyPLSj8eb66EhFGFNbg,4025
|
| 161 |
+
numba/core/typing/context.py,sha256=mpTlVzd95Oa2MvsB0gz_NGalZ1DAaI46N73DAbNowkg,25883
|
| 162 |
+
numba/core/typing/ctypes_utils.py,sha256=40do9Sx-Rm_HZ3lBQ3ZjIzpnh3ycndO2n7N1tTZ1k_o,4282
|
| 163 |
+
numba/core/typing/dictdecl.py,sha256=-rFhnPbP140Sy_iaJufIP5gtE8Hd61rzoHNb5lKbDZk,1872
|
| 164 |
+
numba/core/typing/enumdecl.py,sha256=W9ugyhgCumA6WLM8HG9nKndU55sYal6KB28Afa47O-A,1503
|
| 165 |
+
numba/core/typing/listdecl.py,sha256=mYRdzNLhAXScEj8-ldr8xSzA1rsmmY27-SonQOJTH3Y,4494
|
| 166 |
+
numba/core/typing/mathdecl.py,sha256=wrdYOgW1M97hrKwBKON_VH1bwx6qtIfpSSVRhayR5Cw,359
|
| 167 |
+
numba/core/typing/new_builtins.py,sha256=WIi-EJLqAdhudnNmb1F0SfcXzoMT1qYTrLyG9bUJBOc,34467
|
| 168 |
+
numba/core/typing/new_cmathdecl.py,sha256=ZSkG48kPVVb3dyRKrWHxLPchwpdVFIHzsn_vJbqCVH0,1200
|
| 169 |
+
numba/core/typing/new_mathdecl.py,sha256=kgHWae3pJ_Zakr3YrJgNASZvBoMYYg3yKrkTYlVblKg,2222
|
| 170 |
+
numba/core/typing/npdatetime.py,sha256=anqxajPR4i3q_8GnSiG_7Y-CnGzLLn5ieiFFk6h-H-0,9202
|
| 171 |
+
numba/core/typing/npydecl.py,sha256=mwOsN7x6UjZPAdcFPcBvPfsLnMRbTVgCmu1dNPZ2b8Y,25890
|
| 172 |
+
numba/core/typing/old_builtins.py,sha256=p6rQWaeIRvDJm0nPjN0SN_ijnYHNjDYAb-WIYMkX_bc,34864
|
| 173 |
+
numba/core/typing/old_cmathdecl.py,sha256=J7F_fnavUrRcuwgVNt4XrsoojCBZ_K-CNryk_3JY5eo,1202
|
| 174 |
+
numba/core/typing/old_mathdecl.py,sha256=aSLyj4ZFC3SmkjfD_58koL9SxtuA7VAdbvwLeqcHGXc,4393
|
| 175 |
+
numba/core/typing/setdecl.py,sha256=YugeSIfastKRzE5N098jUBDeEscYiKxCrr69_cDYd9g,3209
|
| 176 |
+
numba/core/typing/templates.py,sha256=dhpwzt2Iq1CxbWF0Ig_1HLq4VGLxWb_VlbL77DzNSvE,49841
|
| 177 |
+
numba/core/typing/typeof.py,sha256=u2DdOBY38ju7skXkVMVHlTfAgG9biiKlzM0bhxFE7Lw,8190
|
| 178 |
+
numba/core/unsafe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 179 |
+
numba/core/unsafe/bytes.py,sha256=2X-_9etm5LeGkKOgOR9T5CezCydxZtDstHNookgOfoA,1720
|
| 180 |
+
numba/core/unsafe/eh.py,sha256=fDSxnbGv5xTjGk8dj0M4hiJoySxbUNdKEhIVCOUiK5c,1621
|
| 181 |
+
numba/core/unsafe/nrt.py,sha256=3voPFKB8jZdLq8bm05_USvS6xhBerF6G7sz8uC3CHxE,468
|
| 182 |
+
numba/core/unsafe/refcount.py,sha256=hYVRt3Aw2iaXX_rvB1a1tYMW-9YtFi3G5Dvx3SN2n3s,2704
|
| 183 |
+
numba/core/untyped_passes.py,sha256=6JwoTnyk8Fy4Pg53GxYfm9YfyML_1whDn3ckjmLm_Vw,74778
|
| 184 |
+
numba/core/utils.py,sha256=J_V_hlSxLlJoeli-6tuxx2p5qBz17ke4eo1HrKQPXp0,22200
|
| 185 |
+
numba/core/withcontexts.py,sha256=_zHSMfOYY43_-dYyZ-WXd257SrsV4asEq2H5t0BNAuo,19034
|
| 186 |
+
numba/cpython/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 187 |
+
numba/cpython/builtins.py,sha256=miK_eUabOHHlWBbu8ahNp9gLilHBejQzqUHEAJfqHs8,403
|
| 188 |
+
numba/cpython/charseq.py,sha256=xprjzAQ2QaMhKmiuPvwDi6Mtm-ECn0boxT3inGGBqso,34876
|
| 189 |
+
numba/cpython/cmathimpl.py,sha256=FtDWq6PtOUTZMZ4k0K0JOgmEpUZk0wM2G0-aRBTL2ME,17607
|
| 190 |
+
numba/cpython/enumimpl.py,sha256=nGDz9MdYT0Zmy2En_VoyT5Aq_9-0mV1qNl1MdzbNwIw,2906
|
| 191 |
+
numba/cpython/hashing.py,sha256=qt5IPK2cnOPaYWhwaGVv1tMZTHDYPjrftXPeCEmJcAU,401
|
| 192 |
+
numba/cpython/heapq.py,sha256=v4AIbYVfPkAcqjcxN1r9RyIOIyqeek4UzOiOJftUYqw,6185
|
| 193 |
+
numba/cpython/iterators.py,sha256=jVWfyzonVMfAM4tvctuXFQDceCzuNWs5Qm2b-EaRPLo,4879
|
| 194 |
+
numba/cpython/listobj.py,sha256=ffPRQclTJa12DI0y8E3r2UytWDuwOYxRROwOma0KLeM,42953
|
| 195 |
+
numba/cpython/mathimpl.py,sha256=fC2elhQmdXQ6Dkt08IAc9enD8o3Mi_CN1L3OLDXNUmw,403
|
| 196 |
+
numba/cpython/new_builtins.py,sha256=dOQAJwa_JVc42Wvk09MNcJDL4zK_G1A4tzfWqTZtKYo,36214
|
| 197 |
+
numba/cpython/new_hashing.py,sha256=04pgO2pwZC-vgfUXEZiHoWyTNNAFqIUEgU_dECJSnEo,27269
|
| 198 |
+
numba/cpython/new_mathimpl.py,sha256=R6OS20bpz1dEuCH_3I220FrxCGFvmY3NtXSBDwKvqL8,16139
|
| 199 |
+
numba/cpython/new_numbers.py,sha256=z0xPBjKbfMMnCwPxkFZMeHQQIvkY7v2WUVhjrLBJxkY,50121
|
| 200 |
+
numba/cpython/new_tupleobj.py,sha256=6Grugb03mT718jcozmhH95YpatAaHIBZ3vbQcEsgjhQ,17001
|
| 201 |
+
numba/cpython/numbers.py,sha256=1yXT3hnWsxvtQwu8E4JkbLZfTuIZrPBB9IXskoAdFKA,401
|
| 202 |
+
numba/cpython/old_builtins.py,sha256=NiB5aKwgigRaVrtvqASmXJgw1z0NYIwi8FFWvZXf9vM,36165
|
| 203 |
+
numba/cpython/old_hashing.py,sha256=Jf0uvGv3-envazAV96ury6Rv1l2jKppX4ZGlpHlWrM4,27042
|
| 204 |
+
numba/cpython/old_mathimpl.py,sha256=5Q9nZLY1LwnSNBb3UBsU5JtcdcqPBOV6YPByChqVOaE,16111
|
| 205 |
+
numba/cpython/old_numbers.py,sha256=mXvK0Z43f1tuppj1jz8kDuBX3r8cxOfwx8NIJfm7LJQ,50138
|
| 206 |
+
numba/cpython/old_tupleobj.py,sha256=PJnDm23QFGHdQvtP8IvM0gdYElsX80WcvRK2zr0qDJc,16858
|
| 207 |
+
numba/cpython/printimpl.py,sha256=b3_D82zXQUyZHv6UubXlF_cXY6jp6HhbELpBk05xp4w,2482
|
| 208 |
+
numba/cpython/randomimpl.py,sha256=-7Cky4MEfkjb8E59U6TLm5NEYHQdJ8CeQ5_tS6hnl3k,81584
|
| 209 |
+
numba/cpython/rangeobj.py,sha256=yPtwzScgatNzZ3BM7oowPxNfvZrBlG7EXtysqUAkJ0E,8814
|
| 210 |
+
numba/cpython/setobj.py,sha256=Wo4TmkOfyaV2NfBYMMxhAGK3L4ZWTMMjYKEf_Xmo1BE,57246
|
| 211 |
+
numba/cpython/slicing.py,sha256=BJIh9WSWE5hksbkjpNJFclfofEXSkvB_kLYNGcrWk0g,9435
|
| 212 |
+
numba/cpython/tupleobj.py,sha256=vt9UVEq9kb0n31Xgu_jhTFDqX-PJyE8V-SXjhVLvL4Q,403
|
| 213 |
+
numba/cpython/unicode.py,sha256=IJkQdswixHt6YYsXwCxxSnLfWW9Lgl2N0VRdT7CUlMg,90026
|
| 214 |
+
numba/cpython/unicode_support.py,sha256=nwARWQQlJsEb3gT9HvH_qVlp4ceSby_PY8Y5TGapN8k,27405
|
| 215 |
+
numba/cpython/unsafe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 216 |
+
numba/cpython/unsafe/numbers.py,sha256=99pqDh2kEopxjAX8H0GZ3RFNV0eFMnMWjp7g6qwM7mQ,1719
|
| 217 |
+
numba/cpython/unsafe/tuple.py,sha256=t2IJz9N3DzBbgE5cy6g5dWAZ17a3Td9PDNWWHsp5aWY,2883
|
| 218 |
+
numba/cuda/__init__.py,sha256=dVzRg7REcZRsrS8h6DSsMjij418I281Mha1tYhwO5uo,620
|
| 219 |
+
numba/cuda/api.py,sha256=e9Y7RQWh8mEl3Eie3xzgniSgjHC_nlLrjBCiYx5pNs8,17601
|
| 220 |
+
numba/cuda/api_util.py,sha256=aQfUV2-4RM_oGVvckMjbMr5e3effOQNX04v1T0O2EfQ,861
|
| 221 |
+
numba/cuda/args.py,sha256=HloHkw_PQal2DT-I70Xf_XbnGObS1jiUgcRrQ85Gq28,1978
|
| 222 |
+
numba/cuda/cg.py,sha256=9V1uZqyGOJX1aFd9c6GAPbLSqq83lE8LoP-vxxrKENY,1490
|
| 223 |
+
numba/cuda/codegen.py,sha256=raBoCDNt_qkDgB12yU0tbJQlA5_eTlUMemgcRHen1Vk,12174
|
| 224 |
+
numba/cuda/compiler.py,sha256=seanDEVVsiBqGmHUivIxcYf6mPWEgPYam1rects5-vs,15886
|
| 225 |
+
numba/cuda/cpp_function_wrappers.cu,sha256=iv84_F6Q9kFjV_kclrQz1msh6Dud8mI3qNkswTid7Qc,953
|
| 226 |
+
numba/cuda/cuda_fp16.h,sha256=1IC0mdNdkvKbvAe0-f4uYVS7WFrVqOyI1nRUbBiqr6A,126844
|
| 227 |
+
numba/cuda/cuda_fp16.hpp,sha256=vJ7NUr2X2tKhAP7ojydAiCoOjVO6n4QGoXD6m9Srrlw,89130
|
| 228 |
+
numba/cuda/cuda_paths.py,sha256=_fPrwCysDSoxwUvU_2xyGe9KSDxtHzunkxVqQNLtTBg,7723
|
| 229 |
+
numba/cuda/cudadecl.py,sha256=ynUidit8oPGjedc6p1miMGtS20DOji3DiQHzwmx6m0s,23192
|
| 230 |
+
numba/cuda/cudadrv/__init__.py,sha256=0TL4MZcJXUoo9qA7uu0vLv7eHrXRerVmyfi7O149ITw,199
|
| 231 |
+
numba/cuda/cudadrv/_extras.cpython-313-x86_64-linux-gnu.so,sha256=bDFO79GDQMw2TtX0aZ30J-M46fJnswdG3ammY3yVb7A,26008
|
| 232 |
+
numba/cuda/cudadrv/devicearray.py,sha256=B3ItYQywTnwTWjltxVRx6oaKRq7rxTtvOaiqTWsMQ2w,31123
|
| 233 |
+
numba/cuda/cudadrv/devices.py,sha256=6SneNmoq83gue0txFWWx4A65vViAa8xA06FzkApoqAk,7992
|
| 234 |
+
numba/cuda/cudadrv/driver.py,sha256=_qxCcnuwf4sBfhxm6Oic5wxzDmuS0StlZFGz9HN6-mo,106838
|
| 235 |
+
numba/cuda/cudadrv/drvapi.py,sha256=gDalZLaZBRQIDU-LUXgV7MwPJlgKuiu8h0YEcTA6_SM,17129
|
| 236 |
+
numba/cuda/cudadrv/dummyarray.py,sha256=nXRngdr-k3h_BNGQuJUxmp89yGNWxqEDJedpwDPEZ44,14209
|
| 237 |
+
numba/cuda/cudadrv/enums.py,sha256=E0lnh17jO4EvZ_hSIq3ZtfsE5bObmINtKb_lbK7rmMg,23708
|
| 238 |
+
numba/cuda/cudadrv/error.py,sha256=zEIryW6aIy8GG4ypmTliB6RgY4Gy2n8ckz7I6W99LUM,524
|
| 239 |
+
numba/cuda/cudadrv/libs.py,sha256=PRyxal4bz9jVZmuLpKiYw-VaR59LekfwJgWKo7R5uRY,6005
|
| 240 |
+
numba/cuda/cudadrv/ndarray.py,sha256=HtULWWFyDlgqvrH5459yyPTvU4UbUo2DSdtcNfvbH00,473
|
| 241 |
+
numba/cuda/cudadrv/nvrtc.py,sha256=CLpuD9VzPcYoXj8dZ2meSoqbWXHOOC5V5D6dFNdXqmg,9693
|
| 242 |
+
numba/cuda/cudadrv/nvvm.py,sha256=v2hJJTAQeRmoG59-hnhgMEp5BSVA73QHtEoy636VKao,24107
|
| 243 |
+
numba/cuda/cudadrv/rtapi.py,sha256=WdeUoWzsYNYodx8kMRLVIjnNs0QzwpCihd2Q0AaqItE,226
|
| 244 |
+
numba/cuda/cudadrv/runtime.py,sha256=Tj9ACrzQqNmDSO6xfpzw12EsQknSywQ-ZGuWMbDdHnQ,4255
|
| 245 |
+
numba/cuda/cudaimpl.py,sha256=3YMxQSCv2KClBrpuXGchrTNICV1F6NIjjL2rie5fDZ4,38628
|
| 246 |
+
numba/cuda/cudamath.py,sha256=EFNtdzEytAZuwijdRoFGzVKCeal76UzzaNy7wUFQx8I,3978
|
| 247 |
+
numba/cuda/decorators.py,sha256=hLCBs8Ah8v-uJHStr9NE4gtLPI1TI3zNiQpXg_UPyT8,7813
|
| 248 |
+
numba/cuda/descriptor.py,sha256=rNMaurJkjNjIBmHPozDoLC35DMURE0fn_LtnXRmaG_w,985
|
| 249 |
+
numba/cuda/device_init.py,sha256=orQK7anhnmEkYPRjHEs5I9uhdBwaHeXbaSD4ViX2_14,3460
|
| 250 |
+
numba/cuda/deviceufunc.py,sha256=yxAH71dpgJWK8okmCJm0FUV6z2AqdThCYOTZspT7z0M,30775
|
| 251 |
+
numba/cuda/dispatcher.py,sha256=Gt9DbmtuAxeglZtOzYESWaTGLO76_p--pDauhMCJsJc,40157
|
| 252 |
+
numba/cuda/errors.py,sha256=XwWHzCllx0DXU6BQdoRH0m3pznGxnTFOBTVYXMmCfqg,1724
|
| 253 |
+
numba/cuda/extending.py,sha256=URsyBYls2te-mgE0yvDY6akvawYCA0blBFfD7Lf9DO4,142
|
| 254 |
+
numba/cuda/initialize.py,sha256=TQGHGLQoq4ch4J6CLDcJdGsZzXM-g2kDgdyO1u-Rbhg,546
|
| 255 |
+
numba/cuda/intrinsic_wrapper.py,sha256=zbcUbegbfF3GdnC2Rl-z26-gozE8xBtaMxpS8LpOhfo,2239
|
| 256 |
+
numba/cuda/intrinsics.py,sha256=zk7KCyzRyXlBpxwEJLg_3oGRXOA7bODX4RPEsMKns9A,5983
|
| 257 |
+
numba/cuda/kernels/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 258 |
+
numba/cuda/kernels/reduction.py,sha256=fQnaWtoNB2yp143MNbE1DujqFIYy0KV_2moQVvbaROU,9362
|
| 259 |
+
numba/cuda/kernels/transpose.py,sha256=5FSu-nbTfhintxwfU-bjT2px2otQF5QkKH-JPDDWq_k,2061
|
| 260 |
+
numba/cuda/libdevice.py,sha256=476LeIEaAth409m-0OO1SMMmY5AHzN2AotXI__k_yYE,60065
|
| 261 |
+
numba/cuda/libdevicedecl.py,sha256=xdZbb_rCaftMf8Pbw63g_Lr230N-1QoaYzBxq8udKTg,532
|
| 262 |
+
numba/cuda/libdevicefuncs.py,sha256=c80lGpGoFIYkAdgr4fzbxzdNCyJYrLdss64bwa0Mc6w,37471
|
| 263 |
+
numba/cuda/libdeviceimpl.py,sha256=a9BmJ5kRtZ_mB7KjbDWW-PEpRuNiO_SMOxQTyy0abqs,2806
|
| 264 |
+
numba/cuda/mathimpl.py,sha256=d_gCoQ4hJzNBFNc2hvRON5h1F052epgQ8zh_RKTlLlI,14416
|
| 265 |
+
numba/cuda/models.py,sha256=2c_seT-cWX-VyWYmcapaqOEl1M4FX6_kdIOusj4s5aE,1328
|
| 266 |
+
numba/cuda/nvvmutils.py,sha256=W1zr1TpnmFjTkHF0qeu5wnBHub6gzrnpzsvgmu2OLcU,8295
|
| 267 |
+
numba/cuda/printimpl.py,sha256=Eg_RvmOcmFeL6s2RlTD-oOxebGdYLN9VZM1gcY3YMms,2789
|
| 268 |
+
numba/cuda/random.py,sha256=khX8iDdde_RTUPWhAqrxZacHRQAorFr7BokPuxRWzrg,10456
|
| 269 |
+
numba/cuda/simulator/__init__.py,sha256=crW0VQ_8e7DMRSHKoAIziZ37ea5mpbh_49tR9M3d5YY,1610
|
| 270 |
+
numba/cuda/simulator/api.py,sha256=_O9lox-obYn2j4843uZ2hZjIWgu7PXSqQGy3EiSwnnc,2620
|
| 271 |
+
numba/cuda/simulator/compiler.py,sha256=eXnvmzSKzIZZzBz6ZFJ-vMNyRAgqbCiB-AO5IJXuUyM,232
|
| 272 |
+
numba/cuda/simulator/cudadrv/__init__.py,sha256=MC6WHlTloHxGen9kIpH1Hp2p1PPyCNmoK5f3K9f7jXA,135
|
| 273 |
+
numba/cuda/simulator/cudadrv/devicearray.py,sha256=brhVnaKiJFIvZbNlE-3yft_YXTmNm4S8s95VXWT_nMc,13789
|
| 274 |
+
numba/cuda/simulator/cudadrv/devices.py,sha256=RYvLHarMNeHNrCYFokxXtg1nBIDRMu3ZohQ82hLQXN0,2689
|
| 275 |
+
numba/cuda/simulator/cudadrv/driver.py,sha256=mRz-PV4lqc-Mg3w5yUJWdrj0XS_d-3CM93uI2ZR1MTY,1124
|
| 276 |
+
numba/cuda/simulator/cudadrv/drvapi.py,sha256=76gXxRAQgr8bU-m8XizvqyXyXAZWp6QhUnS6rI-6E6Q,111
|
| 277 |
+
numba/cuda/simulator/cudadrv/dummyarray.py,sha256=DYIpIehz3cZSane651UYdJP5fehDuJkxyCg_90A1heU,163
|
| 278 |
+
numba/cuda/simulator/cudadrv/error.py,sha256=ACSQ7ZvhuCHnvV4GmvRuKWZ5bBLVzq7ncZ75oiWyLdM,87
|
| 279 |
+
numba/cuda/simulator/cudadrv/libs.py,sha256=ry5rerpZrnAy70LU_YBa1KNaqKBGLHE9cMxljdSzaik,101
|
| 280 |
+
numba/cuda/simulator/cudadrv/nvvm.py,sha256=vIFQi4ewYXyzUYssfw78QLfoZmoVgloFCLTk55Gg1tw,474
|
| 281 |
+
numba/cuda/simulator/cudadrv/runtime.py,sha256=K63p7puZJZD3BQ6ZT0qoII_Z3xJiUckp2dhozFjrnEs,358
|
| 282 |
+
numba/cuda/simulator/kernel.py,sha256=GO4HuXBlEstJtgiuMRB_6hjNizBSINR9_hganvMjHH4,10593
|
| 283 |
+
numba/cuda/simulator/kernelapi.py,sha256=ZYC_XQqnA51TJCPlAjVHHkOjXeww0yUP6JZeibXw3T8,12397
|
| 284 |
+
numba/cuda/simulator/reduction.py,sha256=jVo9YiWv8W2CN5_oQ-xdS3nuxv1HZmWh9O-Vck8hsQc,300
|
| 285 |
+
numba/cuda/simulator/vector_types.py,sha256=jAQC3JrWtabSmOA-ZGBq7PMW40EZTNPkPpKCzC5pz1c,1769
|
| 286 |
+
numba/cuda/simulator_init.py,sha256=W_bPRtmPGOQVuiprbgt7ENnnnELv_LPCeLDIsfsvFZ8,460
|
| 287 |
+
numba/cuda/stubs.py,sha256=a9smsDwbimTKy0YnV88OkcbYqldMgkx-WiV8LB4-MGs,22280
|
| 288 |
+
numba/cuda/target.py,sha256=EI6XuKQeqvng0uSx_V9jDoxbgFivqSz-4jczFzAbs5o,16837
|
| 289 |
+
numba/cuda/testing.py,sha256=E0wP2vfno1yWsl0v1zg31kpbU8FrKxTF-5y9Iv4WjA4,6412
|
| 290 |
+
numba/cuda/tests/__init__.py,sha256=lvnEpX0TruMCga3PnDpryR3oVxLwOMyTyZKgMINCerg,984
|
| 291 |
+
numba/cuda/tests/cudadrv/__init__.py,sha256=KeAvH3QOb-KXXkFtzwvYkQp2ZrQmzgfKDkBCVIOKXXE,257
|
| 292 |
+
numba/cuda/tests/cudadrv/test_array_attr.py,sha256=cjHQ0J6F8APrLm23ZCFr0S7dtQmLqwq9vxMoI5lyn68,5300
|
| 293 |
+
numba/cuda/tests/cudadrv/test_context_stack.py,sha256=lSEuEM7x-x95m_lS_wSIBKnBxOhzn-AJ3WjYw8bW0y4,4492
|
| 294 |
+
numba/cuda/tests/cudadrv/test_cuda_array_slicing.py,sha256=RVFiuTx5wTFBECzEolJqquhfWCD6BlrK49IPyDPdmY0,14112
|
| 295 |
+
numba/cuda/tests/cudadrv/test_cuda_auto_context.py,sha256=Bhut5gxKb8H-RNu8LKp0nEmyQT5FZVRA-aOrV6X8h3E,564
|
| 296 |
+
numba/cuda/tests/cudadrv/test_cuda_devicerecord.py,sha256=rikIJQ266l_yiSMoncEeKJZizYdoVOiTg1R0gD_1nZY,5766
|
| 297 |
+
numba/cuda/tests/cudadrv/test_cuda_driver.py,sha256=y--0AZFVpp2nmbeI1jbgZsWbBP-iVEmG8WKgR9XrxKE,7663
|
| 298 |
+
numba/cuda/tests/cudadrv/test_cuda_libraries.py,sha256=sqNbo8pk4Zl5ptuGXrXFndia4IyttbuGnqjVTOtGuuw,801
|
| 299 |
+
numba/cuda/tests/cudadrv/test_cuda_memory.py,sha256=MDJMIWm1jCsBOcuwdshzqwaE__uqX0562uSjxFhud3M,6627
|
| 300 |
+
numba/cuda/tests/cudadrv/test_cuda_ndarray.py,sha256=67dmVO6v5gzp89pgb4wpxqDrWAx1UjX4vhdDQH4mebQ,20403
|
| 301 |
+
numba/cuda/tests/cudadrv/test_deallocations.py,sha256=BR1ccEj_TCVToHoHS8KwwCfKLMUl6KGb92Cx6nX-XPg,8404
|
| 302 |
+
numba/cuda/tests/cudadrv/test_detect.py,sha256=lCt2E8gxnd8O-fRobDEwgX4jBZ15W7cImQcZc8_u2Sg,2774
|
| 303 |
+
numba/cuda/tests/cudadrv/test_emm_plugins.py,sha256=ah82yaWFvBfUTTSfbkZBKLsUf2tTSSJNvlSxrk1RI1E,7094
|
| 304 |
+
numba/cuda/tests/cudadrv/test_events.py,sha256=rjBrFDxZUpfwRkAGMvMEcdjOQ7sKB_94Spv1ccxTCjQ,1075
|
| 305 |
+
numba/cuda/tests/cudadrv/test_host_alloc.py,sha256=1zGjcSFSym-LZ7XQwlOPalU-GjTOYUOEPTeSG4iNQhI,2181
|
| 306 |
+
numba/cuda/tests/cudadrv/test_init.py,sha256=kPbjDhLJr1Rl18UJZoGpT3E0l9Cm-HcyPRbKr-BD7L0,4493
|
| 307 |
+
numba/cuda/tests/cudadrv/test_inline_ptx.py,sha256=eMImGlfYRQM5esoFhWHOwDGYK3RuXdrNvStURwcFDlc,1287
|
| 308 |
+
numba/cuda/tests/cudadrv/test_is_fp16.py,sha256=0KPe4E9wOZsSV_0QI0LmjUeMTjWpYT8BXExUUsmUCDI,394
|
| 309 |
+
numba/cuda/tests/cudadrv/test_linker.py,sha256=_l2_EQEko2Jet5ooj4XMT0L4BjOuqLjbONGj1_MVI50,10161
|
| 310 |
+
numba/cuda/tests/cudadrv/test_managed_alloc.py,sha256=kYXYMkx_3GPAITKp4reLeM8KSzKkpxiC8nxnBvXpaTA,4979
|
| 311 |
+
numba/cuda/tests/cudadrv/test_mvc.py,sha256=984jATSa01SRoSrVqxPeO6ujJ7w2jsnZa39ABInFLVI,1529
|
| 312 |
+
numba/cuda/tests/cudadrv/test_nvvm_driver.py,sha256=VTw8-TZ7DvjNEqsrzZ-RKKzLRiSKEyAAZ3pRDYEQiVk,7252
|
| 313 |
+
numba/cuda/tests/cudadrv/test_pinned.py,sha256=u_TthSS2N-2J4eBIuF4PGg33AjD-wxly7MKpz0vRAKc,944
|
| 314 |
+
numba/cuda/tests/cudadrv/test_profiler.py,sha256=MQWZx1j3lbEpWmIpQ1bV9szrGOV3VHN0QrEnJRjAhW4,508
|
| 315 |
+
numba/cuda/tests/cudadrv/test_ptds.py,sha256=S8y-j_ZB4Y_r2S5GGtfFxfracnJflQAhHYfhybKIcUE,4949
|
| 316 |
+
numba/cuda/tests/cudadrv/test_reset_device.py,sha256=tPDkdkqNZEix2dLqe4UBcsejhauAc1oEQlrZDtPKWFE,1073
|
| 317 |
+
numba/cuda/tests/cudadrv/test_runtime.py,sha256=h4ZIHkZbDjoZhgvFUWVfwWcktkgkoHMuDJq6SWn6hXc,3071
|
| 318 |
+
numba/cuda/tests/cudadrv/test_select_device.py,sha256=DjfS3hGTDRFAQsk7QiH-v6-_1HEdaLeSyTiquwUPCTM,987
|
| 319 |
+
numba/cuda/tests/cudadrv/test_streams.py,sha256=Yyzj1riNWRKM4FX3CtbMOQ_LWp92M5HXW6g_aq2r9Oc,4195
|
| 320 |
+
numba/cuda/tests/cudapy/__init__.py,sha256=KeAvH3QOb-KXXkFtzwvYkQp2ZrQmzgfKDkBCVIOKXXE,257
|
| 321 |
+
numba/cuda/tests/cudapy/cache_usecases.py,sha256=Cm2YupAQE7IFsiHp4TnC9kb_CLXGFMEK4zMaELrktIk,5834
|
| 322 |
+
numba/cuda/tests/cudapy/cache_with_cpu_usecases.py,sha256=xm035XOas_2AXORGEQHz7hcDuXwL-bdpy3gL5AKp6ik,1142
|
| 323 |
+
numba/cuda/tests/cudapy/extensions_usecases.py,sha256=l-tW4F935zxOvKb1erFiGf9R1iJXjMbvWInrdzJLub0,1604
|
| 324 |
+
numba/cuda/tests/cudapy/recursion_usecases.py,sha256=7Wz7i_6VVq5EeZuqkcg1dVfW9DbfC1rp44H7pe4voqI,1781
|
| 325 |
+
numba/cuda/tests/cudapy/test_alignment.py,sha256=dik8i4fG6MPlxVilW4l9pM5o_vBMAsRGItldeE9hvvU,1218
|
| 326 |
+
numba/cuda/tests/cudapy/test_array.py,sha256=bS6rzvp6BKVLFyW8mFRbVoZbxIbc2WCl5SzQ6XG0s8c,10515
|
| 327 |
+
numba/cuda/tests/cudapy/test_array_args.py,sha256=XTX4cT7BZexmw0BZPzeudf4OZgM6GNqzjDPyIxJyTdk,4979
|
| 328 |
+
numba/cuda/tests/cudapy/test_array_methods.py,sha256=shdeSAOKaoZbrvC8hXhETWH8FhyZPTmHg_TMw2DcdUA,969
|
| 329 |
+
numba/cuda/tests/cudapy/test_atomics.py,sha256=NvZ2XxQMa6Psyg9PQAFYcdYMOr9OjhGMYvYD3Vp5WiI,58449
|
| 330 |
+
numba/cuda/tests/cudapy/test_blackscholes.py,sha256=dpPWyCnxRUThaK6npGvN5_fhU-KT1b1GifU5Tj3AHMI,4023
|
| 331 |
+
numba/cuda/tests/cudapy/test_boolean.py,sha256=S8fNBS4gVEZyKk6PpeF5GfG0TLEu_0NvTgybyPNNGLU,547
|
| 332 |
+
numba/cuda/tests/cudapy/test_caching.py,sha256=5o1VcVbir1Lro6yFCerbfbjsxH9xNsYFl7N4Rud6ntw,19082
|
| 333 |
+
numba/cuda/tests/cudapy/test_casting.py,sha256=XrMWIMhGwUGRzh6gocw1Ogj8RORyZZrcFWOuc1ABUtU,8802
|
| 334 |
+
numba/cuda/tests/cudapy/test_cffi.py,sha256=FFbFBA8xJrTfwmlt5LRsRt4xXC93P0aa-bxgzaItwKU,938
|
| 335 |
+
numba/cuda/tests/cudapy/test_compiler.py,sha256=fQ1tLxahLrawlIe1VJlDHciKkrTVutirmOzjp2fEiRo,10821
|
| 336 |
+
numba/cuda/tests/cudapy/test_complex.py,sha256=PO1ySqBsttB9lFnQ1psWDss_JEMbqiHye0c2QBRRVU8,10290
|
| 337 |
+
numba/cuda/tests/cudapy/test_complex_kernel.py,sha256=G08aM81rARqojCKnsunVG7vJB9ggon7H8S8xFaZoK_o,497
|
| 338 |
+
numba/cuda/tests/cudapy/test_const_string.py,sha256=er2ANBSHGby_QxcsZvOKgo9znjKZfcPxKAAT1DoLGhI,4279
|
| 339 |
+
numba/cuda/tests/cudapy/test_constmem.py,sha256=rdnGaRKWqjks3rug1stx5gC0w7Md20_15U8xnj-N3LE,5166
|
| 340 |
+
numba/cuda/tests/cudapy/test_cooperative_groups.py,sha256=ZQuct24GEZnb2JBDvo7ZrUbtTHchysVGoY2BGnSXsfk,5039
|
| 341 |
+
numba/cuda/tests/cudapy/test_cuda_array_interface.py,sha256=73FCQbNaAKpuybAwMOt4eW_dL_K6ZjrRgQw09ojkSbY,15844
|
| 342 |
+
numba/cuda/tests/cudapy/test_cuda_jit_no_types.py,sha256=iqYs48wLh6kR2RwGuuBmuSFUBaOyBdV1BNhxZghJcrM,2126
|
| 343 |
+
numba/cuda/tests/cudapy/test_datetime.py,sha256=2in1Cq8y9zAFoka7H72wF1D0awEd3n7bv56sUPgoNAQ,3508
|
| 344 |
+
numba/cuda/tests/cudapy/test_debug.py,sha256=0H_c9Cm4kNJCem0CkSeL8EQY1IhJ43ho1wDXGEds2Ic,3557
|
| 345 |
+
numba/cuda/tests/cudapy/test_debuginfo.py,sha256=jDPgxSe0G0nAib3wgbfrOg6uvnwmCcuB9GhrzXEvlc0,7875
|
| 346 |
+
numba/cuda/tests/cudapy/test_device_func.py,sha256=aTRyZSOJB3sAShw0YAEgHILrR-TCuowW9KYjtlRErKM,6892
|
| 347 |
+
numba/cuda/tests/cudapy/test_dispatcher.py,sha256=oX-l_L4H8rME1IolwhAyordSGJ152nnuqGAFdWjfgas,26587
|
| 348 |
+
numba/cuda/tests/cudapy/test_enums.py,sha256=0GWiwvZ1FTzSl1FfMxttkWaWrowASfXrSDT8XAR4ZHw,3560
|
| 349 |
+
numba/cuda/tests/cudapy/test_errors.py,sha256=jwHbNb2Ro5pbGOPFetmUhI-vG4s36OKCqMJ-lgWxHMY,2620
|
| 350 |
+
numba/cuda/tests/cudapy/test_exception.py,sha256=Y7VF25tzz2w5MIZjYD3vG1eTfmowFO-RBea2HiJilag,5501
|
| 351 |
+
numba/cuda/tests/cudapy/test_extending.py,sha256=jcu7BXC0wwpnxZd25gbREukjiEMk7YXmIhc-nev5Mvs,4118
|
| 352 |
+
numba/cuda/tests/cudapy/test_fastmath.py,sha256=eZ9KowHlnNByZfUU-8ZB2NhlGBlZhG-5N_sipXhVGgE,8401
|
| 353 |
+
numba/cuda/tests/cudapy/test_forall.py,sha256=rcSiGr_RAqPbc9o4-wrBuH3ucMMlsNdf2ZjjbVUUwvY,1457
|
| 354 |
+
numba/cuda/tests/cudapy/test_freevar.py,sha256=e8KMNFxJYLXcFv2V4OIh7YmI1cwo-NdCaamVmKWnANw,745
|
| 355 |
+
numba/cuda/tests/cudapy/test_frexp_ldexp.py,sha256=82y4vgKIwHTJnA9nqvHOyvLgkdLezqWstge2tChDytI,2024
|
| 356 |
+
numba/cuda/tests/cudapy/test_globals.py,sha256=b_i_JZ6ijBXuxTq5QBqzfCg9c48tOuGhRw1_fc72NBs,1384
|
| 357 |
+
numba/cuda/tests/cudapy/test_gufunc.py,sha256=0NWfQqHmx7tFh6vdS7QtxT86uB9-GmYYfg2ldFlFQLU,15603
|
| 358 |
+
numba/cuda/tests/cudapy/test_gufunc_scalar.py,sha256=Uhe8Q0u42jySrpwAZh8vCf4GMYkiy9NOMolyzEBuri0,5382
|
| 359 |
+
numba/cuda/tests/cudapy/test_gufunc_scheduling.py,sha256=luDtBxFS_5ZbVemXe1Z7gfqMliaU_EAOR4SuLsU5rhw,2677
|
| 360 |
+
numba/cuda/tests/cudapy/test_idiv.py,sha256=HLJ_f2lX8m_NNJjUbl_8zZ0-8GsBlRdBP2CUo_yWb0Y,1056
|
| 361 |
+
numba/cuda/tests/cudapy/test_inspect.py,sha256=lP9-8SbWFn2Xc-qmF6UNhcY6LreKTnveaK5CGW2pu8E,5196
|
| 362 |
+
numba/cuda/tests/cudapy/test_intrinsics.py,sha256=e6lABWy8YBgYheYYGfD75_y8vMbPP71GHb95A4hlLmA,34931
|
| 363 |
+
numba/cuda/tests/cudapy/test_ipc.py,sha256=Ky9d9BnndVgqRFFEcvEX-mn9ai7q1oBpkHykx6ChGM4,10441
|
| 364 |
+
numba/cuda/tests/cudapy/test_iterators.py,sha256=daQW3kSkp7icCmlTn9pCvnaauz60k_eBf4x1UQF-XVY,2344
|
| 365 |
+
numba/cuda/tests/cudapy/test_lang.py,sha256=U1BCVZMjU1AZ4wDSmjsRIPPcAReiq4dB77Cz7GmrdmA,1691
|
| 366 |
+
numba/cuda/tests/cudapy/test_laplace.py,sha256=yD--H5p_NrBHklFNCnxuQ0S8yUIBYScBkvn7hBlZ5ZM,3211
|
| 367 |
+
numba/cuda/tests/cudapy/test_libdevice.py,sha256=4NsZBXweDPQpqfgo6T7eQHaWDVBof1CZDTpI1QTkV74,6545
|
| 368 |
+
numba/cuda/tests/cudapy/test_lineinfo.py,sha256=sKPF5l1cDTyA4UT0IO8Yeq6pYPGt9pIBQtrMAJMJHCM,6855
|
| 369 |
+
numba/cuda/tests/cudapy/test_localmem.py,sha256=uv9UYuytIXQgzHpPgEoWVVVq5-a7-6Io_mWMiNsZ45I,5376
|
| 370 |
+
numba/cuda/tests/cudapy/test_mandel.py,sha256=crVQBw46l4iyAv8_pu7v1eBy9ZJG7OkigB5zsyi6s3A,1085
|
| 371 |
+
numba/cuda/tests/cudapy/test_math.py,sha256=T-KRh9qzwOL3usl_6Cly3FVlvauzGhGnedfAG1hBQy8,27615
|
| 372 |
+
numba/cuda/tests/cudapy/test_matmul.py,sha256=cZpJZ66UFmszLBQ4m1GdPyi27YHFkA6jo29cgQHjozQ,2084
|
| 373 |
+
numba/cuda/tests/cudapy/test_minmax.py,sha256=Lgd9OSELTwOeOI7JwbOf2E15mxv_XkgIrhC0mkoHTvg,2409
|
| 374 |
+
numba/cuda/tests/cudapy/test_montecarlo.py,sha256=jH_LxlcoA8Vb3C3YXg93XQw8J8O8WGCWoLRPg1mmxDg,603
|
| 375 |
+
numba/cuda/tests/cudapy/test_multigpu.py,sha256=4lC9G6LI0MRBDQEkRyTPb019NUFoU9cGrDWV4quomWY,4140
|
| 376 |
+
numba/cuda/tests/cudapy/test_multiprocessing.py,sha256=AjYbSa9nOlv_ycZORifdm7B-b9KdKC1HV-cGLDtrJ-w,1224
|
| 377 |
+
numba/cuda/tests/cudapy/test_multithreads.py,sha256=MfCbyJZu1XsCJOCSw6vvhs4eiP4LZPcF-e9huPmW-ys,2861
|
| 378 |
+
numba/cuda/tests/cudapy/test_nondet.py,sha256=mYMX0R1tmBLRe5ZAwiDVFFuSyMuPav5guuqL3WHWGPY,1378
|
| 379 |
+
numba/cuda/tests/cudapy/test_operator.py,sha256=0nJej4D898_JU-jhlif44fR2yu42keK4GoCLP810l3U,13295
|
| 380 |
+
numba/cuda/tests/cudapy/test_optimization.py,sha256=SvqRsSFgcGxkFDZS-kul5B-mi8GxINTS98uUzAy4dhw,2647
|
| 381 |
+
numba/cuda/tests/cudapy/test_overload.py,sha256=yYgtrf0aER3i6VaPrPpzI_uDa8xjEmdCCDSSAcx91y0,8251
|
| 382 |
+
numba/cuda/tests/cudapy/test_powi.py,sha256=TI82rYRnkSnwv9VN6PMpBnr9JqMJ_F3HhH4cKY6O8tw,3276
|
| 383 |
+
numba/cuda/tests/cudapy/test_print.py,sha256=trOElKENWGwWVcJ3uN4wzqtZiJiQtjLh4vx07iobz9U,3643
|
| 384 |
+
numba/cuda/tests/cudapy/test_py2_div_issue.py,sha256=R88Vfgg3mSAZ0Jy6WT6dJNmkFTsxnVnEmO7XqpqyxuU,986
|
| 385 |
+
numba/cuda/tests/cudapy/test_random.py,sha256=rLw7_8a7BBhD_8GNqMal0l_AbWXzLs_Q0hC6_X8gdjA,3467
|
| 386 |
+
numba/cuda/tests/cudapy/test_record_dtype.py,sha256=grR64kdRlsLcR0K3IxSfI2VKsTrrqxsXuROOpvj-6nw,18769
|
| 387 |
+
numba/cuda/tests/cudapy/test_recursion.py,sha256=8dA2HfAGT6si2OioEx_IkCEgbDhbrjQ94Y7yojPtFjA,3641
|
| 388 |
+
numba/cuda/tests/cudapy/test_reduction.py,sha256=ffut_O9EZAwAwdbEXoYPzy8GkRI6tFKC5XafNdAymgY,2528
|
| 389 |
+
numba/cuda/tests/cudapy/test_retrieve_autoconverted_arrays.py,sha256=LPYAxouZ7JYiu3z4HnNjkGtjYLuIscOxKXiY6RiTv6o,2404
|
| 390 |
+
numba/cuda/tests/cudapy/test_serialize.py,sha256=alE5-lTwbjz3Tv6OvQPSmgtUtu0X9UwFzB2aKs2rYag,2321
|
| 391 |
+
numba/cuda/tests/cudapy/test_slicing.py,sha256=qW2Btdfj9wl5aB6vDFYcrc-BiT3BzzocKiQQ0klqPHY,3156
|
| 392 |
+
numba/cuda/tests/cudapy/test_sm.py,sha256=kh1F0wwQ2_bd54Q4GUX99y2oiWHQwBpyC__ckk-jiTU,14575
|
| 393 |
+
numba/cuda/tests/cudapy/test_sm_creation.py,sha256=bTXDjU94ezo6Bz_lktlPyowTcJHBOWfy7-nJB9e-B_s,7231
|
| 394 |
+
numba/cuda/tests/cudapy/test_sync.py,sha256=Y851UqNkT80U9q_C05SQfvPRCY7jjRARHOMk6g0lU4Y,7837
|
| 395 |
+
numba/cuda/tests/cudapy/test_transpose.py,sha256=JAQX2EUHwlpKCfJDGspaldmsIRbHxnXpsNUrvRrnIEE,3134
|
| 396 |
+
numba/cuda/tests/cudapy/test_ufuncs.py,sha256=-ehvkxelr45aT8sUNL9Hq8cn2GU_K4GL1yWeX-rHqEM,9680
|
| 397 |
+
numba/cuda/tests/cudapy/test_userexc.py,sha256=4ch3Lw8X_w832lU0J5Y5ZLAfxUMUSzbxnWE0bLEWdEg,1470
|
| 398 |
+
numba/cuda/tests/cudapy/test_vector_type.py,sha256=hH3G4XtOTUNr31KyBJVAbbT4053cuJon_PPzoUVlupY,10515
|
| 399 |
+
numba/cuda/tests/cudapy/test_vectorize.py,sha256=iCCiMQERoTnpa2cxU-08bs-AbgGyrQgAC7b9J5nsMUk,9248
|
| 400 |
+
numba/cuda/tests/cudapy/test_vectorize_complex.py,sha256=0cIAvARp4w4Jw38T2qZKg7RD_UZyPVWDOYC0x3AGunE,548
|
| 401 |
+
numba/cuda/tests/cudapy/test_vectorize_decor.py,sha256=rA2Jk1wKbTQXnVvVXeVnhjft8R3zPRWNjVa76M6iI3k,2071
|
| 402 |
+
numba/cuda/tests/cudapy/test_vectorize_device.py,sha256=bsC4rJAvVtoBOaVDBulLC7oY3mDPe7E77z9LUA5mzCk,983
|
| 403 |
+
numba/cuda/tests/cudapy/test_vectorize_scalar_arg.py,sha256=Ivl3RtFjwKJRHAxaFD8Xby5PxjK-mmkxbFXHUHYipNA,937
|
| 404 |
+
numba/cuda/tests/cudapy/test_warning.py,sha256=Bpcj9-pehYW20vn4KY98pADQd5A0gzDUuUk2y48HzyM,4265
|
| 405 |
+
numba/cuda/tests/cudapy/test_warp_ops.py,sha256=OGGXn4beVIjjIB5akR2keyY7gQFaMAxM_AoZNN_I3Bk,9042
|
| 406 |
+
numba/cuda/tests/cudasim/__init__.py,sha256=B1ma2w-Eyk_ooILO3PPxb2K5HMyZY8WZhikDIBATzQQ,154
|
| 407 |
+
numba/cuda/tests/cudasim/support.py,sha256=JjRrfrrLKS0V5p6GX6ibs6QTuFb1NanKfBQSgbLeiHs,114
|
| 408 |
+
numba/cuda/tests/cudasim/test_cudasim_issues.py,sha256=IsjJlxq6LMMDh_1kiO9LefXkOX_Hc1bxeSwXZdB59yU,3179
|
| 409 |
+
numba/cuda/tests/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 410 |
+
numba/cuda/tests/data/cuda_include.cu,sha256=1wj5Of86-kP0hxK5Gr6AhapuyTiiWWJAoFbCuCpyKfA,294
|
| 411 |
+
numba/cuda/tests/data/error.cu,sha256=5m65RDHgh39d0bIW6Dvj0xh9ffhKH1iILeCCR4p2ReI,138
|
| 412 |
+
numba/cuda/tests/data/jitlink.cu,sha256=ne8LLu7RHgbw2lAyJGrVlJHJ08kxUuOLBD9pH-cNxFU,541
|
| 413 |
+
numba/cuda/tests/data/jitlink.ptx,sha256=fBPV1l6krgtGfHasRfaL708M05eNszjAQG33z-NtvUg,896
|
| 414 |
+
numba/cuda/tests/data/warn.cu,sha256=6L-qsXJIxAr_n3hVMAz_EZ5j0skcJAfgzuJfDEISG_I,172
|
| 415 |
+
numba/cuda/tests/doc_examples/__init__.py,sha256=B1ma2w-Eyk_ooILO3PPxb2K5HMyZY8WZhikDIBATzQQ,154
|
| 416 |
+
numba/cuda/tests/doc_examples/ffi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 417 |
+
numba/cuda/tests/doc_examples/ffi/functions.cu,sha256=mRZEyCfZbq4ACTN3sj1236XmTpj1d0IxZ4QTMbI3g_E,877
|
| 418 |
+
numba/cuda/tests/doc_examples/test_cg.py,sha256=9UQAez1jp3vQ0BIfoRCnGJGP17nznNcon-XFR4grqzQ,2905
|
| 419 |
+
numba/cuda/tests/doc_examples/test_cpu_gpu_compat.py,sha256=DRzvoE2iCaISJb2lkshBkJyYBEfdpqZLRXG_N9XRaFk,2305
|
| 420 |
+
numba/cuda/tests/doc_examples/test_ffi.py,sha256=RgZO7xYkJIlSIuJK4k3_APEJAekjkKy5wKOMFdfRoAM,2654
|
| 421 |
+
numba/cuda/tests/doc_examples/test_laplace.py,sha256=UH15R0DbMA4iHLmoZ0GtcttGCNctOUif-u2448JMmRo,5177
|
| 422 |
+
numba/cuda/tests/doc_examples/test_matmul.py,sha256=hS-X_T7x3-BcBanazmnmGxJE_o1A9b9f_VGk0YlJP4o,6135
|
| 423 |
+
numba/cuda/tests/doc_examples/test_montecarlo.py,sha256=_0snszis_UE7LxU5lw9ReNF19Dh5iV0yRy18mUWNd1c,3491
|
| 424 |
+
numba/cuda/tests/doc_examples/test_random.py,sha256=VTgzB55bfjeNQHKg9MINnKa70KNYzxpTOktKwYNYUkc,2192
|
| 425 |
+
numba/cuda/tests/doc_examples/test_reduction.py,sha256=9d40rXxrqvWSkI8r0lMJ42LgU98dVF3Aeon6RAqUIik,2274
|
| 426 |
+
numba/cuda/tests/doc_examples/test_sessionize.py,sha256=kNep6Y7q1WJ9dLeoMYuk9NBKTGLsIJwNiW-um86BOoc,4334
|
| 427 |
+
numba/cuda/tests/doc_examples/test_ufunc.py,sha256=UXwXjL9ybg0OuYOFKnHZk75bMjRMRzrp_xfxAdMR198,1418
|
| 428 |
+
numba/cuda/tests/doc_examples/test_vecadd.py,sha256=0RMJv3iXf9OlAMCF4aIB4Pyp4AnoKUuqC_tY-yNQGbI,2043
|
| 429 |
+
numba/cuda/tests/nocuda/__init__.py,sha256=KeAvH3QOb-KXXkFtzwvYkQp2ZrQmzgfKDkBCVIOKXXE,257
|
| 430 |
+
numba/cuda/tests/nocuda/test_dummyarray.py,sha256=hpdNlYhZLKrrN3TF4i65djpOlcPpEkTG1MX8385Qov0,13567
|
| 431 |
+
numba/cuda/tests/nocuda/test_function_resolution.py,sha256=o4DYocyHK7KVPil6LQI2jzZ2xSWop8bLZYGtV067CSs,1425
|
| 432 |
+
numba/cuda/tests/nocuda/test_import.py,sha256=teiL8rpFGQOh41kyBSSNHHFYAJYgpdStXkTcpK4_fxo,1641
|
| 433 |
+
numba/cuda/tests/nocuda/test_library_lookup.py,sha256=7kJOPHEcrjy_kTA9Ym-iT_B972bgFRu3UkRtwIgWtuI,7948
|
| 434 |
+
numba/cuda/tests/nocuda/test_nvvm.py,sha256=n0_-xFaw6QqiZbhe55oy7lnEeOwqTvA55p5EUFiTpNw,2006
|
| 435 |
+
numba/cuda/types.py,sha256=WVfjcly_VUpG9FfKueiEPzZm2NV8Hg0XAFg3bNzPdVc,1314
|
| 436 |
+
numba/cuda/ufuncs.py,sha256=4ZhGEF9VXN4o61h7kbly6DdiQeDADGet9L13fipK4QQ,23325
|
| 437 |
+
numba/cuda/vector_types.py,sha256=s18dY0IUpT-RcaBvQsa_zEbYuuL2IT0Vh6afCeccwmQ,6750
|
| 438 |
+
numba/cuda/vectorizers.py,sha256=u_0EzaD5tqVH8uOz4Gmqn3FgPC1rckwDAQuROm0BXm8,8915
|
| 439 |
+
numba/experimental/__init__.py,sha256=RBZ2sMQEP7NKSKqucS8ij-dOOZrmHiWM_qVLVP1pPe0,30
|
| 440 |
+
numba/experimental/function_type.py,sha256=KH0BteKy-Oo8hpGutWX1ujbD7Nz9ILp3Bw9cI96vt7k,12475
|
| 441 |
+
numba/experimental/jitclass/__init__.py,sha256=3Emu3qLxfO6zhqsLfzRu12vATnGwqLYERSV_jRW9g9k,219
|
| 442 |
+
numba/experimental/jitclass/_box.cpython-313-x86_64-linux-gnu.so,sha256=xeqTYmqxBA1D3YD5t48Z9M4l3KEr9bmxisbl5yYvF1I,32112
|
| 443 |
+
numba/experimental/jitclass/base.py,sha256=p8sCrSDvRiwqA9weQEqYDSmQn6Yw0uYx-Swt17adNWk,21254
|
| 444 |
+
numba/experimental/jitclass/boxing.py,sha256=FTZy8P4Zs9s8IbWF0kSaO9LYnrt5sk8wFdD9jaTuIps,8245
|
| 445 |
+
numba/experimental/jitclass/decorators.py,sha256=y_Y-ugNa6jnmIX1fhLpadlu702857iRUb2tYhS3Ke3w,2404
|
| 446 |
+
numba/experimental/jitclass/overloads.py,sha256=jcOA2xeCv7OrH3iv5_9rVQPOst_75cyDHHnqaKkiw2U,7264
|
| 447 |
+
numba/experimental/structref.py,sha256=LVa_0xU50jzrmNp4PC1tjnb8LUkRKTB7ckZ-kB9_jx0,11491
|
| 448 |
+
numba/extending.py,sha256=dkGJPNMggy7xd1NRV1ws6teIK7Ze2lTFvpAz7Cw5drI,133
|
| 449 |
+
numba/mathnames.h,sha256=pNbqCU38izsPBn6EaZDfT_HURKIaEkmpm2STVyFtaEs,1774
|
| 450 |
+
numba/misc/POST.py,sha256=JrY0ygk5v272TXHpqQNnDKIX2FJK04pDAkmdtAVaWEc,811
|
| 451 |
+
numba/misc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 452 |
+
numba/misc/appdirs.py,sha256=zyXqBFfj1ERckcERX_G9d3AAGciKuB06Aj5_mnyGrTQ,22388
|
| 453 |
+
numba/misc/cffiimpl.py,sha256=5ubOeU-F0MNi2aQ5Y44AxcYvegLjPW-w3Zs8hfPhW-g,615
|
| 454 |
+
numba/misc/cmdlang.gdb,sha256=hX5t_27IhOlfgGAwV3aVPyZ8v1m7hedd6myQbE8mMB8,101
|
| 455 |
+
numba/misc/coverage_support.py,sha256=6V0xMNtFjcDzv5buTq-65CohX8_8UZjfrPIBzJlyHYo,2541
|
| 456 |
+
numba/misc/dump_style.py,sha256=TTQm7BmBzLT9VRuWRjpYkGqg_lXwtoAvEbcK5wIC-XQ,2265
|
| 457 |
+
numba/misc/findlib.py,sha256=r7bP2GeCTXsGHa5bWKNKsVCvqDrarMlvORqWmJoeOHg,1848
|
| 458 |
+
numba/misc/firstlinefinder.py,sha256=kjPhJhGlWkQflBFcd-avzAKXbnyEDzADCC9UbU_z_Mc,2895
|
| 459 |
+
numba/misc/gdb_hook.py,sha256=qX-ZHzj3Id1eGW5eQpXALeGZD8Cj2cZyfCqdoixd8K4,8567
|
| 460 |
+
numba/misc/gdb_print_extension.py,sha256=RcKxCFhzbwr7TrZsX6DZGjJkEaNzoZn19W9vCktG4-o,7728
|
| 461 |
+
numba/misc/help/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 462 |
+
numba/misc/help/inspector.py,sha256=9tgx8tKuYEffMWTjnayD7NJbwaxcu7q7aDYKSh6AdFU,12903
|
| 463 |
+
numba/misc/init_utils.py,sha256=2vEcU37csAn4Ogoi6eyCEyNiUnEf4P-9PLcFvkk6xRI,1242
|
| 464 |
+
numba/misc/inspection.py,sha256=SSHPt4V-CphtwEIEbOFhjYURe1hHvX8a_FDpMyq-P7A,4499
|
| 465 |
+
numba/misc/literal.py,sha256=AQnd2XF5fJYnR8BuOCRcoCt97-U3APuEGViyZTie3VQ,705
|
| 466 |
+
numba/misc/llvm_pass_timings.py,sha256=Mnm8MprZZCioJS9BdHeQ2CNJ8cpj9fUdOGwJnQXOkRs,11703
|
| 467 |
+
numba/misc/mergesort.py,sha256=H4XyN8Lmw4NBZ3m_UEltHK7T5ZADc3fbok2KwOKATm8,3548
|
| 468 |
+
numba/misc/numba_entry.py,sha256=OTSqI4hYcr91ZXyNmbJmbQG6hMEQgTGZ-no6McXz4o4,2618
|
| 469 |
+
numba/misc/numba_gdbinfo.py,sha256=Dunek2AGTgxNZFQnlsEFHzjc0806J8Abz2eTTj0TZEI,5962
|
| 470 |
+
numba/misc/numba_sysinfo.py,sha256=Kr7r5A9TVqkw7wGmnuBhfzsLxiDMqB7ou4OxCZACjw8,27048
|
| 471 |
+
numba/misc/quicksort.py,sha256=7tp5Cv8fcyc1h9tJv1o47Mz4-_QPI_YCThXVkuTA6f4,7727
|
| 472 |
+
numba/misc/special.py,sha256=eEIAB_07X8EO7BkrQVz2Z374kjHLIXe75JFnx2j0uqs,3320
|
| 473 |
+
numba/misc/timsort.py,sha256=tSAqreRk39eRy7FD6GRCGLIpUhG-BgVygXphkxtcJiw,33503
|
| 474 |
+
numba/mviewbuf.c,sha256=BLH7Khu9GTcI4pyj7ApEmqdOTpIkTdDLLN5cG0J4_IU,11731
|
| 475 |
+
numba/mviewbuf.cpython-313-x86_64-linux-gnu.so,sha256=64fDHSkNUbGn_IzZWaMLEnxW8gKRfYt_-aJinNK-rsk,44784
|
| 476 |
+
numba/np/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 477 |
+
numba/np/arraymath.py,sha256=tCmQnwxp_ax8rKl_qrrycZ5SqlYVYt6KHFOFyosle3g,395
|
| 478 |
+
numba/np/arrayobj.py,sha256=1X3PVhrD26xIihYccRHfabpcAkuHlQEP1xR-V7D4t5w,252093
|
| 479 |
+
numba/np/extensions.py,sha256=YEN2b5udrIy4uhHrp7Os6FEW_h4lv-dp4aRB2Z8Irhg,96
|
| 480 |
+
numba/np/linalg.py,sha256=ux_AiVkdycuPsy8MfSNNMCShfhRIXJQ_1chu7OPqDgc,92462
|
| 481 |
+
numba/np/math/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 482 |
+
numba/np/math/cmathimpl.py,sha256=RZwO6pYJjgX7d4kTmymDgXIECfJzZ_oW8xG-nmDo5xY,17628
|
| 483 |
+
numba/np/math/mathimpl.py,sha256=wM19VO-kAQIPRL2XxyTqUtyFWA9kSlmHngsO6d8HucU,15580
|
| 484 |
+
numba/np/math/numbers.py,sha256=XrzM_xxyKkidhRYDRAdXrV0yaRT7dY208NbXx5_uLks,50276
|
| 485 |
+
numba/np/new_arraymath.py,sha256=5xtN_4JpgiXJzcEi4b-PgBpZg71dNuNbBG8l5VdHJAo,152202
|
| 486 |
+
numba/np/npdatetime.py,sha256=tbIyF7pOSoC5-THyo9-7PGzNWTv0X-CDoiP-kI4ANnQ,34289
|
| 487 |
+
numba/np/npdatetime_helpers.py,sha256=JPUTOYJ9Eg-3H4K3oLp2q0lLXKZcML3fBpG7WwJ3l8g,6649
|
| 488 |
+
numba/np/npyfuncs.py,sha256=ML76eRXBLphl1PRNz7t3ugXkrAYEb-WKAtL7tdET3Dc,63100
|
| 489 |
+
numba/np/npyimpl.py,sha256=GDhAOy-FBulItjDnwGC_k-Erkg1YsLNhxhzMRwcQzJw,36977
|
| 490 |
+
numba/np/numpy_support.py,sha256=o5iUlwUEAqzRs7392C1L2wG_QT-q9Vm2hbLw6bT07Ek,27633
|
| 491 |
+
numba/np/old_arraymath.py,sha256=EU_fmvqn5-dejg12fAzqivwc7zduVQGJt9NTlEcJeM4,152294
|
| 492 |
+
numba/np/polynomial/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 493 |
+
numba/np/polynomial/polynomial_core.py,sha256=t_4zkvCCjPQis9q9oq-6ja-eaafnE2eIbUJBRNGU8kw,9003
|
| 494 |
+
numba/np/polynomial/polynomial_functions.py,sha256=jH4uH46RBg2NJ6t_sAUwEwvrHcVrLxMdln_xsJLr-P8,10765
|
| 495 |
+
numba/np/random/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 496 |
+
numba/np/random/_constants.py,sha256=lbWbj6z1gzNQMZV-BUIcmLeYlzTl-YytJUeorQtaU-c,72630
|
| 497 |
+
numba/np/random/distributions.py,sha256=2snTdcIFjUEFVIVMMEwY52VThBE6hGzRjNAOnh4o9uw,397
|
| 498 |
+
numba/np/random/generator_core.py,sha256=HY44_ZraEXCVVBbO4gjGjA5vpuLlGAwAOG5wcJXiyK0,4712
|
| 499 |
+
numba/np/random/generator_methods.py,sha256=MsZifo13zLPcipABAdlabQxQQUdNS2OySkZJmEzhNWE,34316
|
| 500 |
+
numba/np/random/new_distributions.py,sha256=0t3nZ-QhJhb0ba0C-67OjR0zFOy8jgKDh3ZGVCxTnlM,20333
|
| 501 |
+
numba/np/random/new_random_methods.py,sha256=Rcsaqn8LixshPZg_W_lWH7WHPA7LkexO7hph3HgWKz4,10273
|
| 502 |
+
numba/np/random/old_distributions.py,sha256=MxdSHYVvaoAFWgSJeMma-AHazvqfLJmuCcHvx2CnsnA,20906
|
| 503 |
+
numba/np/random/old_random_methods.py,sha256=H18TXrqkFTqnLOrAHo_y-KUcM_iETWHDpczdLEs0_e0,10210
|
| 504 |
+
numba/np/random/random_methods.py,sha256=R-RzWPb3MvSgKU6mrKqtr9sYJaSZyxf-bbF8fPYBNLE,399
|
| 505 |
+
numba/np/ufunc/__init__.py,sha256=TUc7_N8172fYX5n0ZxnUn-LEbaL88rZBHmqPu_OdCdU,1070
|
| 506 |
+
numba/np/ufunc/_internal.cpython-313-x86_64-linux-gnu.so,sha256=Bk0yn6gGWuNEPSQmegf8JlGBOxBC5vbjHXefJUFzuLA,100672
|
| 507 |
+
numba/np/ufunc/_num_threads.cpython-313-x86_64-linux-gnu.so,sha256=950KFZIBYk_M-IfRBdiGjXnr6aueKP00ogCHB1n1VDg,26936
|
| 508 |
+
numba/np/ufunc/array_exprs.py,sha256=pJbWr9S8zCpkZPXFRJIpnjf-FKe3QfYeTB6vyZIyTrg,16878
|
| 509 |
+
numba/np/ufunc/decorators.py,sha256=_J7b_05KDBPBnyFvEcL-ys5WGSkUPfml0oIdCAnC-IA,6107
|
| 510 |
+
numba/np/ufunc/dufunc.py,sha256=1nWLfq_oM9GFuKRaU7VK2-b_aFNXe6C8yEBTnLgqf2A,34585
|
| 511 |
+
numba/np/ufunc/gufunc.py,sha256=0Az_-P3xlEHePgipw3pQyW8hwWO509U4kHY_9WhDt3M,12727
|
| 512 |
+
numba/np/ufunc/omppool.cpython-313-x86_64-linux-gnu.so,sha256=pCycFBG3Jl4S_ef2eBBZvFsIyqmL9HfkOvzgEillEog,600089
|
| 513 |
+
numba/np/ufunc/parallel.py,sha256=183lH6RYkvPYnLad65h7Ujt3lYeaST3KBKOTO0vAnsg,26282
|
| 514 |
+
numba/np/ufunc/sigparse.py,sha256=r9068xH89U-U-sU9nL4e8JGhAuMGQv8op8ucremc8AA,1846
|
| 515 |
+
numba/np/ufunc/tbbpool.cpython-313-x86_64-linux-gnu.so,sha256=xvtujRBNCRPsAXs4absoB2cDmaKya5eOJRdvplkXFYg,1054537
|
| 516 |
+
numba/np/ufunc/ufunc_base.py,sha256=LhdG5z2lvspsCIadAP7IS8h706uzWjQBuyNtJcyY4Nw,3335
|
| 517 |
+
numba/np/ufunc/ufuncbuilder.py,sha256=viLjO4-V7OHdYbWpysoRyEk9DrMUp6g5IZnM-c08O5k,14303
|
| 518 |
+
numba/np/ufunc/workqueue.cpython-313-x86_64-linux-gnu.so,sha256=w_ayxYQfhkQP2oJHS8N1fUb3-khurquU4WLWsj9GArA,606544
|
| 519 |
+
numba/np/ufunc/wrappers.py,sha256=CdWTlT1USqb-tw_3tAj_CRC0VWv4tIyeDJr3n2Cq6DQ,27203
|
| 520 |
+
numba/np/ufunc_db.py,sha256=OTgMbz79rRzmRkZZ7US5-bcZ5NxZ3dKoiv9msxGUs8c,42510
|
| 521 |
+
numba/np/unsafe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 522 |
+
numba/np/unsafe/ndarray.py,sha256=dzc0UlE86z_idhAN73eDs9A21rF4v6BkOpmEHbFYlsU,2704
|
| 523 |
+
numba/parfors/__init__.py,sha256=YXMWaFldoQqHT12hNUQyS7nd7Zg85htjssj1UopkA-o,42
|
| 524 |
+
numba/parfors/array_analysis.py,sha256=4k6K-fDMVFEhqEw0R71gbHoNhBsG00J6RReUjCm5JIg,124117
|
| 525 |
+
numba/parfors/parfor.py,sha256=nssZCvQ7hnr9QLMrr4TLiBNNseFdEPqTfICmIOVgsHk,225383
|
| 526 |
+
numba/parfors/parfor_lowering.py,sha256=_sHTb2pBZQjmoZ7UArlF5IvEmRS3sp7zx17btqGLjWo,87616
|
| 527 |
+
numba/parfors/parfor_lowering_utils.py,sha256=3LEZBxMZ0mN-X9a-a31hQ5MtgV9VSlO5fSaHe61ciKI,5544
|
| 528 |
+
numba/pycc/__init__.py,sha256=TzLOywD1B2CPTXQ1c_mzyPOSQTY5C3-JR_VfNZMG4ts,1220
|
| 529 |
+
numba/pycc/cc.py,sha256=xZnsrVcSa9My6R6zZEuTU0KdXknD32AJ67M2Qt-ckhE,10626
|
| 530 |
+
numba/pycc/compiler.py,sha256=1Sqv3wRKVDB6Una0LGAPvMKa-VBMu8SZYkzv02NbDUc,17982
|
| 531 |
+
numba/pycc/decorators.py,sha256=n4WakJj9iRYkdrRFoLLohE4ibhuNhy6TDQ8I3LMwvuM,1884
|
| 532 |
+
numba/pycc/llvm_types.py,sha256=n0obSYyFc7h356LmVqGhwFMKH4NpXIXF5BxztoU240o,1239
|
| 533 |
+
numba/pycc/modulemixin.c,sha256=0SmPP7pbDLRWtCE8HzlllpfT_AWWTFPnyIqWyz6k7h8,5577
|
| 534 |
+
numba/pycc/platform.py,sha256=xIy_JUOilVFCLwNG_6h0VU41IRoKSmv4G8NuO4ybLUA,7421
|
| 535 |
+
numba/pythoncapi_compat.h,sha256=wB8PCPCqYqpYR3YIdArroyYJ3WsEc5GhG1xKAp0DSZo,45414
|
| 536 |
+
numba/runtests.py,sha256=xv1W8XbzPewB_X32KXFugsmwt3lZL7lfKfryaC7N7KY,237
|
| 537 |
+
numba/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 538 |
+
numba/scripts/generate_lower_listing.py,sha256=WCaoIzn_LmFHS-pYTW6vdKufcnXl1e41-_XsV1mxnm8,5165
|
| 539 |
+
numba/stencils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 540 |
+
numba/stencils/stencil.py,sha256=FTJs2phQeT91x0mxMU4DGbdFKkIEWAlTPCgHQbxik4g,39893
|
| 541 |
+
numba/stencils/stencilparfor.py,sha256=Ar6Ge9UT25ybCsMnE8R40vDpHufK8zhzKVRW3YwA2vA,44974
|
| 542 |
+
numba/testing/__init__.py,sha256=QL904urGyqVF5OOfyq1uLnAn-uhgRcbboaQlj2obaMU,1976
|
| 543 |
+
numba/testing/__main__.py,sha256=MJrAbExox9UHv1UnMDx0f6JG_oA43cvhzHQoTOSl7IY,106
|
| 544 |
+
numba/testing/_runtests.py,sha256=V7XJTU_iTftXIu3Rv8FqQd_ECjCXG6B4vDdujOizMfI,3727
|
| 545 |
+
numba/testing/loader.py,sha256=pQdHO6VLZo0Lzbju4g0dptXGc64IJlbguzym0w006fM,1113
|
| 546 |
+
numba/testing/main.py,sha256=nUbyFwCjID4trB0Th4PgRgvvdcZ2OtCVblZJ2YdQV7g,29758
|
| 547 |
+
numba/testing/notebook.py,sha256=zuBfj8QHXFkNvV2oyz23gjFZe1Ixt7OFAMtgjCSqm-Y,5501
|
| 548 |
+
numba/tests/__init__.py,sha256=h3tyMOp0uUiirVDAOEY3Cymim51mHA77xTpwATXeu0w,829
|
| 549 |
+
numba/tests/annotation_usecases.py,sha256=0O7hw4-dVfAQ2mUoSLbjWYakSNzcv6B6nyBJCRPajdo,316
|
| 550 |
+
numba/tests/cache_usecases.py,sha256=bFw9cZVyvN9GQTdg_Ci4U0wF_8DLAKBwf5tXh95kTQQ,3566
|
| 551 |
+
numba/tests/cffi_usecases.py,sha256=xGpQl4X7akIxuqMOjx6mxt9tXVbIhVhHe0B6nmaF9tM,4927
|
| 552 |
+
numba/tests/cfunc_cache_usecases.py,sha256=XqWmWzZZy2Oztz3iTiig1TsJ6fpZaZyB6B99ThHZYKM,1608
|
| 553 |
+
numba/tests/chained_assign_usecases.py,sha256=KjBf_w7zeb-OPAYsNzJImekuRzLyj0EcMqJ8TZys9rU,1045
|
| 554 |
+
numba/tests/cloudpickle_main_class.py,sha256=GzSO01WRCCrXYlp8HShxryKJTwUvcAImg9F68WuLnc0,155
|
| 555 |
+
numba/tests/compile_with_pycc.py,sha256=0gA4UTDzds3oQ6aVgi47bhB0wcBtTJuTHoN3TZzhpVk,2980
|
| 556 |
+
numba/tests/complex_usecases.py,sha256=xlbm0rUg5prZV4qIUsekCRFjJCpIGBhLpgABnefor2U,1515
|
| 557 |
+
numba/tests/ctypes_usecases.py,sha256=lOXJpgWXqBG0AJ7IguSW-zuyA6iovRqIH67drTQj4Gg,2425
|
| 558 |
+
numba/tests/doc_examples/__init__.py,sha256=AQs2XphXAaU5K8g8XL27zyLP1L3VOYH1AP1aCg1uf48,267
|
| 559 |
+
numba/tests/doc_examples/test_examples.py,sha256=vGS3EIVT2p4LzK5MVbQrLhN4AzGFkR0UH0h8Ro3PsJA,23610
|
| 560 |
+
numba/tests/doc_examples/test_interval_example.py,sha256=FhXF9YCYOiWilLYzjlEzI1NB_aDcebTb84_8IBAGZ1w,8867
|
| 561 |
+
numba/tests/doc_examples/test_jitclass.py,sha256=hEKPXpD_3JmNAGPC3fhz6GHxofYRtM8ZwM2ZLJEigSA,3057
|
| 562 |
+
numba/tests/doc_examples/test_literal_container_usage.py,sha256=BKapYbcT80Kwe_QYDVTb89sGIi-hQ-r0x0q8mwlqfUQ,5762
|
| 563 |
+
numba/tests/doc_examples/test_literally_usage.py,sha256=9LK3Tw3gW1bhpqOd2IlscVXf4q0S7esdo2fcC6Kb9eQ,1878
|
| 564 |
+
numba/tests/doc_examples/test_llvm_pass_timings.py,sha256=aolHZB8rDoUUGlYzmWhcmJR9Y9mU9d5mRNZ6SBCVFGk,953
|
| 565 |
+
numba/tests/doc_examples/test_numpy_generators.py,sha256=CDWKZS7CpJy5Z_inqu6LLPDVpnhWouIWhk7w4-M1wMM,1099
|
| 566 |
+
numba/tests/doc_examples/test_parallel_chunksize.py,sha256=pKI38Udgb58Uaf37vsVASo6WEr8l10I4bI0AM_0ZwRs,4176
|
| 567 |
+
numba/tests/doc_examples/test_rec_array.py,sha256=fhCOCXYunEcO2D2ieOs6W2Iqe28vCDfi8avyuBuSF2M,1313
|
| 568 |
+
numba/tests/doc_examples/test_structref_usage.py,sha256=hbBFmHR2s6oD3KK4yqF5Bn17iIoGzIObQ1Q7jiJ6iYQ,4852
|
| 569 |
+
numba/tests/doc_examples/test_typed_dict_usage.py,sha256=XCrsqc6dZUX2-90UZwniAVL5Qqj-_dkqCS6IVX6Rdk0,4051
|
| 570 |
+
numba/tests/doc_examples/test_typed_list_usage.py,sha256=x9XKxjziN8dMxPsjMzvQwvAI0hT7_cuUvVM_JLgn76M,2941
|
| 571 |
+
numba/tests/doctest_usecase.py,sha256=i7DEqCXsEPt3XxRAk6tzMTJnHbdAJGpxPwCCXTuInjQ,484
|
| 572 |
+
numba/tests/dummy_module.py,sha256=HnzviWYvQx54SYXKY--jg7JgDDNVwSyawn1yWkyISUM,57
|
| 573 |
+
numba/tests/enum_usecases.py,sha256=rGVSwqi8zpbjsLoPdUO-vooLjL8PbNdOZcvG7ey_pZs,1018
|
| 574 |
+
numba/tests/error_usecases.py,sha256=Bf8ZmO68Vw3T2KU0pzxlmx1L8OoqYMK2IJxNsnXxcWQ,79
|
| 575 |
+
numba/tests/errorhandling_usecases.py,sha256=Ds-kMSAGf6SywK1xTyMPoXl1vwlDtIRtmchnAwluHDo,284
|
| 576 |
+
numba/tests/gdb/__init__.py,sha256=AQs2XphXAaU5K8g8XL27zyLP1L3VOYH1AP1aCg1uf48,267
|
| 577 |
+
numba/tests/gdb/test_array_arg.py,sha256=VlK8wthLszkVlo6WorHxfFO-skKhHteavYOagHedCCE,1723
|
| 578 |
+
numba/tests/gdb/test_basic.py,sha256=ttVJkT_1ZbTdAkRCN1mHq4jHt6rL_Q60At9FUfLMinQ,1162
|
| 579 |
+
numba/tests/gdb/test_break_on_symbol.py,sha256=ArsXuGi-1Zw2cLQ0TH3pQlHH-tpvEsj9FEhNBJ8WD7Y,976
|
| 580 |
+
numba/tests/gdb/test_break_on_symbol_version.py,sha256=uSK3IvYXac0RMqpqD-IAsUEzHx1Z0livBTKZjxH_dCQ,1940
|
| 581 |
+
numba/tests/gdb/test_conditional_breakpoint.py,sha256=hvzxre17KzBE9bN-NcNLg3Eg37MYk2XUgGhmDfIRD9w,1224
|
| 582 |
+
numba/tests/gdb/test_pretty_print.py,sha256=cb4bPcYpoOr_2n9CHHxiDTzpsx1I0ZB1f9CeT3oEi74,2416
|
| 583 |
+
numba/tests/gdb_support.py,sha256=geLjuf9hcrZonEuhKz3YkJo4s5Kui7O0lEj1q7HjpCc,7439
|
| 584 |
+
numba/tests/inlining_usecases.py,sha256=oC8Y29RUNdqSR0nWmEZ3JC0JeaRXCbP3wE45TauiiH4,1019
|
| 585 |
+
numba/tests/matmul_usecase.py,sha256=97UclzEySdrOuvhWLcWSvpqro5WXRMGgomZIA6M3Qdc,552
|
| 586 |
+
numba/tests/npyufunc/__init__.py,sha256=AQs2XphXAaU5K8g8XL27zyLP1L3VOYH1AP1aCg1uf48,267
|
| 587 |
+
numba/tests/npyufunc/cache_usecases.py,sha256=-XasSXNW7ewG8-HLpDj8yZThQOg38455UtWDuMfDGaE,1488
|
| 588 |
+
numba/tests/npyufunc/test_caching.py,sha256=ZFL7l3K4ma3RIOHfZTScN30NfUNhk0FeykIMKfOIScE,8569
|
| 589 |
+
numba/tests/npyufunc/test_dufunc.py,sha256=TkFmpHH2WXIta-SV3WK72WLMZMRgbS4LqfKnTrljXsA,34555
|
| 590 |
+
numba/tests/npyufunc/test_errors.py,sha256=zaR-AvH0tF2Ep1yFxR75cJkfcApmWBMFHRST_qD8o04,5497
|
| 591 |
+
numba/tests/npyufunc/test_gufunc.py,sha256=6mbQmZK5FHMll1kyBG0k7ZiC8dHmvctPP3MdW2FNr7g,28222
|
| 592 |
+
numba/tests/npyufunc/test_parallel_env_variable.py,sha256=NMlVyeMdSoFV3oBXxoR8VHeayPGDLMaNrgGG588MpBA,1264
|
| 593 |
+
numba/tests/npyufunc/test_parallel_low_work.py,sha256=BPeAxpfoZu9H2S880AeVAtWlIKO9FM9DryWG6niFeYY,1056
|
| 594 |
+
numba/tests/npyufunc/test_parallel_ufunc_issues.py,sha256=Rv5Ztyj1QG2sszCPBso5Mex6c01d4uDAx2sUNNsZns8,4310
|
| 595 |
+
numba/tests/npyufunc/test_ufunc.py,sha256=oaiPMmJubzPAYDNNhu3fDwkSaGK6Atyhs8HO2qN0Cjs,5219
|
| 596 |
+
numba/tests/npyufunc/test_ufuncbuilding.py,sha256=B3BkVrm9svA58wXiJey-FUXD1Z8HBkNd9wf9stGxeqs,16809
|
| 597 |
+
numba/tests/npyufunc/test_update_inplace.py,sha256=sr748I5uqoaWhW1YNrG4j2ScagmUM1Lrq7NWZgTuj4o,5078
|
| 598 |
+
numba/tests/npyufunc/test_vectorize_decor.py,sha256=Z7NS7QmTt0CmCZbOsI-e4K_ujz6EmgvAIdqn1mZ4eAk,4504
|
| 599 |
+
numba/tests/npyufunc/ufuncbuilding_usecases.py,sha256=CM-gB-XcZqb-CKUqhEt0NiK-9slc_yUstDlYyzibaqw,1061
|
| 600 |
+
numba/tests/orphaned_semaphore_usecase.py,sha256=Lwc2zeGSfc3In51ROGkwGE7fyLeZoIwfz9_1vb5yC9Y,592
|
| 601 |
+
numba/tests/overload_usecases.py,sha256=ySd2qYfd7CYCnzbG5NJHyEvtZCTCFySM6fixrQrbWR0,582
|
| 602 |
+
numba/tests/parfor_iss9490_usecase.py,sha256=aNDICFHJvtXpKEMYcI9STPuCYuVLm7lP-OY4s75P4kM,2640
|
| 603 |
+
numba/tests/parfors_cache_usecases.py,sha256=rj-UN7QzYamC-xAYEVRihggNCyTFEpFK0ZzktUqVxxc,1778
|
| 604 |
+
numba/tests/pdlike_usecase.py,sha256=eDi-ks_pldk6qbYMRsLTDFhnCe7-fRA3g41PJGPpYNU,8780
|
| 605 |
+
numba/tests/pycc_distutils_usecase/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 606 |
+
numba/tests/pycc_distutils_usecase/nested/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 607 |
+
numba/tests/pycc_distutils_usecase/nested/source_module.py,sha256=SXWOoaRIkoBpDt-8Djmy5Tj7aOUCQ-DMAFgMnrgB5wI,328
|
| 608 |
+
numba/tests/pycc_distutils_usecase/setup_distutils.py,sha256=uO6Qiv98Wqw_DUSup-GvyNsTVD2u-N6YOgijFIzEuZQ,207
|
| 609 |
+
numba/tests/pycc_distutils_usecase/setup_distutils_nested.py,sha256=d-HOlctJ8Mz0iF1eGfVfPgf5PC9YQtBx4SIi5BVVyj8,215
|
| 610 |
+
numba/tests/pycc_distutils_usecase/setup_setuptools.py,sha256=19kQpIjGjT-0AcYfONCTHb33JyC7lkv-IrVBSYkWkA8,173
|
| 611 |
+
numba/tests/pycc_distutils_usecase/setup_setuptools_nested.py,sha256=zWLMLRjwyBO3p-51165Qpw29fUlc4hvLWi_wBPFoIXU,180
|
| 612 |
+
numba/tests/pycc_distutils_usecase/source_module.py,sha256=XdiOyXf33sIsFquozugu4-qVkNK8uDyap2M6cR3FhzM,326
|
| 613 |
+
numba/tests/recursion_usecases.py,sha256=NIkXj_bUe2MUjK5lSlDAszG7Th3llrLWtdOv3c1AMrU,4133
|
| 614 |
+
numba/tests/serialize_usecases.py,sha256=RfKx44jFPUvfEjaumYOj3XKHeOcBKCaP6hIkV-t1gqM,1982
|
| 615 |
+
numba/tests/support.py,sha256=htXOBKvMlLUu2IJEPTPXoK0BalPA3MCadvPg94EbPD8,45401
|
| 616 |
+
numba/tests/test_alignment.py,sha256=y0vaLiqkDWaUwL10r3o3yx65OgpHVQ9FbFITSvhgC1k,1086
|
| 617 |
+
numba/tests/test_analysis.py,sha256=0LFFvQb2q7JS9mvaFA6zROc9fr5uAzowpP4LwcQ2WS4,34576
|
| 618 |
+
numba/tests/test_annotations.py,sha256=LATeDSyu9gYwo-3jYnVDSKerPEPu_RSoe9X6NbnhyQ8,7540
|
| 619 |
+
numba/tests/test_api.py,sha256=kAPv2qeCKuCmYnnYIcNmhbUU_Q00EczpTN1lqoLP-lo,2614
|
| 620 |
+
numba/tests/test_array_analysis.py,sha256=JQaBbSuA2_8GI_j3XuXsNCEN2UmqbTUtmk6bF3yuI_k,42447
|
| 621 |
+
numba/tests/test_array_attr.py,sha256=ZzHGgVD2U2ouaNjbHK8LgiC35gH-Qvf9uFfCZpRzDzk,11665
|
| 622 |
+
numba/tests/test_array_constants.py,sha256=QYL1Zz-sSYuvGxKUYnCSi65i-9CunsOiiiC_jxUNoS8,4826
|
| 623 |
+
numba/tests/test_array_exprs.py,sha256=wb-w01blMvQJSHrAiW43_D3ofCDPPc-6e6wjbDZ1zA8,24123
|
| 624 |
+
numba/tests/test_array_iterators.py,sha256=wQ6z2BkrbEaqWwTWirNZCrH6e_sKAIfCqXgGilaDGpY,17452
|
| 625 |
+
numba/tests/test_array_manipulation.py,sha256=s9NrClPyvxuPsPf3O9VjpDIliWMU-YjIIewJXcA78v4,54748
|
| 626 |
+
numba/tests/test_array_methods.py,sha256=ITX22egr-iYIwXRAuZasTpyZ22rRzltokhCLGddy6n0,64552
|
| 627 |
+
numba/tests/test_array_reductions.py,sha256=WF1ELY9XPohjk39oVAkuRFV52qUyEJDY_5jMLLk_a6U,37921
|
| 628 |
+
numba/tests/test_array_return.py,sha256=xPqpMaVkFYUlV4zfr7gINoJD6UDRMf3eFJ4wvjkZkV8,856
|
| 629 |
+
numba/tests/test_asnumbatype.py,sha256=9xXP4O04kgzq5JxD9R2DvBnSsUKclYGZoL6aD9V5fV4,5668
|
| 630 |
+
numba/tests/test_auto_constants.py,sha256=IEjzoT8_H88ferTGYz93Sszb8uUSi0hr8SOxwW7Oklw,688
|
| 631 |
+
numba/tests/test_blackscholes.py,sha256=7-eHw17Vhrd_tn9RXhQA_5aw6dVxURI-6VkW6TaMebs,3599
|
| 632 |
+
numba/tests/test_boundscheck.py,sha256=rX_OPNrDOef2IEz_GLD6pS7YJYzLjBHSUaQfgu5EkOs,8113
|
| 633 |
+
numba/tests/test_buffer_protocol.py,sha256=dZ8W-fkn0A3I41CbQu91mvScgU7SLvxfYjDX29EyIjE,8810
|
| 634 |
+
numba/tests/test_builtins.py,sha256=wMcXu7uubH6Q3DEbBiQN7dB_HnxkYrZwowJmrn0_S0M,50501
|
| 635 |
+
numba/tests/test_byteflow.py,sha256=fSiY82ci3R4OsxIthMlTqt1Y42O-Pn7rBa5nHaojqBY,2426
|
| 636 |
+
numba/tests/test_caching.py,sha256=ytBONNtM64a7SjT4K-ajb1VqhSDtY5dinUmAIVPXbvs,40044
|
| 637 |
+
numba/tests/test_casting.py,sha256=KcHdtGTQgBXgMr5Yi6ghpw-4AW3io-inYTPv0mas2xs,3913
|
| 638 |
+
numba/tests/test_cffi.py,sha256=lnFqpoWcsoAz5EibxKym9TtbWYFXBYCWKd75qagQczQ,6695
|
| 639 |
+
numba/tests/test_cfunc.py,sha256=YIxEkOhtmse0d7nNzhB5NKA0vXd36oE90n260mcD1pE,13079
|
| 640 |
+
numba/tests/test_cgutils.py,sha256=CwjjiiRlPsuFKN6gybHAcGeRrSIYsx1_8vUZO26NA1Q,4863
|
| 641 |
+
numba/tests/test_chained_assign.py,sha256=Qy0fLfmKP10z24BTTyf8NSRIBaUp9Y9Cl8HRKtaLWTA,2480
|
| 642 |
+
numba/tests/test_chrome_trace.py,sha256=yBVKUJdic4GrutGM5e09lDHy1KyG-xjN6gqfAKsrIhM,1432
|
| 643 |
+
numba/tests/test_cli.py,sha256=ryU8WuXwMeKn792ephhhIPl5xolbOvDplFwz_8Qxg7E,10413
|
| 644 |
+
numba/tests/test_closure.py,sha256=GF7F90PzJiOZyxONKf1rxaLMP8nQwt6I03lBOFUsi94,13629
|
| 645 |
+
numba/tests/test_codegen.py,sha256=LsfZNz31W4nT811cHrtvgqhVmPTg9rBioYnBeBAQN5s,9048
|
| 646 |
+
numba/tests/test_compile_cache.py,sha256=_nvI7rUTKsCPQWoiEln45I1fy2zYAB7cH_ioGDDgMG4,6456
|
| 647 |
+
numba/tests/test_compiler_flags.py,sha256=DKZkORlXLVM9qWL6mT7M5NL9a6_D8tKVn_eXJgGasME,3554
|
| 648 |
+
numba/tests/test_compiler_lock.py,sha256=lojUn2JRt9uINgVJobHwFfNOvJiKaGTWvjuNZ8_xyIg,511
|
| 649 |
+
numba/tests/test_complex.py,sha256=m8OZlNlu6yuIrb_9zwgyd9iT-qKIGpoPOoZyLS4eLsQ,11325
|
| 650 |
+
numba/tests/test_comprehension.py,sha256=jDRvorPUS11cCrlosHY8JE-LwcjwY93CwSIDXBiJL8k,17093
|
| 651 |
+
numba/tests/test_conditions_as_predicates.py,sha256=EC925MaOIm_6fVmn4YtvlwwOCX0i_4T-kI6I0Oql9wY,5275
|
| 652 |
+
numba/tests/test_config.py,sha256=DkRUifyGOL7Pawt99wsb_hxiZQZXZkA3ZbJNl7D9Z3o,7934
|
| 653 |
+
numba/tests/test_conversion.py,sha256=AYC5UL9SjzPl1sS89Tj9kPMZBiZMMvIVtfo7GAome4I,6900
|
| 654 |
+
numba/tests/test_copy_propagate.py,sha256=-IY8udIT0z9LKBKgjs0f-799OLsuhfXptJ1x4TFtNbI,5658
|
| 655 |
+
numba/tests/test_ctypes.py,sha256=OYEIJ75kdAUrE5sYNDSiF26t8jRazbELiscDu1_LBJY,7431
|
| 656 |
+
numba/tests/test_dataflow.py,sha256=P77UdUTt6_pZiUsG6Kn-VyIPlixcAvDoqbpK0gYQylY,4848
|
| 657 |
+
numba/tests/test_datamodel.py,sha256=sRe5QyCVkX7y-p105AGpK45C84YGJFMt5R9lvuq_B6I,7014
|
| 658 |
+
numba/tests/test_debug.py,sha256=XqMCqhst5NTom5mpLIhueWNb3rCypwse6jRfKtyutA4,12083
|
| 659 |
+
numba/tests/test_debuginfo.py,sha256=cHIQnKBf-yE0Fu70WSic4iBmqZS7zivrzq-KavlcX-E,29266
|
| 660 |
+
numba/tests/test_deprecations.py,sha256=J9_Y4eO_RDdxymBb15GvJex9e1ASzSkPupYSQrAlp1g,10186
|
| 661 |
+
numba/tests/test_dictimpl.py,sha256=3ybNw_n9O0n7QmWMEmmLj_1IQcZnjTiQBEUMRwkAZPs,20038
|
| 662 |
+
numba/tests/test_dictobject.py,sha256=fAYf8VLCcC31ogEobb4nUTug3M7qvC-6RK7cpZDIVmg,71341
|
| 663 |
+
numba/tests/test_dicts.py,sha256=qNiyJx7wv_UcWuoeP2iDaXJjiWOO6sLncpCKgnuVr6s,6066
|
| 664 |
+
numba/tests/test_dispatcher.py,sha256=8r3ou5lBhuE0ipcFXXSjM5_LrdkrMOBF_fOUpct0cPQ,38635
|
| 665 |
+
numba/tests/test_doctest.py,sha256=ntvCtFkfebvihMiW7NhAeFK9Mn5f3Om-DR4fiTburzI,795
|
| 666 |
+
numba/tests/test_dyn_array.py,sha256=bwVWSOlsu2FwsIX6r6CUcoutiixTnD2PscBBKDzSTYE,55276
|
| 667 |
+
numba/tests/test_dyn_func.py,sha256=VeYpJCAymujXN1nBuyHl0W8pHS3cbpBDBpAGQ2CiYJM,811
|
| 668 |
+
numba/tests/test_entrypoints.py,sha256=33rd8aC3S_B14v3T80KmdcLfC9Jk_Covn2EbV5Aljto,8152
|
| 669 |
+
numba/tests/test_enums.py,sha256=svJ3SzcmpvnFe9jw9Ig56jpNtgZeZjEkA-bFrqU2q8k,4988
|
| 670 |
+
numba/tests/test_errorhandling.py,sha256=dfb4VWL8da0VFippIGrmcoyPlFXawg0WWrFiTqJ9CKA,15032
|
| 671 |
+
numba/tests/test_errormodels.py,sha256=1Cxqp7-0pwdJlArxDyeohTAfImHYpMKb7_acbW7OqRA,585
|
| 672 |
+
numba/tests/test_event.py,sha256=j0QylybHn5QEJhrVvQPyeI9F__kHrn4m7jpB9JRw6rE,7333
|
| 673 |
+
numba/tests/test_exceptions.py,sha256=VfkBSIQh4LhUW2gM81bcKCzobwEHIeMArLBoKIMzGAM,16069
|
| 674 |
+
numba/tests/test_extended_arg.py,sha256=2Ql7lSu0TBuU61Z0zoP4cKlmZd1mrcqZtOWowb70wKE,1569
|
| 675 |
+
numba/tests/test_extending.py,sha256=u1_NaqUmnwbgwi3Fsv9cgKVqVTZ_QvR0bVqkN2ScMVU,68192
|
| 676 |
+
numba/tests/test_extending_types.py,sha256=3T4005XZFWOzscGAmNB6qwnC5HlVz4_AcsO47dW_Wvg,4990
|
| 677 |
+
numba/tests/test_fancy_indexing.py,sha256=GflLNu9YY_yi13KzFY8V_5YcRg6HbxNQbKa-nAaE7JI,19713
|
| 678 |
+
numba/tests/test_fastmath.py,sha256=WmCUk3znkhiBhkxhTsudEaA4ci2B6UN_ZnfQky6ib4I,4564
|
| 679 |
+
numba/tests/test_findlib.py,sha256=Tt9Xzn0-3EprPqAEt946-Ses3I8-YwYCN-hMi-ctfig,324
|
| 680 |
+
numba/tests/test_firstlinefinder.py,sha256=r0RgId51Ac794Io2a6YOrdUVbQfI4hL_EoDkgYJIanQ,3392
|
| 681 |
+
numba/tests/test_flow_control.py,sha256=Enpxf95eTr3Hrfq-5th0ffEYMPJiB0PQAgZXj85d1Ho,42596
|
| 682 |
+
numba/tests/test_func_interface.py,sha256=pOMEhD3kH27XbNpe79TahiFRN8ueCcUanbNTwAH1OXg,1038
|
| 683 |
+
numba/tests/test_func_lifetime.py,sha256=3cETb4trG71QeIMSN4foYos7DkZTLQufrc9ENs8ACmY,4908
|
| 684 |
+
numba/tests/test_funcdesc.py,sha256=PJ4s19wiKGYUTlO5wpHNroM2H5ifddYsPiPpIgiKNv8,1698
|
| 685 |
+
numba/tests/test_function_type.py,sha256=A5aFUTuGpgxzOhtTgl56DvcYjrytVYP_kDSCOgjwByQ,39010
|
| 686 |
+
numba/tests/test_gdb_bindings.py,sha256=gPD5l-zxMGrhQziarBEC_QaGM0eoL38SRDBqgc2CRrg,8317
|
| 687 |
+
numba/tests/test_gdb_dwarf.py,sha256=HYg0qUCIP0ucW1UGD85v0OLZ_Rr0Tfu4s3uP5B9Ytu0,9269
|
| 688 |
+
numba/tests/test_generators.py,sha256=b_0h4IZfKRTnb-rWanA02GcP0t2neBOW3bQzIEVVKQo,16981
|
| 689 |
+
numba/tests/test_getitem_on_types.py,sha256=hsEpV7IgJXWNUYP1L77xKaNujlbmOvbLK4uIdRc6ri4,3564
|
| 690 |
+
numba/tests/test_gil.py,sha256=WRDNrOROgZhDb3lNMhh9TBqlfIa-ZE0W2tXBwwgzEEI,5889
|
| 691 |
+
numba/tests/test_globals.py,sha256=VQgRuotHnILWTfFY7Bg91VGxDsNmmMM2GKPF1AeXAiU,7329
|
| 692 |
+
numba/tests/test_hashing.py,sha256=ss_UGyIxaCiHwUVcgu5y2ztLMgziDJ-8zITrpLOTAsI,19226
|
| 693 |
+
numba/tests/test_heapq.py,sha256=VXHJSinvSStGoVQLpgBOx17G3ytBbKrsUBJezPUW_O4,14456
|
| 694 |
+
numba/tests/test_help.py,sha256=VAYX2JIdCqrjtFuJo72r-_4Kj9iPcF8JSIKtRwxzSMs,3523
|
| 695 |
+
numba/tests/test_import.py,sha256=fur18iYNN1gsQ5WSGKK9y_nRCtHKU4n3jRp-MBBKuEw,4036
|
| 696 |
+
numba/tests/test_indexing.py,sha256=A75GHibuaQJsXKAq_xVEQYUZKCIkVi3j69S6qDO9yz4,38601
|
| 697 |
+
numba/tests/test_init_utils.py,sha256=GVZ3bG9xAfp6rWmfmtAYoJk9FyxyqhEq0VSBY9JA4M0,1557
|
| 698 |
+
numba/tests/test_inlining.py,sha256=-pMzweKPnI9HkbgEUc4Kc3gzzm-UKYFP99Bi4HsvcAk,11520
|
| 699 |
+
numba/tests/test_interpreter.py,sha256=qVSslKyVjndqJp5957QZz2nndMrRAGBYqsTuFI598vE,30293
|
| 700 |
+
numba/tests/test_interproc.py,sha256=NLOub2C1frPWw7dlVKHTllI2_rLF5BcAzFEg4a3Fgkc,1099
|
| 701 |
+
numba/tests/test_intwidth.py,sha256=A9JymBQSHZtQaGkQqmMOCKdbDgY97JMKnYjIEWVMdMg,2703
|
| 702 |
+
numba/tests/test_ir.py,sha256=cHqnyUh2-f6fd66wbUOiQqUHFMBR75bWAzCyhDb8_ok,20060
|
| 703 |
+
numba/tests/test_ir_inlining.py,sha256=hS7raQOqe9Gvnd7g97qyIdlsmn7fxhSlqKkEC6AY7Cs,44707
|
| 704 |
+
numba/tests/test_ir_utils.py,sha256=ErZ7XgZ8oNntp0TrvVh20QkreQoFZpOBJThukdKO3m4,9457
|
| 705 |
+
numba/tests/test_itanium_mangler.py,sha256=eGG6LBnVcAXltL3laDLJuMnQN34gfI_GbGzaRXiPFbc,2561
|
| 706 |
+
numba/tests/test_iteration.py,sha256=xyYG4PgnanlE7M9SNzv33vJo8PKNPC_pk8rd7D_vDBQ,7049
|
| 707 |
+
numba/tests/test_jit_module.py,sha256=gAkHb87P2kk3ppThgeCWOdag-8PDhvQBdTvu0CmA0PY,5248
|
| 708 |
+
numba/tests/test_jitclasses.py,sha256=DgyUWYCigq9M104wfDVuRqit6Qum4RrLKdb2wbl4J40,59199
|
| 709 |
+
numba/tests/test_jitmethod.py,sha256=g2RTCmvFbNyNO4JaKcsLWeAdmrrOXrjB30pOUGyH_iU,2000
|
| 710 |
+
numba/tests/test_linalg.py,sha256=xz6w0KYO3_FEuEi5muJA0AaCVkbFFXxKeFMLAs4Ybhw,96098
|
| 711 |
+
numba/tests/test_listimpl.py,sha256=FEgWroRVAkeiorccJFwfmgLhXsJsyiCVkGvQzUvjESE,16147
|
| 712 |
+
numba/tests/test_listobject.py,sha256=52f6E2RX0vASiB6d7CjmQ62tjmcFFGu9pUAHyx8dYkM,44676
|
| 713 |
+
numba/tests/test_lists.py,sha256=ARmbrrb3sFU3yyUfBtI-XGlKEQl7gbBR_ngEWg-NNFY,51554
|
| 714 |
+
numba/tests/test_literal_dispatch.py,sha256=cYQ6P4o7rYyJc6jNTV66-knNKo02B-anN3Ctccvplpk,11732
|
| 715 |
+
numba/tests/test_llvm_pass_timings.py,sha256=z8MXzdlTAqIQ_KWFqPZCrULg4usUNCPk2eUm---59zQ,4493
|
| 716 |
+
numba/tests/test_llvm_version_check.py,sha256=o8RSkDrsnljJ3xzbtsDQAkkqUEJwI3F2SEN9b1f1uMA,1284
|
| 717 |
+
numba/tests/test_locals.py,sha256=8d61r5d1lkIXllE1ObI5oDZ1IwTTyeAtkHFaiLG4orw,335
|
| 718 |
+
numba/tests/test_looplifting.py,sha256=DAPyP8Y60Bam8p4CaGsL8xCDIK_CKYf-gKnf2uBUD6I,16335
|
| 719 |
+
numba/tests/test_make_function_to_jit_function.py,sha256=JFsIpGLwunSUqImiWUcik_3AX7JRqRTY4qgZNMnPgmc,8288
|
| 720 |
+
numba/tests/test_mandelbrot.py,sha256=ZLrAAKncKA74KLlgLbyfu6y7gp3FwZy_riAIwVlRkx4,595
|
| 721 |
+
numba/tests/test_mangling.py,sha256=TtBFeN7EKTKtozvkwuAktbnKONG-bCH1jlHD-3n4EWw,1264
|
| 722 |
+
numba/tests/test_map_filter_reduce.py,sha256=xyfL19UnK8WGXY2cNXBbiAKU7ZX3q5wZSVWZqaWLrYE,2031
|
| 723 |
+
numba/tests/test_mathlib.py,sha256=hcnmbl9isPlZW9fyTB6LBGC8Ki7Hce80mdUvHjgjbEA,17432
|
| 724 |
+
numba/tests/test_maxmin.py,sha256=UDqYYUfJveub3U1xEqvjR_w1t7q67vPG86mZtizXzEA,747
|
| 725 |
+
numba/tests/test_misc_coverage_support.py,sha256=UdIHgJsBLc0QQMuyrd5-D-plIGD-pDITqKux71QRB6I,2134
|
| 726 |
+
numba/tests/test_mixed_tuple_unroller.py,sha256=TMVAg_qm39WVfnz6XT_TZM4NgrLg7S20FeMAcOdBEfA,62041
|
| 727 |
+
numba/tests/test_moved_modules.py,sha256=OcjNSGqNgvXwFQT0ipI4j8XP-ZbHPRFrXi1-8rjZIZE,1319
|
| 728 |
+
numba/tests/test_multi3.py,sha256=hCHPIsHlx5wXW1PgkycrEVAxw7J1HGbn8NmnnbLN5Zw,1229
|
| 729 |
+
numba/tests/test_nan.py,sha256=hmWtRaxUQvuBSQlfQkksgwaw4ZZ7Xjq6oyOktMnCU6M,751
|
| 730 |
+
numba/tests/test_ndarray_subclasses.py,sha256=Jw2Zf5fanHlhihcp6BwzzxOlTYPhSQ3FcIdOOcK0v_0,10687
|
| 731 |
+
numba/tests/test_nested_calls.py,sha256=G80JzLpJGN9oCYhHX2NMviQ7dpCG5loYW_vfS0cbHoo,3771
|
| 732 |
+
numba/tests/test_new_type_system.py,sha256=Cr-Zhg3DuZY6cry5d0xBeqU2OWlzFifT9DLkDX7J6Qs,898
|
| 733 |
+
numba/tests/test_np_functions.py,sha256=ZhMucHRXJ4iYoJCTe3ZrJdbJ9RH6T-dpXiavijYNwls,229133
|
| 734 |
+
numba/tests/test_np_randomgen.py,sha256=jp7Pj3sL_oXrfX9587Ou_wqohzHhs_ktbEkvSQqI5Ig,54301
|
| 735 |
+
numba/tests/test_npdatetime.py,sha256=fGxZIY3spAsYsetl7JgXCJbpwmsvK0ZtQs8NHTNvSdY,43615
|
| 736 |
+
numba/tests/test_nrt.py,sha256=mJQubsvf8o6m4KbF9RMXhB50qY8cyr0KTprNQnSwcB8,29787
|
| 737 |
+
numba/tests/test_nrt_refct.py,sha256=k09EmgKBFPL3aCXBUaf7PYm9RmMXf3aqG2Fe2ZjR_Ic,2911
|
| 738 |
+
numba/tests/test_num_threads.py,sha256=ZpuRV1hDfNYqStXZZ-pBkJP-8Iz7QKHjeTvJn1DyPMw,23511
|
| 739 |
+
numba/tests/test_numberctor.py,sha256=uMpKKjN7S3quNI-ajwBxatwy12RHhbR8Parg1E4BYyw,7179
|
| 740 |
+
numba/tests/test_numbers.py,sha256=iV9xS_t0FC0_ecUgva1pRY3-2_X3_1Xd58yk1oUw5hk,3415
|
| 741 |
+
numba/tests/test_numconv.py,sha256=dFdTlZA1_agMuxP1OER02cKqZ-RR8dh0ES_69XdP20w,1008
|
| 742 |
+
numba/tests/test_numpy_support.py,sha256=YsOjgIHdwiqzeerH3cP-Uth13jgZAoAZ39Bb8MnO5ec,17397
|
| 743 |
+
numba/tests/test_numpyadapt.py,sha256=f9iBBwwkwxrIpHC1Frp-bf0gl0oqcWhB9OwF3AzbuMk,1307
|
| 744 |
+
numba/tests/test_obj_lifetime.py,sha256=g8N8pszctyim9xlC_SFdWlEkB9POJdXbi3E2NuOnPXU,15316
|
| 745 |
+
numba/tests/test_object_mode.py,sha256=V1b7c32dfpcQqMTuJIAsHVzjpC4aLORDgi6FzH2E_18,5368
|
| 746 |
+
numba/tests/test_objects.py,sha256=RtRWC40agdYKfJubbWD2VUIp99U-8Vlel-KLAJOl4_o,1319
|
| 747 |
+
numba/tests/test_operators.py,sha256=lDzhL6OxdPeZQJnolwknGU5fUma8GxjAuLyKy6o4Ukc,50699
|
| 748 |
+
numba/tests/test_optimisation_pipelines.py,sha256=z4n9_uQYGFPFOOAwth0IugJrWmcejyjBi9Pe4yigjpw,1692
|
| 749 |
+
numba/tests/test_optional.py,sha256=0its7sre69mtSqePamMqOzudWdYGcdRYbcHWn99HeT4,6502
|
| 750 |
+
numba/tests/test_overlap.py,sha256=P8MUVACNycTX54KFFmYzVlNxogayjlVspS9HtKZH-2w,3839
|
| 751 |
+
numba/tests/test_parallel_backend.py,sha256=8PyoHAyXzkpuFf9Zzx2qvllZcYahPN1-B8nzTaypIKY,42150
|
| 752 |
+
numba/tests/test_parfors.py,sha256=ApV5WmBGB7siKTDFMiOuJUc3d8qYSdnNTHQoMqORFU8,166099
|
| 753 |
+
numba/tests/test_parfors_caching.py,sha256=rf148DXLmLZNWFQgNCnW26lIBECRop4PufbWgk-pC7I,2962
|
| 754 |
+
numba/tests/test_parfors_passes.py,sha256=TP_mY4NjR9dicGgOhSSeLqB3uxvYo2HwrbL40KfU254,21064
|
| 755 |
+
numba/tests/test_pipeline.py,sha256=pqCu3ZyutdOxwGwPf2UEgh0BuajETlnb1m7UqwVjxV8,5254
|
| 756 |
+
numba/tests/test_polynomial.py,sha256=wiK0QaSAV49M0DFNMGN_XfX8NLpxEdyc0ahWwLpmyzU,19776
|
| 757 |
+
numba/tests/test_practical_lowering_issues.py,sha256=ecFnAiMhzk7fwxAHvvVXaoepQZDjhvW4U15ixnL0oRM,6953
|
| 758 |
+
numba/tests/test_print.py,sha256=EaNmfFd8gx4RsLKc0d22fVtAdLqi4LMXEh3f03UJLFI,6144
|
| 759 |
+
numba/tests/test_profiler.py,sha256=T-46A6_bMjHc3izo9zrmjIdZ7EQSewAbEAQ1AFK1AfM,4060
|
| 760 |
+
numba/tests/test_pycc.py,sha256=vyr4DJmBwAlqYYqE2yusz_1CKBYVHXf0APpj5tUXcAw,13233
|
| 761 |
+
numba/tests/test_python_int.py,sha256=bZhwlvC2KpAn1x0ID8HOerUpSuOULPMz-cLO4gNXVIs,1690
|
| 762 |
+
numba/tests/test_pythonapi.py,sha256=pLN9H8hX-xP8SfWPLdh_OOC0dn7jOvrtY8j5trV3Rls,3935
|
| 763 |
+
numba/tests/test_random.py,sha256=xunfNU0MU_kTRAKjjxwBQMEGk2HdCNOOT66a5uEPsy8,73909
|
| 764 |
+
numba/tests/test_range.py,sha256=J9xJJeu-xOv-qnC4CFqRB0Y8APAfJwFw4tUBaSvLWnc,5179
|
| 765 |
+
numba/tests/test_recarray_usecases.py,sha256=v5UuuUNowgDnJ3nx5vPKBNt00tQMZMg9BBQ6_KzWcjk,3839
|
| 766 |
+
numba/tests/test_record_dtype.py,sha256=8TIJbFz92G6FmSuPys-ym2biuU_JTjVnG4lA0_3YLxE,57298
|
| 767 |
+
numba/tests/test_recursion.py,sha256=K6Z1vT5beETZgN5Xz6qs-3vHP7zEY_KDT7XDjHJeshI,4602
|
| 768 |
+
numba/tests/test_refop_pruning.py,sha256=K5YmwkDN41c-pIUcPcK-N9LYy-cDSShz0RX0Zhy28iA,5826
|
| 769 |
+
numba/tests/test_remove_dead.py,sha256=KUEbJ1uujvquy8exzEhpFeytZfYxm1CWRnTMvcQZxcc,13717
|
| 770 |
+
numba/tests/test_repr.py,sha256=vMYY2byejl_KyZTB5JopGMKCD8NeYeNjnjJ_uYFRgdU,1656
|
| 771 |
+
numba/tests/test_return_values.py,sha256=KCLvJRAoSJugioiXe45HZHAWbPGy35-v7TWi-joEodM,2062
|
| 772 |
+
numba/tests/test_runtests.py,sha256=VyYj2gOZ3GxSjoFXMVlJA5W4lYGYx14PwL9ZGH4Trfw,11292
|
| 773 |
+
numba/tests/test_serialize.py,sha256=UhQQCzPwzODqbI8DqROlLYyyYvaX9VKIsgg3mcH9MA8,11088
|
| 774 |
+
numba/tests/test_sets.py,sha256=2JbWMI63gfq85FoGfqYNF1XgPWodbI1SohfvSgvdTgo,23282
|
| 775 |
+
numba/tests/test_slices.py,sha256=4zotg9-XrVJEyYf7AMWt5AwKp-luxJ-_nEIRHl-Oiy4,8449
|
| 776 |
+
numba/tests/test_sort.py,sha256=3YBVPEFORrRMcupu41BsULuEEUB3MuIt51H3dpse188,40742
|
| 777 |
+
numba/tests/test_ssa.py,sha256=08zQ9c7R6FOL3iOoW6dlG2pwUU8Q8Wz0wXLh__5P1cE,18974
|
| 778 |
+
numba/tests/test_stencils.py,sha256=OA7TyK4Mq1V6EHTaNLIflJPCQYEp5_zISkTts69aYII,127272
|
| 779 |
+
numba/tests/test_storeslice.py,sha256=LVlURBWUfpaGUsk8TC5rv2uSLZM-FuPAnaz3PiEhFE0,1940
|
| 780 |
+
numba/tests/test_struct_ref.py,sha256=_nZ4BJ4vzQ-2wCLrLd2MQtgdlZAySQ30Q9dWzgYG7jo,12185
|
| 781 |
+
numba/tests/test_support.py,sha256=GhJ1s3hZl2GOhdm29WzMKzg-POIS8-bPoVc2Q-hOJ4I,14133
|
| 782 |
+
numba/tests/test_svml.py,sha256=B6B_wUTNnuKO40UOC9YD4La8X8pcJEcYHgiiwUIuO_k,15726
|
| 783 |
+
numba/tests/test_sys_monitoring.py,sha256=TsKgrsc5rx9iX77-9JFRImN0P6XiIBdjyFgAad5iOR4,32717
|
| 784 |
+
numba/tests/test_sys_stdin_assignment.py,sha256=NfkWGUZSKP9S1Ljr8FHjh58xnqTnOWrdh6OtEo8N148,1665
|
| 785 |
+
numba/tests/test_sysinfo.py,sha256=MgPhaN0xtlOTse6OLSYjiFykAXvWWXINGYOkxa_zjGc,5890
|
| 786 |
+
numba/tests/test_target_extension.py,sha256=wGmlHdocHb0CLD32Lf9saq01rNmsbbyYF-68X16dtEU,28255
|
| 787 |
+
numba/tests/test_target_overloadselector.py,sha256=mLwsAg2bdMfVT9gZA1Xh40ejOpkHvrVpeuxn48PTSow,6226
|
| 788 |
+
numba/tests/test_threadsafety.py,sha256=R-5T_uNcy27TX57izO7GuTf5WZXpkXdEiofc0VJT5QU,2787
|
| 789 |
+
numba/tests/test_tracing.py,sha256=DC1Gabw7E9b3BzwdApxlE6oEM73nmQoYxBucL8jAoAU,4855
|
| 790 |
+
numba/tests/test_try_except.py,sha256=jP0chLxOfQtF_omHJJ0Vx-I015jmS4g4cZXdEsPwUyc,23797
|
| 791 |
+
numba/tests/test_tuples.py,sha256=fbYmlJA7wtogDauMsiz6lZzicPqu3nK0F4ezt-yyTS4,23912
|
| 792 |
+
numba/tests/test_typeconv.py,sha256=M3S82AjZTIiuBDx-AUZNfTOhrVIgT6tEPEPRB2XY5gQ,11167
|
| 793 |
+
numba/tests/test_typedlist.py,sha256=w3IUmFnfZ8M2jC20ZOkCi1kgCMcrNud5SDrOdzoG-jE,50620
|
| 794 |
+
numba/tests/test_typedobjectutils.py,sha256=wORlAhi7rywQ1JpHduOJDlZH_l_a7JAhEgqdSvdU5Ck,2352
|
| 795 |
+
numba/tests/test_typeguard.py,sha256=0kLxdIvu-C6kcbSfBb2yI9Ylb4L3MCZ0T5oleiHEQuQ,1153
|
| 796 |
+
numba/tests/test_typeinfer.py,sha256=hx001QWC1PkEsPfph9AEWqqlcrvjIXTxM1lSDEOQ_I4,30851
|
| 797 |
+
numba/tests/test_typenames.py,sha256=ua0hmkv8rTcEqg-7nMnAEmHkiyr3Z7Ugoe9J9jN9OUI,432
|
| 798 |
+
numba/tests/test_typeof.py,sha256=nXjg6V9ELNCG0Yrfv_2PabB86SI7TA5l6fn4-XrH1rI,21678
|
| 799 |
+
numba/tests/test_types.py,sha256=gbFsY60LX4Da4sxUeMjZhqre_poj0LVoxIijpe09Mzw,30661
|
| 800 |
+
numba/tests/test_typingerror.py,sha256=zSFlST4KnTw2wNJe84mvYCIQxk3c-O5PXj9gnNw0dds,7235
|
| 801 |
+
numba/tests/test_ufuncs.py,sha256=E2SOccs_8YI-LDxs0KnQm8r4qrQFMSBABQrrY84Geso,71263
|
| 802 |
+
numba/tests/test_unicode.py,sha256=37amh2t_5QukaKLuZ6TcOyxwREHcF6Kx1RiprZzxF-c,98531
|
| 803 |
+
numba/tests/test_unicode_array.py,sha256=DHLGut0dDX2n3KR0RmV4iSTRuWZYNF2KfiObwLuHqwI,28996
|
| 804 |
+
numba/tests/test_unicode_names.py,sha256=YPJbxE4DzjQpFi7Wow7DGb4mwdqaTGTb5det8ayiupw,1563
|
| 805 |
+
numba/tests/test_unpack_sequence.py,sha256=7edSjmBZUOJz0uxPsj1nELfYWlh0MxgN8nzxVjyuwDs,6745
|
| 806 |
+
numba/tests/test_unpickle_without_module.py,sha256=OVLcy0Zwui5SPjr_Hs12ShxzhfPMmF7oS9XkX4iDQDo,1631
|
| 807 |
+
numba/tests/test_unsafe_intrinsics.py,sha256=WCYZrNyu_70rX2ep7WgP5sw9vvOv730YWfQWO5j7oBo,7619
|
| 808 |
+
numba/tests/test_usecases.py,sha256=gn3HkS--zzZ5U9b08oY2T5nzhySxg7AHlIyLiuacVMU,5893
|
| 809 |
+
numba/tests/test_vectorization.py,sha256=tMLcZ6_7CPimUNwhymiQJGw7mInOktOc8mIhKi1zoyA,2932
|
| 810 |
+
numba/tests/test_vectorization_type_inference.py,sha256=Hd9WtE3urYqslprNdKbbNk4X5lOzL2IM7aWr1rKAxrk,1162
|
| 811 |
+
numba/tests/test_warnings.py,sha256=pm4J3GKggNbi2WWu6mmIazz7pDGT6E_-ZlUXOo6RvXw,7408
|
| 812 |
+
numba/tests/test_withlifting.py,sha256=WYF_SHfw4jFnFk-RxeLKZS9JAZYry7LpNHOBBXeR9Ak,35112
|
| 813 |
+
numba/tests/threading_backend_usecases.py,sha256=q0In5DcjTg6LqAQY-Q1_WnmG7-4MhGBqIMDrSuysz8Y,618
|
| 814 |
+
numba/tests/typedlist_usecases.py,sha256=Uo-2XbzPxNwPBeWh1U4yr7KkfEjADZ4NouO_PP6oX3o,287
|
| 815 |
+
numba/tests/usecases.py,sha256=q5AbT3VfeLTN7P4whdfQ-851Y56BrnZ4K4EvbiegeLk,1618
|
| 816 |
+
numba/typed/__init__.py,sha256=WljiSoGMqByzcozGuYCbTb3N_ZcrpT6LFkD5jyDucVs,484
|
| 817 |
+
numba/typed/dictimpl.py,sha256=7qPLFW3ex2n1wmysA7IyZqehPoUHG6ICuiwVGXDLAU0,1101
|
| 818 |
+
numba/typed/dictobject.py,sha256=VGX9Mx0w8LcohJynyWU8OTIJZ3mX0YpK4R3JbOEy8z0,40958
|
| 819 |
+
numba/typed/listobject.py,sha256=oRXamf2CGRnqKbcJyluTmau4-6mWEQcxlrAKagdxYoo,46154
|
| 820 |
+
numba/typed/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 821 |
+
numba/typed/typeddict.py,sha256=tfQWKMur0hwxlOiaiy8fTxQ0O1gCPEPmhA33_NBV6QA,12216
|
| 822 |
+
numba/typed/typedlist.py,sha256=0Mipv8f1LK3nOt6FfN1jImEzKzbt8OFpAfNAPAtpVJk,18791
|
| 823 |
+
numba/typed/typedobjectutils.py,sha256=EsOTnBwYCQMG-IqoRsCDU1s3gbdlEJDjoCaYo8QZEGc,7036
|
| 824 |
+
numba/types/__init__.py,sha256=bSQKeXj0suDD-j13RK4CxMnB5TXbgab4jo2536aMQI4,134
|
lib/python3.13/site-packages/numba-0.61.2.dist-info/REQUESTED
ADDED
|
File without changes
|
lib/python3.13/site-packages/numba-0.61.2.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: setuptools (78.1.0)
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp313-cp313-manylinux_2_17_x86_64
|
| 5 |
+
Tag: cp313-cp313-manylinux2014_x86_64
|
| 6 |
+
|
lib/python3.13/site-packages/numba-0.61.2.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
numba
|
lib/python3.13/site-packages/pandas-2.3.3.dist-info/RECORD
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
lib/python3.13/site-packages/pandas-2.3.3.dist-info/REQUESTED
ADDED
|
File without changes
|
lib/python3.13/site-packages/pandas-2.3.3.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: meson
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp313-cp313-manylinux_2_24_x86_64
|
| 5 |
+
Tag: cp313-cp313-manylinux_2_28_x86_64
|
| 6 |
+
|