Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- venv/lib/python3.10/site-packages/astor-0.8.1.dist-info/AUTHORS +19 -0
- venv/lib/python3.10/site-packages/astor-0.8.1.dist-info/INSTALLER +1 -0
- venv/lib/python3.10/site-packages/astor-0.8.1.dist-info/LICENSE +29 -0
- venv/lib/python3.10/site-packages/astor-0.8.1.dist-info/METADATA +98 -0
- venv/lib/python3.10/site-packages/astor-0.8.1.dist-info/RECORD +29 -0
- venv/lib/python3.10/site-packages/astor-0.8.1.dist-info/WHEEL +6 -0
- venv/lib/python3.10/site-packages/astor-0.8.1.dist-info/top_level.txt +1 -0
- venv/lib/python3.10/site-packages/astor-0.8.1.dist-info/zip-safe +1 -0
- venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/INSTALLER +1 -0
- venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/LICENSE +177 -0
- venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/METADATA +183 -0
- venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/NOTICE +2 -0
- venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/RECORD +104 -0
- venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/REQUESTED +0 -0
- venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/WHEEL +5 -0
- venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/top_level.txt +1 -0
- venv/lib/python3.10/site-packages/hf_olmo/__init__.py +3 -0
- venv/lib/python3.10/site-packages/hf_olmo/__pycache__/__init__.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/hf_olmo/__pycache__/configuration_olmo.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/hf_olmo/__pycache__/convert_olmo_to_hf.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/hf_olmo/__pycache__/modeling_olmo.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/hf_olmo/__pycache__/tokenization_olmo_fast.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/hf_olmo/configuration_olmo.py +44 -0
- venv/lib/python3.10/site-packages/hf_olmo/convert_olmo_to_hf.py +104 -0
- venv/lib/python3.10/site-packages/hf_olmo/modeling_olmo.py +142 -0
- venv/lib/python3.10/site-packages/hf_olmo/requirements.txt +1 -0
- venv/lib/python3.10/site-packages/hf_olmo/tokenization_olmo_fast.py +16 -0
- venv/lib/python3.10/site-packages/networkx/__init__.py +53 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__init__.py +133 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/__init__.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/asteroidal.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/boundary.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/bridges.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/broadcasting.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/chains.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/chordal.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/clique.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/cluster.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/communicability_alg.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/core.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/covering.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/cuts.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/cycles.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/d_separation.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/dag.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/distance_measures.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/distance_regular.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/dominance.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/dominating.cpython-310.pyc +0 -0
- venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/efficiency_measures.cpython-310.pyc +0 -0
venv/lib/python3.10/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>
|
venv/lib/python3.10/site-packages/astor-0.8.1.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
venv/lib/python3.10/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.
|
venv/lib/python3.10/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 |
+
|
venv/lib/python3.10/site-packages/astor-0.8.1.dist-info/RECORD
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
astor-0.8.1.dist-info/AUTHORS,sha256=dy5MQIMINxY79YbaRR19C_CNAgHe3tcuvESs7ypxKQc,679
|
| 2 |
+
astor-0.8.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 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/WHEEL,sha256=8zNYZbwQSXoB9IfXOjPfeNwvAsALAjffgk27FqvCWbo,110
|
| 7 |
+
astor-0.8.1.dist-info/top_level.txt,sha256=M5xfrbiL9-EIlOb1h2T8s6gFbV3b9AbwgI0ARzaRyaY,6
|
| 8 |
+
astor-0.8.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
| 9 |
+
astor/VERSION,sha256=qvZyHcN8QLQjOsz8CB8ld2_zvR0qS51c6nYNHCz4ZmU,6
|
| 10 |
+
astor/__init__.py,sha256=C9rmH4v9K7pkIk3eDuVRhqO5wULt3B42copNJsEw8rw,2291
|
| 11 |
+
astor/__pycache__/__init__.cpython-310.pyc,,
|
| 12 |
+
astor/__pycache__/code_gen.cpython-310.pyc,,
|
| 13 |
+
astor/__pycache__/codegen.cpython-310.pyc,,
|
| 14 |
+
astor/__pycache__/file_util.cpython-310.pyc,,
|
| 15 |
+
astor/__pycache__/node_util.cpython-310.pyc,,
|
| 16 |
+
astor/__pycache__/op_util.cpython-310.pyc,,
|
| 17 |
+
astor/__pycache__/rtrip.cpython-310.pyc,,
|
| 18 |
+
astor/__pycache__/source_repr.cpython-310.pyc,,
|
| 19 |
+
astor/__pycache__/string_repr.cpython-310.pyc,,
|
| 20 |
+
astor/__pycache__/tree_walk.cpython-310.pyc,,
|
| 21 |
+
astor/code_gen.py,sha256=0KAimfyV8pIPXQx6s_NyPSXRhAxMLWXbCPEQuCTpxac,32032
|
| 22 |
+
astor/codegen.py,sha256=lTqdJWMK4EAJ1wxDw2XR-MLyHJmvbV1_Q5QLj9naE_g,204
|
| 23 |
+
astor/file_util.py,sha256=BETsKYg8UiKoZNswRkirzPSZWgku41dRzZC7T5X3_F4,3268
|
| 24 |
+
astor/node_util.py,sha256=WEWMUMSfHtLwgx54nMkc2APLV573iOPhqPag4gIbhVQ,6542
|
| 25 |
+
astor/op_util.py,sha256=GGcgYqa3DFOAaoSt7TTu46VUhe1J13dO14-SQTRXRYI,3191
|
| 26 |
+
astor/rtrip.py,sha256=AlvQvsUuUZ8zxvRFpWF_Fsv4-NksPB23rvVkTrkvef8,6741
|
| 27 |
+
astor/source_repr.py,sha256=1lj4jakkrcGDRoo-BIRZDszQ8gukdeLR_fmvGqBrP-U,7373
|
| 28 |
+
astor/string_repr.py,sha256=YeC_DVeIJdPElqjgzzhPFheQsz_QjMEW_SLODFvEsIA,2917
|
| 29 |
+
astor/tree_walk.py,sha256=fJaw54GgTg4NTRJLVRl2XSnfFOG9GdjOUlI6ZChLOb8,6020
|
venv/lib/python3.10/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 |
+
|
venv/lib/python3.10/site-packages/astor-0.8.1.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
astor
|
venv/lib/python3.10/site-packages/astor-0.8.1.dist-info/zip-safe
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
|
venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/METADATA
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: boto3
|
| 3 |
+
Version: 1.34.113
|
| 4 |
+
Summary: The AWS SDK for Python
|
| 5 |
+
Home-page: https://github.com/boto/boto3
|
| 6 |
+
Author: Amazon Web Services
|
| 7 |
+
License: Apache License 2.0
|
| 8 |
+
Project-URL: Documentation, https://boto3.amazonaws.com/v1/documentation/api/latest/index.html
|
| 9 |
+
Project-URL: Source, https://github.com/boto/boto3
|
| 10 |
+
Platform: UNKNOWN
|
| 11 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 12 |
+
Classifier: Intended Audience :: Developers
|
| 13 |
+
Classifier: Natural Language :: English
|
| 14 |
+
Classifier: License :: OSI Approved :: Apache Software License
|
| 15 |
+
Classifier: Programming Language :: Python
|
| 16 |
+
Classifier: Programming Language :: Python :: 3
|
| 17 |
+
Classifier: Programming Language :: Python :: 3 :: Only
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 23 |
+
Requires-Python: >= 3.8
|
| 24 |
+
License-File: LICENSE
|
| 25 |
+
License-File: NOTICE
|
| 26 |
+
Requires-Dist: botocore (<1.35.0,>=1.34.113)
|
| 27 |
+
Requires-Dist: jmespath (<2.0.0,>=0.7.1)
|
| 28 |
+
Requires-Dist: s3transfer (<0.11.0,>=0.10.0)
|
| 29 |
+
Provides-Extra: crt
|
| 30 |
+
Requires-Dist: botocore[crt] (<2.0a0,>=1.21.0) ; extra == 'crt'
|
| 31 |
+
|
| 32 |
+
===============================
|
| 33 |
+
Boto3 - The AWS SDK for Python
|
| 34 |
+
===============================
|
| 35 |
+
|
| 36 |
+
|Version| |Python| |License|
|
| 37 |
+
|
| 38 |
+
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
|
| 39 |
+
Python, which allows Python developers to write software that makes use
|
| 40 |
+
of services like Amazon S3 and Amazon EC2. You can find the latest, most
|
| 41 |
+
up to date, documentation at our `doc site`_, including a list of
|
| 42 |
+
services that are supported.
|
| 43 |
+
|
| 44 |
+
Boto3 is maintained and published by `Amazon Web Services`_.
|
| 45 |
+
|
| 46 |
+
Boto (pronounced boh-toh) was named after the fresh water dolphin native to the Amazon river. The name was chosen by the author of the original Boto library, Mitch Garnaat, as a reference to the company.
|
| 47 |
+
|
| 48 |
+
Notices
|
| 49 |
+
-------
|
| 50 |
+
|
| 51 |
+
On 2023-12-13, support for Python 3.7 ended for Boto3. This follows the
|
| 52 |
+
Python Software Foundation `end of support <https://peps.python.org/pep-0537/#lifespan>`__
|
| 53 |
+
for the runtime which occurred on 2023-06-27.
|
| 54 |
+
For more information, see this `blog post <https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/>`__.
|
| 55 |
+
|
| 56 |
+
.. _boto: https://docs.pythonboto.org/
|
| 57 |
+
.. _`doc site`: https://boto3.amazonaws.com/v1/documentation/api/latest/index.html
|
| 58 |
+
.. _`Amazon Web Services`: https://aws.amazon.com/what-is-aws/
|
| 59 |
+
.. |Python| image:: https://img.shields.io/pypi/pyversions/boto3.svg?style=flat
|
| 60 |
+
:target: https://pypi.python.org/pypi/boto3/
|
| 61 |
+
:alt: Python Versions
|
| 62 |
+
.. |Version| image:: http://img.shields.io/pypi/v/boto3.svg?style=flat
|
| 63 |
+
:target: https://pypi.python.org/pypi/boto3/
|
| 64 |
+
:alt: Package Version
|
| 65 |
+
.. |License| image:: http://img.shields.io/pypi/l/boto3.svg?style=flat
|
| 66 |
+
:target: https://github.com/boto/boto3/blob/develop/LICENSE
|
| 67 |
+
:alt: License
|
| 68 |
+
|
| 69 |
+
Getting Started
|
| 70 |
+
---------------
|
| 71 |
+
Assuming that you have a supported version of Python installed, you can first
|
| 72 |
+
set up your environment with:
|
| 73 |
+
|
| 74 |
+
.. code-block:: sh
|
| 75 |
+
|
| 76 |
+
$ python -m venv .venv
|
| 77 |
+
...
|
| 78 |
+
$ . .venv/bin/activate
|
| 79 |
+
|
| 80 |
+
Then, you can install boto3 from PyPI with:
|
| 81 |
+
|
| 82 |
+
.. code-block:: sh
|
| 83 |
+
|
| 84 |
+
$ python -m pip install boto3
|
| 85 |
+
|
| 86 |
+
or install from source with:
|
| 87 |
+
|
| 88 |
+
.. code-block:: sh
|
| 89 |
+
|
| 90 |
+
$ git clone https://github.com/boto/boto3.git
|
| 91 |
+
$ cd boto3
|
| 92 |
+
$ python -m pip install -r requirements.txt
|
| 93 |
+
$ python -m pip install -e .
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
Using Boto3
|
| 97 |
+
~~~~~~~~~~~~~~
|
| 98 |
+
After installing boto3
|
| 99 |
+
|
| 100 |
+
Next, set up credentials (in e.g. ``~/.aws/credentials``):
|
| 101 |
+
|
| 102 |
+
.. code-block:: ini
|
| 103 |
+
|
| 104 |
+
[default]
|
| 105 |
+
aws_access_key_id = YOUR_KEY
|
| 106 |
+
aws_secret_access_key = YOUR_SECRET
|
| 107 |
+
|
| 108 |
+
Then, set up a default region (in e.g. ``~/.aws/config``):
|
| 109 |
+
|
| 110 |
+
.. code-block:: ini
|
| 111 |
+
|
| 112 |
+
[default]
|
| 113 |
+
region=us-east-1
|
| 114 |
+
|
| 115 |
+
Other credential configuration methods can be found `here <https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html>`__
|
| 116 |
+
|
| 117 |
+
Then, from a Python interpreter:
|
| 118 |
+
|
| 119 |
+
.. code-block:: python
|
| 120 |
+
|
| 121 |
+
>>> import boto3
|
| 122 |
+
>>> s3 = boto3.resource('s3')
|
| 123 |
+
>>> for bucket in s3.buckets.all():
|
| 124 |
+
print(bucket.name)
|
| 125 |
+
|
| 126 |
+
Running Tests
|
| 127 |
+
~~~~~~~~~~~~~
|
| 128 |
+
You can run tests in all supported Python versions using ``tox``. By default,
|
| 129 |
+
it will run all of the unit and functional tests, but you can also specify your own
|
| 130 |
+
``pytest`` options. Note that this requires that you have all supported
|
| 131 |
+
versions of Python installed, otherwise you must pass ``-e`` or run the
|
| 132 |
+
``pytest`` command directly:
|
| 133 |
+
|
| 134 |
+
.. code-block:: sh
|
| 135 |
+
|
| 136 |
+
$ tox
|
| 137 |
+
$ tox -- unit/test_session.py
|
| 138 |
+
$ tox -e py26,py33 -- integration/
|
| 139 |
+
|
| 140 |
+
You can also run individual tests with your default Python version:
|
| 141 |
+
|
| 142 |
+
.. code-block:: sh
|
| 143 |
+
|
| 144 |
+
$ pytest tests/unit
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
Getting Help
|
| 148 |
+
------------
|
| 149 |
+
|
| 150 |
+
We use GitHub issues for tracking bugs and feature requests and have limited
|
| 151 |
+
bandwidth to address them. Please use these community resources for getting
|
| 152 |
+
help:
|
| 153 |
+
|
| 154 |
+
* Ask a question on `Stack Overflow <https://stackoverflow.com/>`__ and tag it with `boto3 <https://stackoverflow.com/questions/tagged/boto3>`__
|
| 155 |
+
* Open a support ticket with `AWS Support <https://console.aws.amazon.com/support/home#/>`__
|
| 156 |
+
* If it turns out that you may have found a bug, please `open an issue <https://github.com/boto/boto3/issues/new>`__
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
Contributing
|
| 160 |
+
------------
|
| 161 |
+
|
| 162 |
+
We value feedback and contributions from our community. Whether it's a bug report, new feature, correction, or additional documentation, we welcome your issues and pull requests. Please read through this `CONTRIBUTING <https://github.com/boto/boto3/blob/develop/CONTRIBUTING.rst>`__ document before submitting any issues or pull requests to ensure we have all the necessary information to effectively respond to your contribution.
|
| 163 |
+
|
| 164 |
+
|
| 165 |
+
Maintenance and Support for SDK Major Versions
|
| 166 |
+
----------------------------------------------
|
| 167 |
+
|
| 168 |
+
Boto3 was made generally available on 06/22/2015 and is currently in the full support phase of the availability life cycle.
|
| 169 |
+
|
| 170 |
+
For information about maintenance and support for SDK major versions and their underlying dependencies, see the following in the AWS SDKs and Tools Shared Configuration and Credentials Reference Guide:
|
| 171 |
+
|
| 172 |
+
* `AWS SDKs and Tools Maintenance Policy <https://docs.aws.amazon.com/sdkref/latest/guide/maint-policy.html>`__
|
| 173 |
+
* `AWS SDKs and Tools Version Support Matrix <https://docs.aws.amazon.com/sdkref/latest/guide/version-support-matrix.html>`__
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
More Resources
|
| 177 |
+
--------------
|
| 178 |
+
|
| 179 |
+
* `NOTICE <https://github.com/boto/boto3/blob/develop/NOTICE>`__
|
| 180 |
+
* `Changelog <https://github.com/boto/boto3/blob/develop/CHANGELOG.rst>`__
|
| 181 |
+
* `License <https://github.com/boto/boto3/blob/develop/LICENSE>`__
|
| 182 |
+
|
| 183 |
+
|
venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/NOTICE
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
boto3
|
| 2 |
+
Copyright 2013-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/RECORD
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
boto3-1.34.113.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
boto3-1.34.113.dist-info/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
| 3 |
+
boto3-1.34.113.dist-info/METADATA,sha256=3JAgSOQ99khNmf2QJ1T10GmgfIdam0UmooBi7oa7kKs,6622
|
| 4 |
+
boto3-1.34.113.dist-info/NOTICE,sha256=BPseYUhKeBDxugm7QrwByljJrzOSfXxaIVVuTE0cf6Q,83
|
| 5 |
+
boto3-1.34.113.dist-info/RECORD,,
|
| 6 |
+
boto3-1.34.113.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 7 |
+
boto3-1.34.113.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
|
| 8 |
+
boto3-1.34.113.dist-info/top_level.txt,sha256=MP6_SI1GcPseXodd3Ykt5F_mCBsrUksiziLxjEZKGUU,6
|
| 9 |
+
boto3/__init__.py,sha256=Nj0-GXpPbOOYG_JsFcl9UJZmVDWzYn9ZMXtSR30KcFA,3421
|
| 10 |
+
boto3/__pycache__/__init__.cpython-310.pyc,,
|
| 11 |
+
boto3/__pycache__/compat.cpython-310.pyc,,
|
| 12 |
+
boto3/__pycache__/crt.cpython-310.pyc,,
|
| 13 |
+
boto3/__pycache__/exceptions.cpython-310.pyc,,
|
| 14 |
+
boto3/__pycache__/session.cpython-310.pyc,,
|
| 15 |
+
boto3/__pycache__/utils.cpython-310.pyc,,
|
| 16 |
+
boto3/compat.py,sha256=1T-LvBYqd0z-L9hI-soU7O7v-678tyWWR2pztF055u0,2887
|
| 17 |
+
boto3/crt.py,sha256=VFstUtHMZrZ6eHJJ-YdXb4vqfIOcHbv1l51fdeY5cS0,5407
|
| 18 |
+
boto3/data/cloudformation/2010-05-15/resources-1.json,sha256=5mFVKJVtbVoHyPdHSyNfZ5mpkgCAws5PhnveSu4qzdI,5110
|
| 19 |
+
boto3/data/cloudwatch/2010-08-01/resources-1.json,sha256=q4AgE8F4pbscd-2U3NYSGAzK55zpMyOQGr83JUxbZXI,11690
|
| 20 |
+
boto3/data/dynamodb/2012-08-10/resources-1.json,sha256=hBLa1Jt7bdT557U9A7UcSi8SCpONKzdbtDRTzjM1-Y0,3849
|
| 21 |
+
boto3/data/ec2/2014-10-01/resources-1.json,sha256=tMG1AMYP2ksnPWY6-3l8DB-EhKsSNtAO9YHhvHqBKu0,68469
|
| 22 |
+
boto3/data/ec2/2015-03-01/resources-1.json,sha256=tMG1AMYP2ksnPWY6-3l8DB-EhKsSNtAO9YHhvHqBKu0,68469
|
| 23 |
+
boto3/data/ec2/2015-04-15/resources-1.json,sha256=tMG1AMYP2ksnPWY6-3l8DB-EhKsSNtAO9YHhvHqBKu0,68469
|
| 24 |
+
boto3/data/ec2/2015-10-01/resources-1.json,sha256=SOfYX2c1KgvnxMO2FCdJpV42rJWNMwVhlFAXhvUPTzA,76564
|
| 25 |
+
boto3/data/ec2/2016-04-01/resources-1.json,sha256=SOfYX2c1KgvnxMO2FCdJpV42rJWNMwVhlFAXhvUPTzA,76564
|
| 26 |
+
boto3/data/ec2/2016-09-15/resources-1.json,sha256=SOfYX2c1KgvnxMO2FCdJpV42rJWNMwVhlFAXhvUPTzA,76564
|
| 27 |
+
boto3/data/ec2/2016-11-15/resources-1.json,sha256=vx7YiL-sUvBFeo4SZ81G7Qa2Hy-y6xY4z2YlSx7_wEw,76922
|
| 28 |
+
boto3/data/glacier/2012-06-01/resources-1.json,sha256=GT5qWQLGeXtrHgTDNG23Mrpyweg6O0Udgd139BuNTVs,19940
|
| 29 |
+
boto3/data/iam/2010-05-08/resources-1.json,sha256=PsOT9yBqSJtluBFHCVRsg6k6Ly2VkSYODnYxSl0DVOc,50357
|
| 30 |
+
boto3/data/opsworks/2013-02-18/resources-1.json,sha256=Y6ygEyegsbYA1gGZn-Ad2yuDd3jUCOt2UKrW_b2YBeM,4136
|
| 31 |
+
boto3/data/s3/2006-03-01/resources-1.json,sha256=VeKALhMRqv7fyDHMLOM5_RzXUEuDdg_n6OIRi3sdB-o,37204
|
| 32 |
+
boto3/data/sns/2010-03-31/resources-1.json,sha256=7zmKQhafgsRDu4U1yiw3NXHz-zJhHKrOmtuoYlxQP-s,9091
|
| 33 |
+
boto3/data/sqs/2012-11-05/resources-1.json,sha256=LRIIr5BId3UDeuBfLn-vRiWsSZCM9_ynqdxF8uzHgy8,6545
|
| 34 |
+
boto3/docs/__init__.py,sha256=ncXQfWgitU2kFSghqy2lezeeW1RneKZ-3wcsvEddsr0,1845
|
| 35 |
+
boto3/docs/__pycache__/__init__.cpython-310.pyc,,
|
| 36 |
+
boto3/docs/__pycache__/action.cpython-310.pyc,,
|
| 37 |
+
boto3/docs/__pycache__/attr.cpython-310.pyc,,
|
| 38 |
+
boto3/docs/__pycache__/base.cpython-310.pyc,,
|
| 39 |
+
boto3/docs/__pycache__/client.cpython-310.pyc,,
|
| 40 |
+
boto3/docs/__pycache__/collection.cpython-310.pyc,,
|
| 41 |
+
boto3/docs/__pycache__/docstring.cpython-310.pyc,,
|
| 42 |
+
boto3/docs/__pycache__/method.cpython-310.pyc,,
|
| 43 |
+
boto3/docs/__pycache__/resource.cpython-310.pyc,,
|
| 44 |
+
boto3/docs/__pycache__/service.cpython-310.pyc,,
|
| 45 |
+
boto3/docs/__pycache__/subresource.cpython-310.pyc,,
|
| 46 |
+
boto3/docs/__pycache__/utils.cpython-310.pyc,,
|
| 47 |
+
boto3/docs/__pycache__/waiter.cpython-310.pyc,,
|
| 48 |
+
boto3/docs/action.py,sha256=5ZQ2C9vIZdk8grFlnej-cwpVoNz0drcMiirKzqHczck,8178
|
| 49 |
+
boto3/docs/attr.py,sha256=BnG3tR1KKQvvY58aeJiWQ5W5DiMnJ_9jUjmG6tDbFiU,2500
|
| 50 |
+
boto3/docs/base.py,sha256=nOrQSCeUSIZPkn-I59o7CfjEthgdkpCt_rXtE9zQnXc,2103
|
| 51 |
+
boto3/docs/client.py,sha256=RpCngTolE4OtGIPvvJvkw8FJCqh5-7b-Q0QN5mVE7to,1078
|
| 52 |
+
boto3/docs/collection.py,sha256=pWO9I9LTMyhyYyCT_alrO4hZpqNI1228IwABotYTqBU,11679
|
| 53 |
+
boto3/docs/docstring.py,sha256=oPugaubdAXY6aNa-kXGI51lP1xE2s4AnfTsLhibf7-E,2511
|
| 54 |
+
boto3/docs/method.py,sha256=kJ3UJS2JBSt6SB_3TsEf3lxcjda5TAAfmocrLmxtSLc,2733
|
| 55 |
+
boto3/docs/resource.py,sha256=YPeW306FuZWdzbRomFzuGfjUXIkl716u8sI95IAi6tc,15307
|
| 56 |
+
boto3/docs/service.py,sha256=bCd2LPfZOeTkDOKggTyXJYXXPkuYUy91x5KYyqPPQnE,8544
|
| 57 |
+
boto3/docs/subresource.py,sha256=W19brjJjeW55ssyYhCnFaZICfp2LjOoC4BP_jW2ViC8,5864
|
| 58 |
+
boto3/docs/utils.py,sha256=H0UeVvmVbYBZ6F-CVEUxVggLMBOIoA5q8y8hxBFnRKE,5436
|
| 59 |
+
boto3/docs/waiter.py,sha256=qcv-TXk6V0gDBXVFy1rFRom7yN9eaP2vIJIjOxTaNOg,5173
|
| 60 |
+
boto3/dynamodb/__init__.py,sha256=GkSq-WxXWfVHu1SEcMrlJbzkfw9ACgF3UdCL6fPpTmY,562
|
| 61 |
+
boto3/dynamodb/__pycache__/__init__.cpython-310.pyc,,
|
| 62 |
+
boto3/dynamodb/__pycache__/conditions.cpython-310.pyc,,
|
| 63 |
+
boto3/dynamodb/__pycache__/table.cpython-310.pyc,,
|
| 64 |
+
boto3/dynamodb/__pycache__/transform.cpython-310.pyc,,
|
| 65 |
+
boto3/dynamodb/__pycache__/types.cpython-310.pyc,,
|
| 66 |
+
boto3/dynamodb/conditions.py,sha256=sjkd0kIqFP_h8aUvysZQel0zts5HF22ogqKiv0t0KRw,15045
|
| 67 |
+
boto3/dynamodb/table.py,sha256=us79dxZSQSno8gsUoAdQyzc2oBJL2riUpN6RGc8vQk8,6343
|
| 68 |
+
boto3/dynamodb/transform.py,sha256=JnW5ZzPIfxEcDszSvXKUZmp_1rw445tsddS3FG--JwA,12909
|
| 69 |
+
boto3/dynamodb/types.py,sha256=ch0vIKaAYexjL42S_OJWyvjWMcb0UbNrmkKGcz76O3c,9541
|
| 70 |
+
boto3/ec2/__init__.py,sha256=GkSq-WxXWfVHu1SEcMrlJbzkfw9ACgF3UdCL6fPpTmY,562
|
| 71 |
+
boto3/ec2/__pycache__/__init__.cpython-310.pyc,,
|
| 72 |
+
boto3/ec2/__pycache__/createtags.cpython-310.pyc,,
|
| 73 |
+
boto3/ec2/__pycache__/deletetags.cpython-310.pyc,,
|
| 74 |
+
boto3/ec2/createtags.py,sha256=pUPJOYn7m0Jcch9UL-DEVGgbQHoyAemECPBhzyBx28c,1577
|
| 75 |
+
boto3/ec2/deletetags.py,sha256=KaYcqSt8FFM_TW0g0pZ14qDjVnmRCPV0sMe6DprEtvo,1217
|
| 76 |
+
boto3/examples/cloudfront.rst,sha256=K-sBWZxoLjABCZHrqAZs57cYefwPmDir03pm6PE_mh4,1390
|
| 77 |
+
boto3/examples/s3.rst,sha256=jCfgEDfpw08nFtCizCN2OGg15zQRkx3DiJXZUfqhE2s,5486
|
| 78 |
+
boto3/exceptions.py,sha256=i13QpGxoFizxAGCzA2qmF9ldbI5IfBpn37DH75ddRF8,4127
|
| 79 |
+
boto3/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 80 |
+
boto3/resources/__pycache__/__init__.cpython-310.pyc,,
|
| 81 |
+
boto3/resources/__pycache__/action.cpython-310.pyc,,
|
| 82 |
+
boto3/resources/__pycache__/base.cpython-310.pyc,,
|
| 83 |
+
boto3/resources/__pycache__/collection.cpython-310.pyc,,
|
| 84 |
+
boto3/resources/__pycache__/factory.cpython-310.pyc,,
|
| 85 |
+
boto3/resources/__pycache__/model.cpython-310.pyc,,
|
| 86 |
+
boto3/resources/__pycache__/params.cpython-310.pyc,,
|
| 87 |
+
boto3/resources/__pycache__/response.cpython-310.pyc,,
|
| 88 |
+
boto3/resources/action.py,sha256=vPfVHVgXiGqhwpgRSCC7lSsY3vGjgsSiYhXa14CMAqw,9600
|
| 89 |
+
boto3/resources/base.py,sha256=Nf5Anssquo3urPDyWLAN8di379z5oafjwzl3gD9WbsI,5044
|
| 90 |
+
boto3/resources/collection.py,sha256=bSV0353zcTRLEPws2qqMFd2Xure8I8LgU-IDR-TM3sI,19242
|
| 91 |
+
boto3/resources/factory.py,sha256=iXV5l7UZePNIfkkUMgUNC0tIdJhxr_65m9KYdwIOfKA,22708
|
| 92 |
+
boto3/resources/model.py,sha256=3mCNSvnmCKPzjK-hW4yEv0PjKYb0hxBsAE9nopY-3bU,20394
|
| 93 |
+
boto3/resources/params.py,sha256=i6KAjOzjzou7ouViYbRZCz0CwqB6fA_6gOJFDIruTV8,6112
|
| 94 |
+
boto3/resources/response.py,sha256=aC1AZuO08qtb1psJtbrc5Na32AQ9WI-Il4DpVxsUtXs,11694
|
| 95 |
+
boto3/s3/__init__.py,sha256=GkSq-WxXWfVHu1SEcMrlJbzkfw9ACgF3UdCL6fPpTmY,562
|
| 96 |
+
boto3/s3/__pycache__/__init__.cpython-310.pyc,,
|
| 97 |
+
boto3/s3/__pycache__/constants.cpython-310.pyc,,
|
| 98 |
+
boto3/s3/__pycache__/inject.cpython-310.pyc,,
|
| 99 |
+
boto3/s3/__pycache__/transfer.cpython-310.pyc,,
|
| 100 |
+
boto3/s3/constants.py,sha256=ZaYknNwqGwsJEGkL92GXaBs9kjfRbyCDFt89wei8t7E,690
|
| 101 |
+
boto3/s3/inject.py,sha256=2M_idj_7-Ws419xfwZOMeYh1C_WLt1GAbwJUblRVFMU,28191
|
| 102 |
+
boto3/s3/transfer.py,sha256=Ltc4cnG9nJdhEHkdGFIZZaMh1mqgwaWFXXxv0ertiWg,15934
|
| 103 |
+
boto3/session.py,sha256=ITqrFauYJ74IfZrpPS411rLaKNNVQKgCe388fpnUV-0,20758
|
| 104 |
+
boto3/utils.py,sha256=dBw0Eu23TOhDsP1Lkrp4uOVMn5DS8s0kRGwVRiCD_KM,3141
|
venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/REQUESTED
ADDED
|
File without changes
|
venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.37.0)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
venv/lib/python3.10/site-packages/boto3-1.34.113.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
boto3
|
venv/lib/python3.10/site-packages/hf_olmo/__init__.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .configuration_olmo import OLMoConfig
|
| 2 |
+
from .modeling_olmo import OLMoForCausalLM
|
| 3 |
+
from .tokenization_olmo_fast import OLMoTokenizerFast
|
venv/lib/python3.10/site-packages/hf_olmo/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (413 Bytes). View file
|
|
|
venv/lib/python3.10/site-packages/hf_olmo/__pycache__/configuration_olmo.cpython-310.pyc
ADDED
|
Binary file (1.62 kB). View file
|
|
|
venv/lib/python3.10/site-packages/hf_olmo/__pycache__/convert_olmo_to_hf.cpython-310.pyc
ADDED
|
Binary file (3.38 kB). View file
|
|
|
venv/lib/python3.10/site-packages/hf_olmo/__pycache__/modeling_olmo.cpython-310.pyc
ADDED
|
Binary file (4.11 kB). View file
|
|
|
venv/lib/python3.10/site-packages/hf_olmo/__pycache__/tokenization_olmo_fast.cpython-310.pyc
ADDED
|
Binary file (620 Bytes). View file
|
|
|
venv/lib/python3.10/site-packages/hf_olmo/configuration_olmo.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
OLMo configuration
|
| 3 |
+
"""
|
| 4 |
+
|
| 5 |
+
from transformers import AutoConfig, PretrainedConfig
|
| 6 |
+
from transformers.utils import logging
|
| 7 |
+
|
| 8 |
+
from olmo.config import ModelConfig
|
| 9 |
+
|
| 10 |
+
logger = logging.get_logger(__name__)
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class OLMoConfig(PretrainedConfig):
|
| 14 |
+
model_type = "olmo"
|
| 15 |
+
keys_to_ignore_at_inference = ["past_key_values"] # TODO: confirm
|
| 16 |
+
|
| 17 |
+
def __init__(self, use_cache: bool = False, **kwargs):
|
| 18 |
+
model_config = ModelConfig()
|
| 19 |
+
all_kwargs = model_config.asdict()
|
| 20 |
+
all_kwargs.update(kwargs)
|
| 21 |
+
all_kwargs.update({"use_cache": use_cache})
|
| 22 |
+
all_kwargs.update(
|
| 23 |
+
{
|
| 24 |
+
"architectures": all_kwargs.get("architectures", ["OlmoModelForCausalLM"])
|
| 25 |
+
or ["OlmoModelForCausalLM"]
|
| 26 |
+
}
|
| 27 |
+
)
|
| 28 |
+
super().__init__(**all_kwargs)
|
| 29 |
+
|
| 30 |
+
@property
|
| 31 |
+
def num_attention_heads(self):
|
| 32 |
+
return self.n_heads
|
| 33 |
+
|
| 34 |
+
@property
|
| 35 |
+
def num_hidden_layers(self):
|
| 36 |
+
return self.n_layers
|
| 37 |
+
|
| 38 |
+
@property
|
| 39 |
+
def hidden_size(self):
|
| 40 |
+
return self.d_model
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
# Register the config class so that it is available for transformer pipelines, auto-loading etc.
|
| 44 |
+
AutoConfig.register("olmo", OLMoConfig)
|
venv/lib/python3.10/site-packages/hf_olmo/convert_olmo_to_hf.py
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import argparse
|
| 2 |
+
import logging
|
| 3 |
+
import os
|
| 4 |
+
import shutil
|
| 5 |
+
|
| 6 |
+
from hf_olmo.configuration_olmo import OLMoConfig
|
| 7 |
+
from hf_olmo.tokenization_olmo_fast import OLMoTokenizerFast
|
| 8 |
+
from olmo import ModelConfig, Tokenizer
|
| 9 |
+
|
| 10 |
+
logger = logging.getLogger(__name__)
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def write_config(checkpoint_dir: str):
|
| 14 |
+
# save config as HF config
|
| 15 |
+
from cached_path import cached_path
|
| 16 |
+
|
| 17 |
+
logger.info(f"Loading checkpoint from {checkpoint_dir}")
|
| 18 |
+
|
| 19 |
+
config_path = cached_path(os.path.join(checkpoint_dir, "config.yaml"))
|
| 20 |
+
model_config = ModelConfig.load(config_path, key="model")
|
| 21 |
+
config_kwargs = model_config.asdict()
|
| 22 |
+
config_kwargs["use_cache"] = True
|
| 23 |
+
config = OLMoConfig(**config_kwargs)
|
| 24 |
+
|
| 25 |
+
logger.info(f"Saving HF-compatible config to {os.path.join(checkpoint_dir, 'config.json')}")
|
| 26 |
+
config.save_pretrained(checkpoint_dir)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def write_model(checkpoint_dir: str, soft_link: bool = True):
|
| 30 |
+
if soft_link:
|
| 31 |
+
try:
|
| 32 |
+
os.symlink("model.pt", os.path.join(checkpoint_dir, "pytorch_model.bin"))
|
| 33 |
+
except FileExistsError:
|
| 34 |
+
pass
|
| 35 |
+
else:
|
| 36 |
+
if not os.path.exists(os.path.join(checkpoint_dir, "pytorch_model.bin")):
|
| 37 |
+
os.rename(os.path.join(checkpoint_dir, "model.pt"), os.path.join(checkpoint_dir, "pytorch_model.bin"))
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
def write_tokenizer(checkpoint_dir: str):
|
| 41 |
+
tokenizer_raw = Tokenizer.from_checkpoint(checkpoint_dir)
|
| 42 |
+
tokenizer = OLMoTokenizerFast(
|
| 43 |
+
tokenizer_object=tokenizer_raw.base_tokenizer,
|
| 44 |
+
truncation=tokenizer_raw.truncate_direction,
|
| 45 |
+
max_length=tokenizer_raw.truncate_to,
|
| 46 |
+
eos_token=tokenizer_raw.decode([tokenizer_raw.eos_token_id], skip_special_tokens=False),
|
| 47 |
+
)
|
| 48 |
+
tokenizer.model_input_names = ["input_ids", "attention_mask"]
|
| 49 |
+
tokenizer.pad_token_id = tokenizer_raw.pad_token_id
|
| 50 |
+
tokenizer.eos_token_id = tokenizer_raw.eos_token_id
|
| 51 |
+
|
| 52 |
+
tokenizer.save_pretrained(checkpoint_dir)
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def download_remote_checkpoint_and_convert_to_hf(checkpoint_dir: str, local_dir: str):
|
| 56 |
+
from cached_path import cached_path
|
| 57 |
+
|
| 58 |
+
model_name = os.path.basename(checkpoint_dir)
|
| 59 |
+
local_model_path = os.path.join(local_dir, model_name)
|
| 60 |
+
os.makedirs(local_model_path, exist_ok=True)
|
| 61 |
+
|
| 62 |
+
model_files = ["model.pt", "config.yaml"] # , "optim.pt", "other.pt"]
|
| 63 |
+
for filename in model_files:
|
| 64 |
+
final_location = os.path.join(local_model_path, filename)
|
| 65 |
+
if not os.path.exists(final_location):
|
| 66 |
+
remote_file = os.path.join(checkpoint_dir, filename)
|
| 67 |
+
logger.debug(f"Downloading file {filename}")
|
| 68 |
+
cached_file = cached_path(remote_file)
|
| 69 |
+
shutil.copy(cached_file, final_location)
|
| 70 |
+
logger.debug(f"File at {final_location}")
|
| 71 |
+
else:
|
| 72 |
+
logger.info(f"File already present at {final_location}")
|
| 73 |
+
|
| 74 |
+
write_config(local_model_path)
|
| 75 |
+
write_model(local_model_path, soft_link=False)
|
| 76 |
+
write_tokenizer(local_model_path)
|
| 77 |
+
return local_model_path
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
def main():
|
| 81 |
+
parser = argparse.ArgumentParser(
|
| 82 |
+
description="Adds a config.json to the checkpoint directory, and creates pytorch_model.bin, "
|
| 83 |
+
"making it easier to load weights as HF models."
|
| 84 |
+
)
|
| 85 |
+
parser.add_argument(
|
| 86 |
+
"--checkpoint-dir",
|
| 87 |
+
help="Location of OLMo checkpoint.",
|
| 88 |
+
)
|
| 89 |
+
|
| 90 |
+
parser.add_argument(
|
| 91 |
+
"--ignore-olmo-compatibility",
|
| 92 |
+
action="store_true",
|
| 93 |
+
help="Ignore compatibility with the olmo codebase. "
|
| 94 |
+
"This will rename model.pt --> pytorch_model.bin instead of creating a symlink.",
|
| 95 |
+
)
|
| 96 |
+
|
| 97 |
+
args = parser.parse_args()
|
| 98 |
+
write_config(checkpoint_dir=args.checkpoint_dir)
|
| 99 |
+
write_model(checkpoint_dir=args.checkpoint_dir, soft_link=not args.ignore_olmo_compatibility)
|
| 100 |
+
write_tokenizer(checkpoint_dir=args.checkpoint_dir)
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
if __name__ == "__main__":
|
| 104 |
+
main()
|
venv/lib/python3.10/site-packages/hf_olmo/modeling_olmo.py
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import List, Optional, Tuple, Union
|
| 2 |
+
|
| 3 |
+
import torch
|
| 4 |
+
from transformers import PreTrainedModel
|
| 5 |
+
from transformers.modeling_outputs import CausalLMOutputWithPast
|
| 6 |
+
from transformers.models.auto import AutoModelForCausalLM
|
| 7 |
+
|
| 8 |
+
from olmo.config import ModelConfig
|
| 9 |
+
from olmo.model import Olmo
|
| 10 |
+
|
| 11 |
+
from .configuration_olmo import OLMoConfig
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def create_model_config_from_pretrained_config(config: OLMoConfig):
|
| 15 |
+
"""
|
| 16 |
+
Utility function
|
| 17 |
+
"""
|
| 18 |
+
|
| 19 |
+
kwargs = {}
|
| 20 |
+
for key in ModelConfig.__match_args__:
|
| 21 |
+
kwargs[key] = getattr(config, key)
|
| 22 |
+
|
| 23 |
+
model_config = ModelConfig(**kwargs)
|
| 24 |
+
return model_config
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
class OLMoForCausalLM(PreTrainedModel):
|
| 28 |
+
"""
|
| 29 |
+
Extremely barebones HF model wrapper.
|
| 30 |
+
"""
|
| 31 |
+
|
| 32 |
+
config_class = OLMoConfig
|
| 33 |
+
base_model_prefix = "model"
|
| 34 |
+
|
| 35 |
+
def __init__(self, config: OLMoConfig, model: Optional[Olmo] = None):
|
| 36 |
+
super().__init__(config)
|
| 37 |
+
|
| 38 |
+
if not model:
|
| 39 |
+
model_config = create_model_config_from_pretrained_config(config)
|
| 40 |
+
self.model = Olmo(model_config, init_params=True)
|
| 41 |
+
else:
|
| 42 |
+
self.model = model
|
| 43 |
+
|
| 44 |
+
def forward(
|
| 45 |
+
self,
|
| 46 |
+
input_ids: torch.LongTensor = None,
|
| 47 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 48 |
+
past_key_values: Optional[List[torch.FloatTensor]] = None,
|
| 49 |
+
labels: Optional[torch.LongTensor] = None,
|
| 50 |
+
use_cache: Optional[bool] = None,
|
| 51 |
+
output_attentions: Optional[bool] = None,
|
| 52 |
+
output_hidden_states: Optional[bool] = None,
|
| 53 |
+
return_dict: Optional[bool] = None,
|
| 54 |
+
) -> Union[Tuple, CausalLMOutputWithPast]:
|
| 55 |
+
if use_cache is None:
|
| 56 |
+
use_cache = self.config.use_cache
|
| 57 |
+
|
| 58 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 59 |
+
|
| 60 |
+
# decoder outputs consists of (dec_features, layer_state, dec_hidden, dec_attn)
|
| 61 |
+
outputs = self.model.forward(
|
| 62 |
+
input_ids=input_ids,
|
| 63 |
+
attention_mask=attention_mask,
|
| 64 |
+
past_key_values=past_key_values,
|
| 65 |
+
use_cache=use_cache,
|
| 66 |
+
)
|
| 67 |
+
|
| 68 |
+
logits = outputs.logits
|
| 69 |
+
|
| 70 |
+
loss = None
|
| 71 |
+
if labels is not None:
|
| 72 |
+
# Shift so that tokens < n predict n
|
| 73 |
+
shift_logits = logits[..., :-1, :].contiguous()
|
| 74 |
+
shift_labels = labels[..., 1:].contiguous()
|
| 75 |
+
# Flatten the tokens
|
| 76 |
+
loss_fct = torch.nn.CrossEntropyLoss()
|
| 77 |
+
shift_logits = shift_logits.view(-1, self.config.embedding_size)
|
| 78 |
+
shift_labels = shift_labels.view(-1)
|
| 79 |
+
# Enable model parallelism
|
| 80 |
+
shift_labels = shift_labels.to(shift_logits.device)
|
| 81 |
+
loss = loss_fct(shift_logits, shift_labels)
|
| 82 |
+
|
| 83 |
+
if not return_dict:
|
| 84 |
+
output = (logits,) + outputs[1:]
|
| 85 |
+
return (loss,) + output if loss is not None else output
|
| 86 |
+
|
| 87 |
+
return CausalLMOutputWithPast(
|
| 88 |
+
loss=loss,
|
| 89 |
+
logits=logits,
|
| 90 |
+
past_key_values=outputs.attn_key_values,
|
| 91 |
+
)
|
| 92 |
+
|
| 93 |
+
def can_generate(self) -> bool:
|
| 94 |
+
return True
|
| 95 |
+
|
| 96 |
+
def prepare_inputs_for_generation(
|
| 97 |
+
self, input_ids: torch.LongTensor, past_key_values: Optional[List[Tuple]] = None, **kwargs
|
| 98 |
+
):
|
| 99 |
+
if past_key_values:
|
| 100 |
+
# This is because we want the model to only process the last generated token.
|
| 101 |
+
input_ids = input_ids[:, -1:]
|
| 102 |
+
model_inputs = {"input_ids": input_ids, "past_key_values": past_key_values}
|
| 103 |
+
|
| 104 |
+
model_inputs.update(kwargs)
|
| 105 |
+
model_inputs["use_cache"] = kwargs.pop("use_cache", self.config.use_cache)
|
| 106 |
+
return model_inputs
|
| 107 |
+
|
| 108 |
+
# TODO: these are required to make the implementation complete.
|
| 109 |
+
# def resize_position_embeddings(self, new_num_position_embeddings: int):
|
| 110 |
+
# pass
|
| 111 |
+
#
|
| 112 |
+
# def get_position_embeddings(self) -> Union[nn.Embedding, Tuple[nn.Embedding]]:
|
| 113 |
+
# pass
|
| 114 |
+
#
|
| 115 |
+
# def _reorder_cache(self, past_key_values, beam_idx):
|
| 116 |
+
# pass
|
| 117 |
+
|
| 118 |
+
def get_input_embeddings(self) -> torch.nn.Module:
|
| 119 |
+
return self.model.transformer.wte
|
| 120 |
+
|
| 121 |
+
def set_input_embeddings(self, value: torch.nn.Module):
|
| 122 |
+
self.model.transformer.wte = value
|
| 123 |
+
|
| 124 |
+
def get_output_embeddings(self):
|
| 125 |
+
if self.config.weight_tying:
|
| 126 |
+
return self.model.transformer.wte
|
| 127 |
+
else:
|
| 128 |
+
return self.model.transformer.ff_out
|
| 129 |
+
|
| 130 |
+
def set_output_embeddings(self, value: torch.nn.Module):
|
| 131 |
+
if self.config.weight_tying:
|
| 132 |
+
self.model.transformer.wte = value
|
| 133 |
+
else:
|
| 134 |
+
self.model.transformer.ff_out = value
|
| 135 |
+
|
| 136 |
+
def tie_weights(self):
|
| 137 |
+
if self.config.weight_tying:
|
| 138 |
+
self.model.transformer.ff_out = self.model.transformer.wte
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
# Register the model so that it is available for transformer pipelines, auto-loading, etc.
|
| 142 |
+
AutoModelForCausalLM.register(OLMoConfig, OLMoForCausalLM)
|
venv/lib/python3.10/site-packages/hf_olmo/requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
transformers
|
venv/lib/python3.10/site-packages/hf_olmo/tokenization_olmo_fast.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from transformers import AutoTokenizer, PreTrainedTokenizerFast
|
| 2 |
+
|
| 3 |
+
from hf_olmo.configuration_olmo import OLMoConfig
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
class OLMoTokenizerFast(PreTrainedTokenizerFast):
|
| 7 |
+
# Note: Olmo's tokenizer is already a wrapper around huggingface. This is potentially unnecessary.
|
| 8 |
+
pass
|
| 9 |
+
|
| 10 |
+
# def save_vocabulary(self, save_directory: str, filename_prefix: Optional[str] = None) -> Tuple[str]:
|
| 11 |
+
# # This is required to make the implementation complete.
|
| 12 |
+
# pass
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
# Register the tokenizer class so that it is available for transformer pipelines, auto-loading etc.
|
| 16 |
+
AutoTokenizer.register(OLMoConfig, fast_tokenizer_class=OLMoTokenizerFast)
|
venv/lib/python3.10/site-packages/networkx/__init__.py
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
NetworkX
|
| 3 |
+
========
|
| 4 |
+
|
| 5 |
+
NetworkX is a Python package for the creation, manipulation, and study of the
|
| 6 |
+
structure, dynamics, and functions of complex networks.
|
| 7 |
+
|
| 8 |
+
See https://networkx.org for complete documentation.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
__version__ = "3.4.2"
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
# These are imported in order as listed
|
| 15 |
+
from networkx.lazy_imports import _lazy_import
|
| 16 |
+
|
| 17 |
+
from networkx.exception import *
|
| 18 |
+
|
| 19 |
+
from networkx import utils
|
| 20 |
+
from networkx.utils import _clear_cache, _dispatchable
|
| 21 |
+
|
| 22 |
+
# load_and_call entry_points, set configs
|
| 23 |
+
config = utils.backends._set_configs_from_environment()
|
| 24 |
+
utils.config = utils.configs.config = config # type: ignore[attr-defined]
|
| 25 |
+
|
| 26 |
+
from networkx import classes
|
| 27 |
+
from networkx.classes import filters
|
| 28 |
+
from networkx.classes import *
|
| 29 |
+
|
| 30 |
+
from networkx import convert
|
| 31 |
+
from networkx.convert import *
|
| 32 |
+
|
| 33 |
+
from networkx import convert_matrix
|
| 34 |
+
from networkx.convert_matrix import *
|
| 35 |
+
|
| 36 |
+
from networkx import relabel
|
| 37 |
+
from networkx.relabel import *
|
| 38 |
+
|
| 39 |
+
from networkx import generators
|
| 40 |
+
from networkx.generators import *
|
| 41 |
+
|
| 42 |
+
from networkx import readwrite
|
| 43 |
+
from networkx.readwrite import *
|
| 44 |
+
|
| 45 |
+
# Need to test with SciPy, when available
|
| 46 |
+
from networkx import algorithms
|
| 47 |
+
from networkx.algorithms import *
|
| 48 |
+
|
| 49 |
+
from networkx import linalg
|
| 50 |
+
from networkx.linalg import *
|
| 51 |
+
|
| 52 |
+
from networkx import drawing
|
| 53 |
+
from networkx.drawing import *
|
venv/lib/python3.10/site-packages/networkx/algorithms/__init__.py
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from networkx.algorithms.assortativity import *
|
| 2 |
+
from networkx.algorithms.asteroidal import *
|
| 3 |
+
from networkx.algorithms.boundary import *
|
| 4 |
+
from networkx.algorithms.broadcasting import *
|
| 5 |
+
from networkx.algorithms.bridges import *
|
| 6 |
+
from networkx.algorithms.chains import *
|
| 7 |
+
from networkx.algorithms.centrality import *
|
| 8 |
+
from networkx.algorithms.chordal import *
|
| 9 |
+
from networkx.algorithms.cluster import *
|
| 10 |
+
from networkx.algorithms.clique import *
|
| 11 |
+
from networkx.algorithms.communicability_alg import *
|
| 12 |
+
from networkx.algorithms.components import *
|
| 13 |
+
from networkx.algorithms.coloring import *
|
| 14 |
+
from networkx.algorithms.core import *
|
| 15 |
+
from networkx.algorithms.covering import *
|
| 16 |
+
from networkx.algorithms.cycles import *
|
| 17 |
+
from networkx.algorithms.cuts import *
|
| 18 |
+
from networkx.algorithms.d_separation import *
|
| 19 |
+
from networkx.algorithms.dag import *
|
| 20 |
+
from networkx.algorithms.distance_measures import *
|
| 21 |
+
from networkx.algorithms.distance_regular import *
|
| 22 |
+
from networkx.algorithms.dominance import *
|
| 23 |
+
from networkx.algorithms.dominating import *
|
| 24 |
+
from networkx.algorithms.efficiency_measures import *
|
| 25 |
+
from networkx.algorithms.euler import *
|
| 26 |
+
from networkx.algorithms.graphical import *
|
| 27 |
+
from networkx.algorithms.hierarchy import *
|
| 28 |
+
from networkx.algorithms.hybrid import *
|
| 29 |
+
from networkx.algorithms.link_analysis import *
|
| 30 |
+
from networkx.algorithms.link_prediction import *
|
| 31 |
+
from networkx.algorithms.lowest_common_ancestors import *
|
| 32 |
+
from networkx.algorithms.isolate import *
|
| 33 |
+
from networkx.algorithms.matching import *
|
| 34 |
+
from networkx.algorithms.minors import *
|
| 35 |
+
from networkx.algorithms.mis import *
|
| 36 |
+
from networkx.algorithms.moral import *
|
| 37 |
+
from networkx.algorithms.non_randomness import *
|
| 38 |
+
from networkx.algorithms.operators import *
|
| 39 |
+
from networkx.algorithms.planarity import *
|
| 40 |
+
from networkx.algorithms.planar_drawing import *
|
| 41 |
+
from networkx.algorithms.polynomials import *
|
| 42 |
+
from networkx.algorithms.reciprocity import *
|
| 43 |
+
from networkx.algorithms.regular import *
|
| 44 |
+
from networkx.algorithms.richclub import *
|
| 45 |
+
from networkx.algorithms.shortest_paths import *
|
| 46 |
+
from networkx.algorithms.similarity import *
|
| 47 |
+
from networkx.algorithms.graph_hashing import *
|
| 48 |
+
from networkx.algorithms.simple_paths import *
|
| 49 |
+
from networkx.algorithms.smallworld import *
|
| 50 |
+
from networkx.algorithms.smetric import *
|
| 51 |
+
from networkx.algorithms.structuralholes import *
|
| 52 |
+
from networkx.algorithms.sparsifiers import *
|
| 53 |
+
from networkx.algorithms.summarization import *
|
| 54 |
+
from networkx.algorithms.swap import *
|
| 55 |
+
from networkx.algorithms.time_dependent import *
|
| 56 |
+
from networkx.algorithms.traversal import *
|
| 57 |
+
from networkx.algorithms.triads import *
|
| 58 |
+
from networkx.algorithms.vitality import *
|
| 59 |
+
from networkx.algorithms.voronoi import *
|
| 60 |
+
from networkx.algorithms.walks import *
|
| 61 |
+
from networkx.algorithms.wiener import *
|
| 62 |
+
|
| 63 |
+
# Make certain subpackages available to the user as direct imports from
|
| 64 |
+
# the `networkx` namespace.
|
| 65 |
+
from networkx.algorithms import approximation
|
| 66 |
+
from networkx.algorithms import assortativity
|
| 67 |
+
from networkx.algorithms import bipartite
|
| 68 |
+
from networkx.algorithms import node_classification
|
| 69 |
+
from networkx.algorithms import centrality
|
| 70 |
+
from networkx.algorithms import chordal
|
| 71 |
+
from networkx.algorithms import cluster
|
| 72 |
+
from networkx.algorithms import clique
|
| 73 |
+
from networkx.algorithms import components
|
| 74 |
+
from networkx.algorithms import connectivity
|
| 75 |
+
from networkx.algorithms import community
|
| 76 |
+
from networkx.algorithms import coloring
|
| 77 |
+
from networkx.algorithms import flow
|
| 78 |
+
from networkx.algorithms import isomorphism
|
| 79 |
+
from networkx.algorithms import link_analysis
|
| 80 |
+
from networkx.algorithms import lowest_common_ancestors
|
| 81 |
+
from networkx.algorithms import operators
|
| 82 |
+
from networkx.algorithms import shortest_paths
|
| 83 |
+
from networkx.algorithms import tournament
|
| 84 |
+
from networkx.algorithms import traversal
|
| 85 |
+
from networkx.algorithms import tree
|
| 86 |
+
|
| 87 |
+
# Make certain functions from some of the previous subpackages available
|
| 88 |
+
# to the user as direct imports from the `networkx` namespace.
|
| 89 |
+
from networkx.algorithms.bipartite import complete_bipartite_graph
|
| 90 |
+
from networkx.algorithms.bipartite import is_bipartite
|
| 91 |
+
from networkx.algorithms.bipartite import projected_graph
|
| 92 |
+
from networkx.algorithms.connectivity import all_pairs_node_connectivity
|
| 93 |
+
from networkx.algorithms.connectivity import all_node_cuts
|
| 94 |
+
from networkx.algorithms.connectivity import average_node_connectivity
|
| 95 |
+
from networkx.algorithms.connectivity import edge_connectivity
|
| 96 |
+
from networkx.algorithms.connectivity import edge_disjoint_paths
|
| 97 |
+
from networkx.algorithms.connectivity import k_components
|
| 98 |
+
from networkx.algorithms.connectivity import k_edge_components
|
| 99 |
+
from networkx.algorithms.connectivity import k_edge_subgraphs
|
| 100 |
+
from networkx.algorithms.connectivity import k_edge_augmentation
|
| 101 |
+
from networkx.algorithms.connectivity import is_k_edge_connected
|
| 102 |
+
from networkx.algorithms.connectivity import minimum_edge_cut
|
| 103 |
+
from networkx.algorithms.connectivity import minimum_node_cut
|
| 104 |
+
from networkx.algorithms.connectivity import node_connectivity
|
| 105 |
+
from networkx.algorithms.connectivity import node_disjoint_paths
|
| 106 |
+
from networkx.algorithms.connectivity import stoer_wagner
|
| 107 |
+
from networkx.algorithms.flow import capacity_scaling
|
| 108 |
+
from networkx.algorithms.flow import cost_of_flow
|
| 109 |
+
from networkx.algorithms.flow import gomory_hu_tree
|
| 110 |
+
from networkx.algorithms.flow import max_flow_min_cost
|
| 111 |
+
from networkx.algorithms.flow import maximum_flow
|
| 112 |
+
from networkx.algorithms.flow import maximum_flow_value
|
| 113 |
+
from networkx.algorithms.flow import min_cost_flow
|
| 114 |
+
from networkx.algorithms.flow import min_cost_flow_cost
|
| 115 |
+
from networkx.algorithms.flow import minimum_cut
|
| 116 |
+
from networkx.algorithms.flow import minimum_cut_value
|
| 117 |
+
from networkx.algorithms.flow import network_simplex
|
| 118 |
+
from networkx.algorithms.isomorphism import could_be_isomorphic
|
| 119 |
+
from networkx.algorithms.isomorphism import fast_could_be_isomorphic
|
| 120 |
+
from networkx.algorithms.isomorphism import faster_could_be_isomorphic
|
| 121 |
+
from networkx.algorithms.isomorphism import is_isomorphic
|
| 122 |
+
from networkx.algorithms.isomorphism.vf2pp import *
|
| 123 |
+
from networkx.algorithms.tree.branchings import maximum_branching
|
| 124 |
+
from networkx.algorithms.tree.branchings import maximum_spanning_arborescence
|
| 125 |
+
from networkx.algorithms.tree.branchings import minimum_branching
|
| 126 |
+
from networkx.algorithms.tree.branchings import minimum_spanning_arborescence
|
| 127 |
+
from networkx.algorithms.tree.branchings import ArborescenceIterator
|
| 128 |
+
from networkx.algorithms.tree.coding import *
|
| 129 |
+
from networkx.algorithms.tree.decomposition import *
|
| 130 |
+
from networkx.algorithms.tree.mst import *
|
| 131 |
+
from networkx.algorithms.tree.operations import *
|
| 132 |
+
from networkx.algorithms.tree.recognition import *
|
| 133 |
+
from networkx.algorithms.tournament import is_tournament
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (5.58 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/asteroidal.cpython-310.pyc
ADDED
|
Binary file (5.42 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/boundary.cpython-310.pyc
ADDED
|
Binary file (5.45 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/bridges.cpython-310.pyc
ADDED
|
Binary file (6.17 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/broadcasting.cpython-310.pyc
ADDED
|
Binary file (5.95 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/chains.cpython-310.pyc
ADDED
|
Binary file (5.22 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/chordal.cpython-310.pyc
ADDED
|
Binary file (12.6 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/clique.cpython-310.pyc
ADDED
|
Binary file (27.1 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/cluster.cpython-310.pyc
ADDED
|
Binary file (20.7 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/communicability_alg.cpython-310.pyc
ADDED
|
Binary file (4.56 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/core.cpython-310.pyc
ADDED
|
Binary file (17.8 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/covering.cpython-310.pyc
ADDED
|
Binary file (5.02 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/cuts.cpython-310.pyc
ADDED
|
Binary file (10.3 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/cycles.cpython-310.pyc
ADDED
|
Binary file (36.9 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/d_separation.cpython-310.pyc
ADDED
|
Binary file (25.2 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/dag.cpython-310.pyc
ADDED
|
Binary file (43.4 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/distance_measures.cpython-310.pyc
ADDED
|
Binary file (28.5 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/distance_regular.cpython-310.pyc
ADDED
|
Binary file (6.96 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/dominance.cpython-310.pyc
ADDED
|
Binary file (4.04 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/dominating.cpython-310.pyc
ADDED
|
Binary file (2.8 kB). View file
|
|
|
venv/lib/python3.10/site-packages/networkx/algorithms/__pycache__/efficiency_measures.cpython-310.pyc
ADDED
|
Binary file (4.93 kB). View file
|
|
|