Import tensorflow

This commit is contained in:
2026-02-15 21:45:42 -08:00
parent f3e8b90764
commit c530630153
20524 changed files with 9017694 additions and 25 deletions
@@ -0,0 +1,20 @@
=======
Credits
=======
Maintainer
----------
* Simon Percivall <percivall@gmail.com>
Authors
-------
* The Python Software Foundation
* Bogdan Opanchuk
* Vladimir Iakovlev
* Thomas Grainger
* Amund Hov
* Jakub Wilk
* Mateusz Bysiek
* Serge Sans Paille
@@ -0,0 +1,64 @@
LICENSE
=======
Copyright (c) 2014, Simon Percivall
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of AST Unparser nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
--------------------------------------------
1. This LICENSE AGREEMENT is between the Python Software Foundation
("PSF"), and the Individual or Organization ("Licensee") accessing and
otherwise using this software ("Python") in source or binary form and
its associated documentation.
2. Subject to the terms and conditions of this License Agreement, PSF hereby
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
analyze, test, perform and/or display publicly, prepare derivative works,
distribute, and otherwise use Python alone or in any derivative version,
provided, however, that PSF's License Agreement and PSF's notice of copyright,
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011, 2012, 2013, 2014 Python Software Foundation; All Rights Reserved" are retained
in Python alone or in any derivative version prepared by Licensee.
3. In the event Licensee prepares a derivative work that is based on
or incorporates Python or any part thereof, and wants to make
the derivative work available to others as provided herein, then
Licensee hereby agrees to include in any such work a brief summary of
the changes made to Python.
4. PSF is making Python available to Licensee on an "AS IS"
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
6. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.
7. Nothing in this License Agreement shall be deemed to create any
relationship of agency, partnership, or joint venture between PSF and
Licensee. This License Agreement does not grant permission to use PSF
trademarks or trade name in a trademark sense to endorse or promote
products or services of Licensee, or any third party.
8. By copying, installing or otherwise using Python, Licensee
agrees to be bound by the terms and conditions of this License
Agreement.
@@ -0,0 +1,165 @@
Metadata-Version: 2.1
Name: astunparse
Version: 1.6.3
Summary: An AST unparser for Python
Home-page: https://github.com/simonpercivall/astunparse
Maintainer: Simon Percivall
Maintainer-email: percivall@gmail.com
License: BSD
Keywords: astunparse
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Code Generators
Requires-Dist: wheel (<1.0,>=0.23.0)
Requires-Dist: six (<2.0,>=1.6.1)
============
AST Unparser
============
.. image:: https://badge.fury.io/py/astunparse.png
:target: http://badge.fury.io/py/astunparse
.. image:: https://travis-ci.org/simonpercivall/astunparse.png?branch=master
:target: https://travis-ci.org/simonpercivall/astunparse
.. image:: https://readthedocs.org/projects/astunparse/badge/
:target: https://astunparse.readthedocs.org/
An AST unparser for Python.
This is a factored out version of ``unparse`` found in the Python
source distribution; under Demo/parser in Python 2 and under Tools/parser
in Python 3.
Basic example::
import inspect
import ast
import astunparse
# get back the source code
astunparse.unparse(ast.parse(inspect.getsource(ast)))
# get a pretty-printed dump of the AST
astunparse.dump(ast.parse(inspect.getsource(ast)))
This library is single-source compatible with Python 2.6 through Python 3.5. It
is authored by the Python core developers; I have simply merged the Python 2.7
and the Python 3.5 source and test suites, and added a wrapper. This factoring
out is to provide a library implementation that supports both versions.
Added to this is a pretty-printing ``dump`` utility function.
The test suite both runs specific tests and also roundtrips much of the
standard library.
Extensions and Alternatives
---------------------------
Similar projects include:
* codegen_
* astor_
* astmonkey_
* astprint_
None of these roundtrip much of the standard library and fail several of the basic
tests in the ``test_unparse`` test suite.
This library uses mature and core maintained code instead of trying to patch
existing libraries. The ``unparse`` and the ``test_unparse`` modules
are under the PSF license.
Extensions include:
* typed-astunparse: extends astunparse to support type annotations.
* Documentation: http://astunparse.rtfd.org.
Features
--------
* unparses Python AST.
* pretty-prints AST.
.. _codegen: https://github.com/andreif/codegen
.. _astor: https://github.com/berkerpeksag/astor
.. _astmonkey: https://github.com/konradhalas/astmonkey
.. _astprint: https://github.com/Manticore/astprint
Changelog
=========
Here's the recent changes to AST Unparser.
1.6.3 - 2019-12-22
~~~~~~~~~~~~~~~~~~
* Add full support for Python 3.8
1.6.2 - 2019-01-19
~~~~~~~~~~~~~~~~~~
* Add support for the Constant node in Python 3.8
* Add tests to the sdist
1.6.1 - 2018-10-03
~~~~~~~~~~~~~~~~~~
* Fix the roundtripping of very complex f-strings.
1.6.0 - 2018-09-30
~~~~~~~~~~~~~~~~~~
* Python 3.7 compatibility
1.5.0 - 2017-02-05
~~~~~~~~~~~~~~~~~~
* Python 3.6 compatibility
* bugfix: correct argparser option type
1.4.0 - 2016-06-24
~~~~~~~~~~~~~~~~~~
* Support for the ``async`` keyword
* Support for unparsing "Interactive" and "Expression" nodes
1.3.0 - 2016-01-17
~~~~~~~~~~~~~~~~~~
* Python 3.5 compatibility
1.2.0 - 2014-04-03
~~~~~~~~~~~~~~~~~~
* Python 2.6 through 3.4 compatibility
* A new function ``dump`` is added to return a pretty-printed version
of the AST. It's also available when running ``python -m astunparse``
as the ``--dump`` argument.
1.1.0 - 2014-04-01
~~~~~~~~~~~~~~~~~~
* ``unparse`` will return the source code for an AST. It is pretty
feature-complete, and round-trips the stdlib, and is compatible with
Python 2.7 and Python 3.4.
Running ``python -m astunparse`` will print the round-tripped source
for any python files given as argument.
@@ -0,0 +1,15 @@
astunparse-1.6.3.dist-info/AUTHORS.rst,sha256=_VxW6Jgbo7Qu1u8z3O3uS0_AoCwuagAPoHwsc5TwxVw,257
astunparse-1.6.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
astunparse-1.6.3.dist-info/LICENSE,sha256=kvwOT0-pRgVY7t80ErmI1DOi3Ls6nEVAKhRaT6uKasY,3936
astunparse-1.6.3.dist-info/METADATA,sha256=vQ5__mA9vvjnREIJ61SolBrPCW52OugdLCScjVsL_Ec,4391
astunparse-1.6.3.dist-info/RECORD,,
astunparse-1.6.3.dist-info/WHEEL,sha256=8zNYZbwQSXoB9IfXOjPfeNwvAsALAjffgk27FqvCWbo,110
astunparse-1.6.3.dist-info/top_level.txt,sha256=D97cApMaOtwZJ6KEsu7GakV5Kt7YpcRkL0dD010ftIo,11
astunparse/__init__.py,sha256=Vi1Ni9JeZyX7kUX7YEgvaj1S6ky6RyUy8qL_CON1Ugw,357
astunparse/__main__.py,sha256=OeZij_FXCdGilJ1G5H7H0ChEOuDJUqY_hFCLe8GZpc8,1222
astunparse/__pycache__/__init__.cpython-311.pyc,,
astunparse/__pycache__/__main__.cpython-311.pyc,,
astunparse/__pycache__/printer.cpython-311.pyc,,
astunparse/__pycache__/unparser.cpython-311.pyc,,
astunparse/printer.py,sha256=8K09sbxtItuH9qE7jphZfN4vudsn3KpIWssudeBAXGo,1408
astunparse/unparser.py,sha256=RnI-3goUb3N72KIDHDRiFApOJZfIcAtQ5vEIUY7jB5M,27426
@@ -0,0 +1,6 @@
Wheel-Version: 1.0
Generator: bdist_wheel (0.33.6)
Root-Is-Purelib: true
Tag: py2-none-any
Tag: py3-none-any