Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .github/workflows/update_space.yml +28 -0
- .venv/.gitignore +1 -0
- .venv/.lock +0 -0
- .venv/CACHEDIR.TAG +1 -0
- .venv/Lib/site-packages/3c22db458360489351e4__mypyc.cp312-win_amd64.pyd +3 -0
- .venv/Lib/site-packages/Brotli-1.1.0.dist-info/INSTALLER +1 -0
- .venv/Lib/site-packages/Brotli-1.1.0.dist-info/LICENSE +19 -0
- .venv/Lib/site-packages/Brotli-1.1.0.dist-info/METADATA +131 -0
- .venv/Lib/site-packages/Brotli-1.1.0.dist-info/RECORD +9 -0
- .venv/Lib/site-packages/Brotli-1.1.0.dist-info/REQUESTED +0 -0
- .venv/Lib/site-packages/Brotli-1.1.0.dist-info/WHEEL +5 -0
- .venv/Lib/site-packages/Brotli-1.1.0.dist-info/top_level.txt +2 -0
- .venv/Lib/site-packages/IPython/__init__.py +144 -0
- .venv/Lib/site-packages/IPython/__main__.py +14 -0
- .venv/Lib/site-packages/IPython/__pycache__/__init__.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/__pycache__/display.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/__pycache__/paths.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__init__.py +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/__init__.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/alias.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/application.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/async_helpers.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/autocall.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/builtin_trap.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/compilerop.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/completer.cpython-312.pyc +3 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/crashhandler.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/debugger.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/debugger_backport.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/display.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/display_functions.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/display_trap.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/displayhook.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/displaypub.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/doctb.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/error.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/events.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/extensions.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/formatters.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/getipython.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/guarded_eval.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/history.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/hooks.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/inputtransformer2.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/interactiveshell.cpython-312.pyc +3 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/latex_symbols.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/logger.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/macro.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/magic.cpython-312.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/magic_arguments.cpython-312.pyc +0 -0
.github/workflows/update_space.yml
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Run Python script
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
- main
|
| 7 |
+
|
| 8 |
+
jobs:
|
| 9 |
+
build:
|
| 10 |
+
runs-on: ubuntu-latest
|
| 11 |
+
|
| 12 |
+
steps:
|
| 13 |
+
- name: Checkout
|
| 14 |
+
uses: actions/checkout@v2
|
| 15 |
+
|
| 16 |
+
- name: Set up Python
|
| 17 |
+
uses: actions/setup-python@v2
|
| 18 |
+
with:
|
| 19 |
+
python-version: '3.9'
|
| 20 |
+
|
| 21 |
+
- name: Install Gradio
|
| 22 |
+
run: python -m pip install gradio
|
| 23 |
+
|
| 24 |
+
- name: Log in to Hugging Face
|
| 25 |
+
run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")'
|
| 26 |
+
|
| 27 |
+
- name: Deploy to Spaces
|
| 28 |
+
run: gradio deploy
|
.venv/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
*
|
.venv/.lock
ADDED
|
File without changes
|
.venv/CACHEDIR.TAG
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Signature: 8a477f597d28d172789f06886806bc55
|
.venv/Lib/site-packages/3c22db458360489351e4__mypyc.cp312-win_amd64.pyd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0926deb923a20a2e4e8186ed36fe110fd2e1188471ead07e0d70aaa5f69f12bc
|
| 3 |
+
size 167424
|
.venv/Lib/site-packages/Brotli-1.1.0.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
uv
|
.venv/Lib/site-packages/Brotli-1.1.0.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors.
|
| 2 |
+
|
| 3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 4 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 5 |
+
in the Software without restriction, including without limitation the rights
|
| 6 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 7 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 8 |
+
furnished to do so, subject to the following conditions:
|
| 9 |
+
|
| 10 |
+
The above copyright notice and this permission notice shall be included in
|
| 11 |
+
all copies or substantial portions of the Software.
|
| 12 |
+
|
| 13 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 14 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 15 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 16 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 17 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 18 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 19 |
+
THE SOFTWARE.
|
.venv/Lib/site-packages/Brotli-1.1.0.dist-info/METADATA
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: Brotli
|
| 3 |
+
Version: 1.1.0
|
| 4 |
+
Summary: Python bindings for the Brotli compression library
|
| 5 |
+
Home-page: https://github.com/google/brotli
|
| 6 |
+
Author: The Brotli Authors
|
| 7 |
+
License: MIT
|
| 8 |
+
Platform: Posix
|
| 9 |
+
Platform: MacOS X
|
| 10 |
+
Platform: Windows
|
| 11 |
+
Classifier: Development Status :: 4 - Beta
|
| 12 |
+
Classifier: Environment :: Console
|
| 13 |
+
Classifier: Intended Audience :: Developers
|
| 14 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 15 |
+
Classifier: Operating System :: MacOS :: MacOS X
|
| 16 |
+
Classifier: Operating System :: Microsoft :: Windows
|
| 17 |
+
Classifier: Operating System :: POSIX :: Linux
|
| 18 |
+
Classifier: Programming Language :: C
|
| 19 |
+
Classifier: Programming Language :: C++
|
| 20 |
+
Classifier: Programming Language :: Python
|
| 21 |
+
Classifier: Programming Language :: Python :: 2
|
| 22 |
+
Classifier: Programming Language :: Python :: 2.7
|
| 23 |
+
Classifier: Programming Language :: Python :: 3
|
| 24 |
+
Classifier: Programming Language :: Python :: 3.3
|
| 25 |
+
Classifier: Programming Language :: Python :: 3.4
|
| 26 |
+
Classifier: Programming Language :: Python :: 3.5
|
| 27 |
+
Classifier: Programming Language :: Unix Shell
|
| 28 |
+
Classifier: Topic :: Software Development :: Libraries
|
| 29 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 30 |
+
Classifier: Topic :: System :: Archiving
|
| 31 |
+
Classifier: Topic :: System :: Archiving :: Compression
|
| 32 |
+
Classifier: Topic :: Text Processing :: Fonts
|
| 33 |
+
Classifier: Topic :: Utilities
|
| 34 |
+
Description-Content-Type: text/markdown
|
| 35 |
+
License-File: LICENSE
|
| 36 |
+
|
| 37 |
+
<p align="center">
|
| 38 |
+
<img src="https://github.com/google/brotli/actions/workflows/build_test.yml/badge.svg" alt="GitHub Actions Build Status" href="https://github.com/google/brotli/actions?query=branch%3Amaster">
|
| 39 |
+
<img src="https://oss-fuzz-build-logs.storage.googleapis.com/badges/brotli.svg" alt="Fuzzing Status" href="https://oss-fuzz-build-logs.storage.googleapis.com/index.html#brotli">
|
| 40 |
+
</p>
|
| 41 |
+
<p align="center"><img src="https://brotli.org/brotli.svg" alt="Brotli" width="64"></p>
|
| 42 |
+
|
| 43 |
+
### Introduction
|
| 44 |
+
|
| 45 |
+
Brotli is a generic-purpose lossless compression algorithm that compresses data
|
| 46 |
+
using a combination of a modern variant of the LZ77 algorithm, Huffman coding
|
| 47 |
+
and 2nd order context modeling, with a compression ratio comparable to the best
|
| 48 |
+
currently available general-purpose compression methods. It is similar in speed
|
| 49 |
+
with deflate but offers more dense compression.
|
| 50 |
+
|
| 51 |
+
The specification of the Brotli Compressed Data Format is defined in [RFC 7932](https://tools.ietf.org/html/rfc7932).
|
| 52 |
+
|
| 53 |
+
Brotli is open-sourced under the MIT License, see the LICENSE file.
|
| 54 |
+
|
| 55 |
+
> **Please note:** brotli is a "stream" format; it does not contain
|
| 56 |
+
> meta-information, like checksums or uncompresssed data length. It is possible
|
| 57 |
+
> to modify "raw" ranges of the compressed stream and the decoder will not
|
| 58 |
+
> notice that.
|
| 59 |
+
|
| 60 |
+
### Build instructions
|
| 61 |
+
|
| 62 |
+
#### Vcpkg
|
| 63 |
+
|
| 64 |
+
You can download and install brotli using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager:
|
| 65 |
+
|
| 66 |
+
git clone https://github.com/Microsoft/vcpkg.git
|
| 67 |
+
cd vcpkg
|
| 68 |
+
./bootstrap-vcpkg.sh
|
| 69 |
+
./vcpkg integrate install
|
| 70 |
+
./vcpkg install brotli
|
| 71 |
+
|
| 72 |
+
The brotli port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
|
| 73 |
+
|
| 74 |
+
#### Bazel
|
| 75 |
+
|
| 76 |
+
See [Bazel](http://www.bazel.build/)
|
| 77 |
+
|
| 78 |
+
#### CMake
|
| 79 |
+
|
| 80 |
+
The basic commands to build and install brotli are:
|
| 81 |
+
|
| 82 |
+
$ mkdir out && cd out
|
| 83 |
+
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./installed ..
|
| 84 |
+
$ cmake --build . --config Release --target install
|
| 85 |
+
|
| 86 |
+
You can use other [CMake](https://cmake.org/) configuration.
|
| 87 |
+
|
| 88 |
+
#### Python
|
| 89 |
+
|
| 90 |
+
To install the latest release of the Python module, run the following:
|
| 91 |
+
|
| 92 |
+
$ pip install brotli
|
| 93 |
+
|
| 94 |
+
To install the tip-of-the-tree version, run:
|
| 95 |
+
|
| 96 |
+
$ pip install --upgrade git+https://github.com/google/brotli
|
| 97 |
+
|
| 98 |
+
See the [Python readme](python/README.md) for more details on installing
|
| 99 |
+
from source, development, and testing.
|
| 100 |
+
|
| 101 |
+
### Contributing
|
| 102 |
+
|
| 103 |
+
We glad to answer/library related questions in
|
| 104 |
+
[brotli mailing list](https://groups.google.com/forum/#!forum/brotli).
|
| 105 |
+
|
| 106 |
+
Regular issues / feature requests should be reported in
|
| 107 |
+
[issue tracker](https://github.com/google/brotli/issues).
|
| 108 |
+
|
| 109 |
+
For reporting vulnerability please read [SECURITY](SECURITY.md).
|
| 110 |
+
|
| 111 |
+
For contributing changes please read [CONTRIBUTING](CONTRIBUTING.md).
|
| 112 |
+
|
| 113 |
+
### Benchmarks
|
| 114 |
+
* [Squash Compression Benchmark](https://quixdb.github.io/squash-benchmark/) / [Unstable Squash Compression Benchmark](https://quixdb.github.io/squash-benchmark/unstable/)
|
| 115 |
+
* [Large Text Compression Benchmark](http://mattmahoney.net/dc/text.html)
|
| 116 |
+
* [Lzturbo Benchmark](https://sites.google.com/site/powturbo/home/benchmark)
|
| 117 |
+
|
| 118 |
+
### Related projects
|
| 119 |
+
> **Disclaimer:** Brotli authors take no responsibility for the third party projects mentioned in this section.
|
| 120 |
+
|
| 121 |
+
Independent [decoder](https://github.com/madler/brotli) implementation by Mark Adler, based entirely on format specification.
|
| 122 |
+
|
| 123 |
+
JavaScript port of brotli [decoder](https://github.com/devongovett/brotli.js). Could be used directly via `npm install brotli`
|
| 124 |
+
|
| 125 |
+
Hand ported [decoder / encoder](https://github.com/dominikhlbg/BrotliHaxe) in haxe by Dominik Homberger. Output source code: JavaScript, PHP, Python, Java and C#
|
| 126 |
+
|
| 127 |
+
7Zip [plugin](https://github.com/mcmilk/7-Zip-Zstd)
|
| 128 |
+
|
| 129 |
+
Dart [native bindings](https://github.com/thosakwe/brotli)
|
| 130 |
+
|
| 131 |
+
Dart compression framework with [fast FFI-based Brotli implementation](https://pub.dev/documentation/es_compression/latest/brotli/brotli-library.html) with ready-to-use prebuilt binaries for Win/Linux/Mac
|
.venv/Lib/site-packages/Brotli-1.1.0.dist-info/RECORD
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Brotli-1.1.0.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
|
| 2 |
+
Brotli-1.1.0.dist-info/LICENSE,sha256=YK4PE-dswuqqEIZ37vpM4Wtkf2u-jPChrJQp2C7Kckg,1103
|
| 3 |
+
Brotli-1.1.0.dist-info/METADATA,sha256=haxT0gOqq3_iFq-_zfAiWExRUORg8c4O8wd_55nhCWU,5627
|
| 4 |
+
Brotli-1.1.0.dist-info/RECORD,,
|
| 5 |
+
Brotli-1.1.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 6 |
+
Brotli-1.1.0.dist-info/WHEEL,sha256=aDrgWfEd5Ac7WJzHsr90rcMGiH4MHbAXoCWpyP5CEBc,102
|
| 7 |
+
Brotli-1.1.0.dist-info/top_level.txt,sha256=gsS54HrhO3ZveFxeMrKo_7qH4Sm4TbQ7jGLVBEqJ4NI,15
|
| 8 |
+
_brotli.cp312-win_amd64.pyd,sha256=eIrL_Q7dbKPvPpepSH7q6oZRVkLHHLEbvPJXIeZXPsg,821248
|
| 9 |
+
brotli.py,sha256=f1qBr2xlHP689IgPpW9qtVSVBXxlNLAPwsr6BbKOr9M,1921
|
.venv/Lib/site-packages/Brotli-1.1.0.dist-info/REQUESTED
ADDED
|
File without changes
|
.venv/Lib/site-packages/Brotli-1.1.0.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.41.2)
|
| 3 |
+
Root-Is-Purelib: false
|
| 4 |
+
Tag: cp312-cp312-win_amd64
|
| 5 |
+
|
.venv/Lib/site-packages/Brotli-1.1.0.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_brotli
|
| 2 |
+
brotli
|
.venv/Lib/site-packages/IPython/__init__.py
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PYTHON_ARGCOMPLETE_OK
|
| 2 |
+
"""
|
| 3 |
+
IPython: tools for interactive and parallel computing in Python.
|
| 4 |
+
|
| 5 |
+
https://ipython.org
|
| 6 |
+
"""
|
| 7 |
+
#-----------------------------------------------------------------------------
|
| 8 |
+
# Copyright (c) 2008-2011, IPython Development Team.
|
| 9 |
+
# Copyright (c) 2001-2007, Fernando Perez <fernando.perez@colorado.edu>
|
| 10 |
+
# Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>
|
| 11 |
+
# Copyright (c) 2001, Nathaniel Gray <n8gray@caltech.edu>
|
| 12 |
+
#
|
| 13 |
+
# Distributed under the terms of the Modified BSD License.
|
| 14 |
+
#
|
| 15 |
+
# The full license is in the file COPYING.txt, distributed with this software.
|
| 16 |
+
#-----------------------------------------------------------------------------
|
| 17 |
+
|
| 18 |
+
#-----------------------------------------------------------------------------
|
| 19 |
+
# Imports
|
| 20 |
+
#-----------------------------------------------------------------------------
|
| 21 |
+
|
| 22 |
+
import sys
|
| 23 |
+
import warnings
|
| 24 |
+
|
| 25 |
+
#-----------------------------------------------------------------------------
|
| 26 |
+
# Setup everything
|
| 27 |
+
#-----------------------------------------------------------------------------
|
| 28 |
+
|
| 29 |
+
# Don't forget to also update setup.py when this changes!
|
| 30 |
+
if sys.version_info < (3, 11):
|
| 31 |
+
raise ImportError(
|
| 32 |
+
"""
|
| 33 |
+
IPython 8.31+ supports Python 3.11 and above, following SPEC0
|
| 34 |
+
IPython 8.19+ supports Python 3.10 and above, following SPEC0.
|
| 35 |
+
IPython 8.13+ supports Python 3.9 and above, following NEP 29.
|
| 36 |
+
IPython 8.0-8.12 supports Python 3.8 and above, following NEP 29.
|
| 37 |
+
When using Python 2.7, please install IPython 5.x LTS Long Term Support version.
|
| 38 |
+
Python 3.3 and 3.4 were supported up to IPython 6.x.
|
| 39 |
+
Python 3.5 was supported with IPython 7.0 to 7.9.
|
| 40 |
+
Python 3.6 was supported with IPython up to 7.16.
|
| 41 |
+
Python 3.7 was still supported with the 7.x branch.
|
| 42 |
+
|
| 43 |
+
See IPython `README.rst` file for more information:
|
| 44 |
+
|
| 45 |
+
https://github.com/ipython/ipython/blob/main/README.rst
|
| 46 |
+
|
| 47 |
+
"""
|
| 48 |
+
)
|
| 49 |
+
|
| 50 |
+
#-----------------------------------------------------------------------------
|
| 51 |
+
# Setup the top level names
|
| 52 |
+
#-----------------------------------------------------------------------------
|
| 53 |
+
|
| 54 |
+
from .core.getipython import get_ipython
|
| 55 |
+
from .core import release
|
| 56 |
+
from .core.application import Application
|
| 57 |
+
from .terminal.embed import embed
|
| 58 |
+
|
| 59 |
+
from .core.interactiveshell import InteractiveShell
|
| 60 |
+
from .utils.sysinfo import sys_info
|
| 61 |
+
from .utils.frame import extract_module_locals
|
| 62 |
+
|
| 63 |
+
__all__ = ["start_ipython", "embed", "embed_kernel"]
|
| 64 |
+
|
| 65 |
+
# Release data
|
| 66 |
+
__author__ = '%s <%s>' % (release.author, release.author_email)
|
| 67 |
+
__license__ = release.license
|
| 68 |
+
__version__ = release.version
|
| 69 |
+
version_info = release.version_info
|
| 70 |
+
# list of CVEs that should have been patched in this release.
|
| 71 |
+
# this is informational and should not be relied upon.
|
| 72 |
+
__patched_cves__ = {"CVE-2022-21699", "CVE-2023-24816"}
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
def embed_kernel(module=None, local_ns=None, **kwargs):
|
| 76 |
+
"""Embed and start an IPython kernel in a given scope.
|
| 77 |
+
|
| 78 |
+
If you don't want the kernel to initialize the namespace
|
| 79 |
+
from the scope of the surrounding function,
|
| 80 |
+
and/or you want to load full IPython configuration,
|
| 81 |
+
you probably want `IPython.start_kernel()` instead.
|
| 82 |
+
|
| 83 |
+
This is a deprecated alias for `ipykernel.embed.embed_kernel()`,
|
| 84 |
+
to be removed in the future.
|
| 85 |
+
You should import directly from `ipykernel.embed`; this wrapper
|
| 86 |
+
fails anyway if you don't have `ipykernel` package installed.
|
| 87 |
+
|
| 88 |
+
Parameters
|
| 89 |
+
----------
|
| 90 |
+
module : types.ModuleType, optional
|
| 91 |
+
The module to load into IPython globals (default: caller)
|
| 92 |
+
local_ns : dict, optional
|
| 93 |
+
The namespace to load into IPython user namespace (default: caller)
|
| 94 |
+
**kwargs : various, optional
|
| 95 |
+
Further keyword args are relayed to the IPKernelApp constructor,
|
| 96 |
+
such as `config`, a traitlets :class:`Config` object (see :ref:`configure_start_ipython`),
|
| 97 |
+
allowing configuration of the kernel. Will only have an effect
|
| 98 |
+
on the first embed_kernel call for a given process.
|
| 99 |
+
"""
|
| 100 |
+
|
| 101 |
+
warnings.warn(
|
| 102 |
+
"import embed_kernel from ipykernel.embed directly (since 2013)."
|
| 103 |
+
" Importing from IPython will be removed in the future",
|
| 104 |
+
DeprecationWarning,
|
| 105 |
+
stacklevel=2,
|
| 106 |
+
)
|
| 107 |
+
|
| 108 |
+
(caller_module, caller_locals) = extract_module_locals(1)
|
| 109 |
+
if module is None:
|
| 110 |
+
module = caller_module
|
| 111 |
+
if local_ns is None:
|
| 112 |
+
local_ns = dict(**caller_locals)
|
| 113 |
+
|
| 114 |
+
# Only import .zmq when we really need it
|
| 115 |
+
from ipykernel.embed import embed_kernel as real_embed_kernel
|
| 116 |
+
real_embed_kernel(module=module, local_ns=local_ns, **kwargs)
|
| 117 |
+
|
| 118 |
+
def start_ipython(argv=None, **kwargs):
|
| 119 |
+
"""Launch a normal IPython instance (as opposed to embedded)
|
| 120 |
+
|
| 121 |
+
`IPython.embed()` puts a shell in a particular calling scope,
|
| 122 |
+
such as a function or method for debugging purposes,
|
| 123 |
+
which is often not desirable.
|
| 124 |
+
|
| 125 |
+
`start_ipython()` does full, regular IPython initialization,
|
| 126 |
+
including loading startup files, configuration, etc.
|
| 127 |
+
much of which is skipped by `embed()`.
|
| 128 |
+
|
| 129 |
+
This is a public API method, and will survive implementation changes.
|
| 130 |
+
|
| 131 |
+
Parameters
|
| 132 |
+
----------
|
| 133 |
+
argv : list or None, optional
|
| 134 |
+
If unspecified or None, IPython will parse command-line options from sys.argv.
|
| 135 |
+
To prevent any command-line parsing, pass an empty list: `argv=[]`.
|
| 136 |
+
user_ns : dict, optional
|
| 137 |
+
specify this dictionary to initialize the IPython user namespace with particular values.
|
| 138 |
+
**kwargs : various, optional
|
| 139 |
+
Any other kwargs will be passed to the Application constructor,
|
| 140 |
+
such as `config`, a traitlets :class:`Config` object (see :ref:`configure_start_ipython`),
|
| 141 |
+
allowing configuration of the instance (see :ref:`terminal_options`).
|
| 142 |
+
"""
|
| 143 |
+
from IPython.terminal.ipapp import launch_new_instance
|
| 144 |
+
return launch_new_instance(argv=argv, **kwargs)
|
.venv/Lib/site-packages/IPython/__main__.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PYTHON_ARGCOMPLETE_OK
|
| 2 |
+
# encoding: utf-8
|
| 3 |
+
"""Terminal-based IPython entry point."""
|
| 4 |
+
# -----------------------------------------------------------------------------
|
| 5 |
+
# Copyright (c) 2012, IPython Development Team.
|
| 6 |
+
#
|
| 7 |
+
# Distributed under the terms of the Modified BSD License.
|
| 8 |
+
#
|
| 9 |
+
# The full license is in the file COPYING.txt, distributed with this software.
|
| 10 |
+
# -----------------------------------------------------------------------------
|
| 11 |
+
|
| 12 |
+
from IPython import start_ipython
|
| 13 |
+
|
| 14 |
+
start_ipython()
|
.venv/Lib/site-packages/IPython/__pycache__/__init__.cpython-312.pyc
ADDED
|
Binary file (4.98 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/__pycache__/display.cpython-312.pyc
ADDED
|
Binary file (911 Bytes). View file
|
|
|
.venv/Lib/site-packages/IPython/__pycache__/paths.cpython-312.pyc
ADDED
|
Binary file (5.54 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__init__.py
ADDED
|
File without changes
|
.venv/Lib/site-packages/IPython/core/__pycache__/__init__.cpython-312.pyc
ADDED
|
Binary file (206 Bytes). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/alias.cpython-312.pyc
ADDED
|
Binary file (10.5 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/application.cpython-312.pyc
ADDED
|
Binary file (22.9 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/async_helpers.cpython-312.pyc
ADDED
|
Binary file (6.28 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/autocall.cpython-312.pyc
ADDED
|
Binary file (2.37 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/builtin_trap.cpython-312.pyc
ADDED
|
Binary file (4.05 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/compilerop.cpython-312.pyc
ADDED
|
Binary file (6.16 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/completer.cpython-312.pyc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:97477ecbe004db35abcb2bd2b45d6b27c10fce436b0f0f98b6126f231260e2c8
|
| 3 |
+
size 131594
|
.venv/Lib/site-packages/IPython/core/__pycache__/crashhandler.cpython-312.pyc
ADDED
|
Binary file (9.23 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/debugger.cpython-312.pyc
ADDED
|
Binary file (46.6 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/debugger_backport.cpython-312.pyc
ADDED
|
Binary file (9.07 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/display.cpython-312.pyc
ADDED
|
Binary file (49 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/display_functions.cpython-312.pyc
ADDED
|
Binary file (12.8 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/display_trap.cpython-312.pyc
ADDED
|
Binary file (2.55 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/displayhook.cpython-312.pyc
ADDED
|
Binary file (15.7 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/displaypub.cpython-312.pyc
ADDED
|
Binary file (7.17 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/doctb.cpython-312.pyc
ADDED
|
Binary file (16.3 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/error.cpython-312.pyc
ADDED
|
Binary file (1.82 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/events.cpython-312.pyc
ADDED
|
Binary file (6.29 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/extensions.cpython-312.pyc
ADDED
|
Binary file (6.32 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/formatters.cpython-312.pyc
ADDED
|
Binary file (40.9 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/getipython.cpython-312.pyc
ADDED
|
Binary file (705 Bytes). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/guarded_eval.cpython-312.pyc
ADDED
|
Binary file (34.9 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/history.cpython-312.pyc
ADDED
|
Binary file (48.8 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/hooks.cpython-312.pyc
ADDED
|
Binary file (5.78 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/inputtransformer2.cpython-312.pyc
ADDED
|
Binary file (34.8 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/interactiveshell.cpython-312.pyc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a1ea7724b7c031278d9aeb2f05d7fa79c323fd6e7713fff777c84877ba1fa41
|
| 3 |
+
size 156335
|
.venv/Lib/site-packages/IPython/core/__pycache__/latex_symbols.cpython-312.pyc
ADDED
|
Binary file (54 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/logger.cpython-312.pyc
ADDED
|
Binary file (9.2 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/macro.cpython-312.pyc
ADDED
|
Binary file (2.5 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/magic.cpython-312.pyc
ADDED
|
Binary file (28.2 kB). View file
|
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/magic_arguments.cpython-312.pyc
ADDED
|
Binary file (11.8 kB). View file
|
|
|