manish72 commited on
Commit
5a9a291
·
verified ·
1 Parent(s): 079052f

Upload 14531 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +19 -0
  2. .venv/Lib/site-packages/GitPython-3.1.43.dist-info/AUTHORS +58 -0
  3. .venv/Lib/site-packages/GitPython-3.1.43.dist-info/INSTALLER +1 -0
  4. .venv/Lib/site-packages/GitPython-3.1.43.dist-info/LICENSE +29 -0
  5. .venv/Lib/site-packages/GitPython-3.1.43.dist-info/METADATA +297 -0
  6. .venv/Lib/site-packages/GitPython-3.1.43.dist-info/RECORD +82 -0
  7. .venv/Lib/site-packages/GitPython-3.1.43.dist-info/WHEEL +5 -0
  8. .venv/Lib/site-packages/GitPython-3.1.43.dist-info/top_level.txt +1 -0
  9. .venv/Lib/site-packages/IPython/__init__.py +163 -0
  10. .venv/Lib/site-packages/IPython/__main__.py +15 -0
  11. .venv/Lib/site-packages/IPython/__pycache__/__init__.cpython-310.pyc +0 -0
  12. .venv/Lib/site-packages/IPython/__pycache__/__main__.cpython-310.pyc +0 -0
  13. .venv/Lib/site-packages/IPython/__pycache__/conftest.cpython-310.pyc +0 -0
  14. .venv/Lib/site-packages/IPython/__pycache__/consoleapp.cpython-310.pyc +0 -0
  15. .venv/Lib/site-packages/IPython/__pycache__/display.cpython-310.pyc +0 -0
  16. .venv/Lib/site-packages/IPython/__pycache__/paths.cpython-310.pyc +0 -0
  17. .venv/Lib/site-packages/IPython/conftest.py +87 -0
  18. .venv/Lib/site-packages/IPython/consoleapp.py +12 -0
  19. .venv/Lib/site-packages/IPython/core/__init__.py +0 -0
  20. .venv/Lib/site-packages/IPython/core/__pycache__/__init__.cpython-310.pyc +0 -0
  21. .venv/Lib/site-packages/IPython/core/__pycache__/alias.cpython-310.pyc +0 -0
  22. .venv/Lib/site-packages/IPython/core/__pycache__/application.cpython-310.pyc +0 -0
  23. .venv/Lib/site-packages/IPython/core/__pycache__/async_helpers.cpython-310.pyc +0 -0
  24. .venv/Lib/site-packages/IPython/core/__pycache__/autocall.cpython-310.pyc +0 -0
  25. .venv/Lib/site-packages/IPython/core/__pycache__/builtin_trap.cpython-310.pyc +0 -0
  26. .venv/Lib/site-packages/IPython/core/__pycache__/compilerop.cpython-310.pyc +0 -0
  27. .venv/Lib/site-packages/IPython/core/__pycache__/completer.cpython-310.pyc +0 -0
  28. .venv/Lib/site-packages/IPython/core/__pycache__/completerlib.cpython-310.pyc +0 -0
  29. .venv/Lib/site-packages/IPython/core/__pycache__/crashhandler.cpython-310.pyc +0 -0
  30. .venv/Lib/site-packages/IPython/core/__pycache__/debugger.cpython-310.pyc +0 -0
  31. .venv/Lib/site-packages/IPython/core/__pycache__/display.cpython-310.pyc +0 -0
  32. .venv/Lib/site-packages/IPython/core/__pycache__/display_functions.cpython-310.pyc +0 -0
  33. .venv/Lib/site-packages/IPython/core/__pycache__/display_trap.cpython-310.pyc +0 -0
  34. .venv/Lib/site-packages/IPython/core/__pycache__/displayhook.cpython-310.pyc +0 -0
  35. .venv/Lib/site-packages/IPython/core/__pycache__/displaypub.cpython-310.pyc +0 -0
  36. .venv/Lib/site-packages/IPython/core/__pycache__/error.cpython-310.pyc +0 -0
  37. .venv/Lib/site-packages/IPython/core/__pycache__/events.cpython-310.pyc +0 -0
  38. .venv/Lib/site-packages/IPython/core/__pycache__/excolors.cpython-310.pyc +0 -0
  39. .venv/Lib/site-packages/IPython/core/__pycache__/extensions.cpython-310.pyc +0 -0
  40. .venv/Lib/site-packages/IPython/core/__pycache__/formatters.cpython-310.pyc +0 -0
  41. .venv/Lib/site-packages/IPython/core/__pycache__/getipython.cpython-310.pyc +0 -0
  42. .venv/Lib/site-packages/IPython/core/__pycache__/guarded_eval.cpython-310.pyc +0 -0
  43. .venv/Lib/site-packages/IPython/core/__pycache__/history.cpython-310.pyc +0 -0
  44. .venv/Lib/site-packages/IPython/core/__pycache__/historyapp.cpython-310.pyc +0 -0
  45. .venv/Lib/site-packages/IPython/core/__pycache__/hooks.cpython-310.pyc +0 -0
  46. .venv/Lib/site-packages/IPython/core/__pycache__/inputsplitter.cpython-310.pyc +0 -0
  47. .venv/Lib/site-packages/IPython/core/__pycache__/inputtransformer.cpython-310.pyc +0 -0
  48. .venv/Lib/site-packages/IPython/core/__pycache__/inputtransformer2.cpython-310.pyc +0 -0
  49. .venv/Lib/site-packages/IPython/core/__pycache__/interactiveshell.cpython-310.pyc +0 -0
  50. .venv/Lib/site-packages/IPython/core/__pycache__/latex_symbols.cpython-310.pyc +0 -0
.gitattributes CHANGED
@@ -46,3 +46,22 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
46
  Dataset/Rossmann[[:space:]]Stores[[:space:]]Data.csv filter=lfs diff=lfs merge=lfs -text
47
  Dataset/Rossmann_Cleaned_data.csv filter=lfs diff=lfs merge=lfs -text
48
  images/r2.png filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  Dataset/Rossmann[[:space:]]Stores[[:space:]]Data.csv filter=lfs diff=lfs merge=lfs -text
47
  Dataset/Rossmann_Cleaned_data.csv filter=lfs diff=lfs merge=lfs -text
48
  images/r2.png filter=lfs diff=lfs merge=lfs -text
49
+ .venv/Lib/site-packages/pandas/_libs/algos.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
50
+ .venv/Lib/site-packages/pandas/_libs/groupby.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
51
+ .venv/Lib/site-packages/pandas/_libs/hashtable.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
52
+ .venv/Lib/site-packages/pandas/_libs/interval.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
53
+ .venv/Lib/site-packages/pandas/_libs/join.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
54
+ .venv/Lib/site-packages/PIL/_imaging.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
55
+ .venv/Lib/site-packages/PIL/_imagingft.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
56
+ .venv/Lib/site-packages/pyarrow/arrow_acero.dll filter=lfs diff=lfs merge=lfs -text
57
+ .venv/Lib/site-packages/pyarrow/arrow_dataset.dll filter=lfs diff=lfs merge=lfs -text
58
+ .venv/Lib/site-packages/pyarrow/arrow_flight.dll filter=lfs diff=lfs merge=lfs -text
59
+ .venv/Lib/site-packages/pyarrow/arrow_python.dll filter=lfs diff=lfs merge=lfs -text
60
+ .venv/Lib/site-packages/pyarrow/arrow_substrait.dll filter=lfs diff=lfs merge=lfs -text
61
+ .venv/Lib/site-packages/pyarrow/arrow.dll filter=lfs diff=lfs merge=lfs -text
62
+ .venv/Lib/site-packages/pyarrow/arrow.lib filter=lfs diff=lfs merge=lfs -text
63
+ .venv/Lib/site-packages/pyarrow/lib.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
64
+ .venv/Lib/site-packages/pyarrow/parquet.dll filter=lfs diff=lfs merge=lfs -text
65
+ .venv/Lib/site-packages/pydeck/nbextension/static/index.js.map filter=lfs diff=lfs merge=lfs -text
66
+ .venv/Lib/site-packages/pythonwin/mfc140u.dll filter=lfs diff=lfs merge=lfs -text
67
+ .venv/Lib/site-packages/pythonwin/win32ui.pyd filter=lfs diff=lfs merge=lfs -text
.venv/Lib/site-packages/GitPython-3.1.43.dist-info/AUTHORS ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GitPython was originally written by Michael Trier.
2
+ GitPython 0.2 was partially (re)written by Sebastian Thiel, based on 0.1.6 and git-dulwich.
3
+
4
+ Contributors are:
5
+
6
+ -Michael Trier <mtrier _at_ gmail.com>
7
+ -Alan Briolat
8
+ -Florian Apolloner <florian _at_ apolloner.eu>
9
+ -David Aguilar <davvid _at_ gmail.com>
10
+ -Jelmer Vernooij <jelmer _at_ samba.org>
11
+ -Steve Frécinaux <code _at_ istique.net>
12
+ -Kai Lautaportti <kai _at_ lautaportti.fi>
13
+ -Paul Sowden <paul _at_ idontsmoke.co.uk>
14
+ -Sebastian Thiel <byronimo _at_ gmail.com>
15
+ -Jonathan Chu <jonathan.chu _at_ me.com>
16
+ -Vincent Driessen <me _at_ nvie.com>
17
+ -Phil Elson <pelson _dot_ pub _at_ gmail.com>
18
+ -Bernard `Guyzmo` Pratz <[email protected]>
19
+ -Timothy B. Hartman <tbhartman _at_ gmail.com>
20
+ -Konstantin Popov <konstantin.popov.89 _at_ yandex.ru>
21
+ -Peter Jones <pjones _at_ redhat.com>
22
+ -Anson Mansfield <anson.mansfield _at_ gmail.com>
23
+ -Ken Odegard <ken.odegard _at_ gmail.com>
24
+ -Alexis Horgix Chotard
25
+ -Piotr Babij <piotr.babij _at_ gmail.com>
26
+ -Mikuláš Poul <mikulaspoul _at_ gmail.com>
27
+ -Charles Bouchard-Légaré <cblegare.atl _at_ ntis.ca>
28
+ -Yaroslav Halchenko <debian _at_ onerussian.com>
29
+ -Tim Swast <swast _at_ google.com>
30
+ -William Luc Ritchie
31
+ -David Host <hostdm _at_ outlook.com>
32
+ -A. Jesse Jiryu Davis <jesse _at_ emptysquare.net>
33
+ -Steven Whitman <ninloot _at_ gmail.com>
34
+ -Stefan Stancu <stefan.stancu _at_ gmail.com>
35
+ -César Izurieta <cesar _at_ caih.org>
36
+ -Arthur Milchior <arthur _at_ milchior.fr>
37
+ -Anil Khatri <anil.soccer.khatri _at_ gmail.com>
38
+ -JJ Graham <thetwoj _at_ gmail.com>
39
+ -Ben Thayer <ben _at_ benthayer.com>
40
+ -Dries Kennes <admin _at_ dries007.net>
41
+ -Pratik Anurag <panurag247365 _at_ gmail.com>
42
+ -Harmon <harmon.public _at_ gmail.com>
43
+ -Liam Beguin <liambeguin _at_ gmail.com>
44
+ -Ram Rachum <ram _at_ rachum.com>
45
+ -Alba Mendez <me _at_ alba.sh>
46
+ -Robert Westman <robert _at_ byteflux.io>
47
+ -Hugo van Kemenade
48
+ -Hiroki Tokunaga <tokusan441 _at_ gmail.com>
49
+ -Julien Mauroy <pro.julien.mauroy _at_ gmail.com>
50
+ -Patrick Gerard
51
+ -Luke Twist <[email protected]>
52
+ -Joseph Hale <me _at_ jhale.dev>
53
+ -Santos Gallegos <stsewd _at_ proton.me>
54
+ -Wenhan Zhu <wzhu.cosmos _at_ gmail.com>
55
+ -Eliah Kagan <eliah.kagan _at_ gmail.com>
56
+ -Ethan Lin <et.repositories _at_ gmail.com>
57
+
58
+ Portions derived from other open source works and are clearly marked.
.venv/Lib/site-packages/GitPython-3.1.43.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
.venv/Lib/site-packages/GitPython-3.1.43.dist-info/LICENSE ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (C) 2008, 2009 Michael Trier and contributors
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions
6
+ are met:
7
+
8
+ * Redistributions of source code must retain the above copyright
9
+ notice, this list of conditions and the following disclaimer.
10
+
11
+ * Redistributions in binary form must reproduce the above copyright
12
+ notice, this list of conditions and the following disclaimer in the
13
+ documentation and/or other materials provided with the distribution.
14
+
15
+ * Neither the name of the GitPython project nor the names of
16
+ its contributors may be used to endorse or promote products derived
17
+ from this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
25
+ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28
+ 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/site-packages/GitPython-3.1.43.dist-info/METADATA ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.1
2
+ Name: GitPython
3
+ Version: 3.1.43
4
+ Summary: GitPython is a Python library used to interact with Git repositories
5
+ Home-page: https://github.com/gitpython-developers/GitPython
6
+ Author: Sebastian Thiel, Michael Trier
7
8
+ License: BSD-3-Clause
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: BSD License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Operating System :: POSIX
15
+ Classifier: Operating System :: Microsoft :: Windows
16
+ Classifier: Operating System :: MacOS :: MacOS X
17
+ Classifier: Typing :: Typed
18
+ Classifier: Programming Language :: Python
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.7
21
+ Classifier: Programming Language :: Python :: 3.8
22
+ Classifier: Programming Language :: Python :: 3.9
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Requires-Python: >=3.7
27
+ Description-Content-Type: text/markdown
28
+ License-File: LICENSE
29
+ License-File: AUTHORS
30
+ Requires-Dist: gitdb <5,>=4.0.1
31
+ Requires-Dist: typing-extensions >=3.7.4.3 ; python_version < "3.8"
32
+ Provides-Extra: doc
33
+ Requires-Dist: sphinx ==4.3.2 ; extra == 'doc'
34
+ Requires-Dist: sphinx-rtd-theme ; extra == 'doc'
35
+ Requires-Dist: sphinxcontrib-applehelp <=1.0.4,>=1.0.2 ; extra == 'doc'
36
+ Requires-Dist: sphinxcontrib-devhelp ==1.0.2 ; extra == 'doc'
37
+ Requires-Dist: sphinxcontrib-htmlhelp <=2.0.1,>=2.0.0 ; extra == 'doc'
38
+ Requires-Dist: sphinxcontrib-qthelp ==1.0.3 ; extra == 'doc'
39
+ Requires-Dist: sphinxcontrib-serializinghtml ==1.1.5 ; extra == 'doc'
40
+ Requires-Dist: sphinx-autodoc-typehints ; extra == 'doc'
41
+ Provides-Extra: test
42
+ Requires-Dist: coverage[toml] ; extra == 'test'
43
+ Requires-Dist: ddt !=1.4.3,>=1.1.1 ; extra == 'test'
44
+ Requires-Dist: mypy ; extra == 'test'
45
+ Requires-Dist: pre-commit ; extra == 'test'
46
+ Requires-Dist: pytest >=7.3.1 ; extra == 'test'
47
+ Requires-Dist: pytest-cov ; extra == 'test'
48
+ Requires-Dist: pytest-instafail ; extra == 'test'
49
+ Requires-Dist: pytest-mock ; extra == 'test'
50
+ Requires-Dist: pytest-sugar ; extra == 'test'
51
+ Requires-Dist: typing-extensions ; (python_version < "3.11") and extra == 'test'
52
+ Requires-Dist: mock ; (python_version < "3.8") and extra == 'test'
53
+
54
+ ![Python package](https://github.com/gitpython-developers/GitPython/workflows/Python%20package/badge.svg)
55
+ [![Documentation Status](https://readthedocs.org/projects/gitpython/badge/?version=stable)](https://readthedocs.org/projects/gitpython/?badge=stable)
56
+ [![Packaging status](https://repology.org/badge/tiny-repos/python:gitpython.svg)](https://repology.org/metapackage/python:gitpython/versions)
57
+
58
+ ## [Gitoxide](https://github.com/Byron/gitoxide): A peek into the future…
59
+
60
+ I started working on GitPython in 2009, back in the days when Python was 'my thing' and I had great plans with it.
61
+ Of course, back in the days, I didn't really know what I was doing and this shows in many places. Somewhat similar to
62
+ Python this happens to be 'good enough', but at the same time is deeply flawed and broken beyond repair.
63
+
64
+ By now, GitPython is widely used and I am sure there is a good reason for that, it's something to be proud of and happy about.
65
+ The community is maintaining the software and is keeping it relevant for which I am absolutely grateful. For the time to come I am happy to continue maintaining GitPython, remaining hopeful that one day it won't be needed anymore.
66
+
67
+ More than 15 years after my first meeting with 'git' I am still in excited about it, and am happy to finally have the tools and
68
+ probably the skills to scratch that itch of mine: implement `git` in a way that makes tool creation a piece of cake for most.
69
+
70
+ If you like the idea and want to learn more, please head over to [gitoxide](https://github.com/Byron/gitoxide), an
71
+ implementation of 'git' in [Rust](https://www.rust-lang.org).
72
+
73
+ *(Please note that `gitoxide` is not currently available for use in Python, and that Rust is required.)*
74
+
75
+ ## GitPython
76
+
77
+ GitPython is a python library used to interact with git repositories, high-level like git-porcelain,
78
+ or low-level like git-plumbing.
79
+
80
+ It provides abstractions of git objects for easy access of repository data often backed by calling the `git`
81
+ command-line program.
82
+
83
+ ### DEVELOPMENT STATUS
84
+
85
+ This project is in **maintenance mode**, which means that
86
+
87
+ - …there will be no feature development, unless these are contributed
88
+ - …there will be no bug fixes, unless they are relevant to the safety of users, or contributed
89
+ - …issues will be responded to with waiting times of up to a month
90
+
91
+ The project is open to contributions of all kinds, as well as new maintainers.
92
+
93
+ ### REQUIREMENTS
94
+
95
+ GitPython needs the `git` executable to be installed on the system and available in your
96
+ `PATH` for most operations. If it is not in your `PATH`, you can help GitPython find it
97
+ by setting the `GIT_PYTHON_GIT_EXECUTABLE=<path/to/git>` environment variable.
98
+
99
+ - Git (1.7.x or newer)
100
+ - Python >= 3.7
101
+
102
+ The list of dependencies are listed in `./requirements.txt` and `./test-requirements.txt`.
103
+ The installer takes care of installing them for you.
104
+
105
+ ### INSTALL
106
+
107
+ GitPython and its required package dependencies can be installed in any of the following ways, all of which should typically be done in a [virtual environment](https://docs.python.org/3/tutorial/venv.html).
108
+
109
+ #### From PyPI
110
+
111
+ To obtain and install a copy [from PyPI](https://pypi.org/project/GitPython/), run:
112
+
113
+ ```sh
114
+ pip install GitPython
115
+ ```
116
+
117
+ (A distribution package can also be downloaded for manual installation at [the PyPI page](https://pypi.org/project/GitPython/).)
118
+
119
+ #### From downloaded source code
120
+
121
+ If you have downloaded the source code, run this from inside the unpacked `GitPython` directory:
122
+
123
+ ```sh
124
+ pip install .
125
+ ```
126
+
127
+ #### By cloning the source code repository
128
+
129
+ To clone the [the GitHub repository](https://github.com/gitpython-developers/GitPython) from source to work on the code, you can do it like so:
130
+
131
+ ```sh
132
+ git clone https://github.com/gitpython-developers/GitPython
133
+ cd GitPython
134
+ ./init-tests-after-clone.sh
135
+ ```
136
+
137
+ On Windows, `./init-tests-after-clone.sh` can be run in a Git Bash shell.
138
+
139
+ If you are cloning [your own fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/about-forks), then replace the above `git clone` command with one that gives the URL of your fork. Or use this [`gh`](https://cli.github.com/) command (assuming you have `gh` and your fork is called `GitPython`):
140
+
141
+ ```sh
142
+ gh repo clone GitPython
143
+ ```
144
+
145
+ Having cloned the repo, create and activate your [virtual environment](https://docs.python.org/3/tutorial/venv.html).
146
+
147
+ Then make an [editable install](https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs):
148
+
149
+ ```sh
150
+ pip install -e ".[test]"
151
+ ```
152
+
153
+ In the less common case that you do not want to install test dependencies, `pip install -e .` can be used instead.
154
+
155
+ #### With editable *dependencies* (not preferred, and rarely needed)
156
+
157
+ In rare cases, you may want to work on GitPython and one or both of its [gitdb](https://github.com/gitpython-developers/gitdb) and [smmap](https://github.com/gitpython-developers/smmap) dependencies at the same time, with changes in your local working copy of gitdb or smmap immediatley reflected in the behavior of your local working copy of GitPython. This can be done by making editable installations of those dependencies in the same virtual environment where you install GitPython.
158
+
159
+ If you want to do that *and* you want the versions in GitPython's git submodules to be used, then pass `-e git/ext/gitdb` and/or `-e git/ext/gitdb/gitdb/ext/smmap` to `pip install`. This can be done in any order, and in separate `pip install` commands or the same one, so long as `-e` appears before *each* path. For example, you can install GitPython, gitdb, and smmap editably in the currently active virtual environment this way:
160
+
161
+ ```sh
162
+ pip install -e ".[test]" -e git/ext/gitdb -e git/ext/gitdb/gitdb/ext/smmap
163
+ ```
164
+
165
+ The submodules must have been cloned for that to work, but that will already be the case if you have run `./init-tests-after-clone.sh`. You can use `pip list` to check which packages are installed editably and which are installed normally.
166
+
167
+ To reiterate, this approach should only rarely be used. For most development it is preferable to allow the gitdb and smmap dependencices to be retrieved automatically from PyPI in their latest stable packaged versions.
168
+
169
+ ### Limitations
170
+
171
+ #### Leakage of System Resources
172
+
173
+ GitPython is not suited for long-running processes (like daemons) as it tends to
174
+ leak system resources. It was written in a time where destructors (as implemented
175
+ in the `__del__` method) still ran deterministically.
176
+
177
+ In case you still want to use it in such a context, you will want to search the
178
+ codebase for `__del__` implementations and call these yourself when you see fit.
179
+
180
+ Another way assure proper cleanup of resources is to factor out GitPython into a
181
+ separate process which can be dropped periodically.
182
+
183
+ #### Windows support
184
+
185
+ See [Issue #525](https://github.com/gitpython-developers/GitPython/issues/525).
186
+
187
+ ### RUNNING TESTS
188
+
189
+ _Important_: Right after cloning this repository, please be sure to have executed
190
+ the `./init-tests-after-clone.sh` script in the repository root. Otherwise
191
+ you will encounter test failures.
192
+
193
+ #### Install test dependencies
194
+
195
+ Ensure testing libraries are installed. This is taken care of already if you installed with:
196
+
197
+ ```sh
198
+ pip install -e ".[test]"
199
+ ```
200
+
201
+ If you had installed with a command like `pip install -e .` instead, you can still run
202
+ the above command to add the testing dependencies.
203
+
204
+ #### Test commands
205
+
206
+ To test, run:
207
+
208
+ ```sh
209
+ pytest
210
+ ```
211
+
212
+ To lint, and apply some linting fixes as well as automatic code formatting, run:
213
+
214
+ ```sh
215
+ pre-commit run --all-files
216
+ ```
217
+
218
+ This includes the linting and autoformatting done by Ruff, as well as some other checks.
219
+
220
+ To typecheck, run:
221
+
222
+ ```sh
223
+ mypy
224
+ ```
225
+
226
+ #### CI (and tox)
227
+
228
+ Style and formatting checks, and running tests on all the different supported Python versions, will be performed:
229
+
230
+ - Upon submitting a pull request.
231
+ - On each push, *if* you have a fork with GitHub Actions enabled.
232
+ - Locally, if you run [`tox`](https://tox.wiki/) (this skips any Python versions you don't have installed).
233
+
234
+ #### Configuration files
235
+
236
+ Specific tools are all configured in the `./pyproject.toml` file:
237
+
238
+ - `pytest` (test runner)
239
+ - `coverage.py` (code coverage)
240
+ - `ruff` (linter and formatter)
241
+ - `mypy` (type checker)
242
+
243
+ Orchestration tools:
244
+
245
+ - Configuration for `pre-commit` is in the `./.pre-commit-config.yaml` file.
246
+ - Configuration for `tox` is in `./tox.ini`.
247
+ - Configuration for GitHub Actions (CI) is in files inside `./.github/workflows/`.
248
+
249
+ ### Contributions
250
+
251
+ Please have a look at the [contributions file][contributing].
252
+
253
+ ### INFRASTRUCTURE
254
+
255
+ - [User Documentation](http://gitpython.readthedocs.org)
256
+ - [Questions and Answers](http://stackexchange.com/filters/167317/gitpython)
257
+ - Please post on Stack Overflow and use the `gitpython` tag
258
+ - [Issue Tracker](https://github.com/gitpython-developers/GitPython/issues)
259
+ - Post reproducible bugs and feature requests as a new issue.
260
+ Please be sure to provide the following information if posting bugs:
261
+ - GitPython version (e.g. `import git; git.__version__`)
262
+ - Python version (e.g. `python --version`)
263
+ - The encountered stack-trace, if applicable
264
+ - Enough information to allow reproducing the issue
265
+
266
+ ### How to make a new release
267
+
268
+ 1. Update/verify the **version** in the `VERSION` file.
269
+ 2. Update/verify that the `doc/source/changes.rst` changelog file was updated. It should include a link to the forthcoming release page: `https://github.com/gitpython-developers/GitPython/releases/tag/<version>`
270
+ 3. Commit everything.
271
+ 4. Run `git tag -s <version>` to tag the version in Git.
272
+ 5. _Optionally_ create and activate a [virtual environment](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment). (Then the next step can install `build` and `twine`.)
273
+ 6. Run `make release`.
274
+ 7. Go to [GitHub Releases](https://github.com/gitpython-developers/GitPython/releases) and publish a new one with the recently pushed tag. Generate the changelog.
275
+
276
+ ### Projects using GitPython
277
+
278
+ - [PyDriller](https://github.com/ishepard/pydriller)
279
+ - [Kivy Designer](https://github.com/kivy/kivy-designer)
280
+ - [Prowl](https://github.com/nettitude/Prowl)
281
+ - [Python Taint](https://github.com/python-security/pyt)
282
+ - [Buster](https://github.com/axitkhurana/buster)
283
+ - [git-ftp](https://github.com/ezyang/git-ftp)
284
+ - [Git-Pandas](https://github.com/wdm0006/git-pandas)
285
+ - [PyGitUp](https://github.com/msiemens/PyGitUp)
286
+ - [PyJFuzz](https://github.com/mseclab/PyJFuzz)
287
+ - [Loki](https://github.com/Neo23x0/Loki)
288
+ - [Omniwallet](https://github.com/OmniLayer/omniwallet)
289
+ - [GitViper](https://github.com/BeayemX/GitViper)
290
+ - [Git Gud](https://github.com/bthayer2365/git-gud)
291
+
292
+ ### LICENSE
293
+
294
+ [3-Clause BSD License](https://opensource.org/license/bsd-3-clause/), also known as the New BSD License. See the [LICENSE file][license].
295
+
296
+ [contributing]: https://github.com/gitpython-developers/GitPython/blob/main/CONTRIBUTING.md
297
+ [license]: https://github.com/gitpython-developers/GitPython/blob/main/LICENSE
.venv/Lib/site-packages/GitPython-3.1.43.dist-info/RECORD ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GitPython-3.1.43.dist-info/AUTHORS,sha256=h1TlPKfp05GA1eKQ15Yl4biR0C0FgivuGSeRA6Q1dz0,2286
2
+ GitPython-3.1.43.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
3
+ GitPython-3.1.43.dist-info/LICENSE,sha256=hvyUwyGpr7wRUUcTURuv3tIl8lEA3MD3NQ6CvCMbi-s,1503
4
+ GitPython-3.1.43.dist-info/METADATA,sha256=sAh3r1BMVw5_olGgDmpMS69zBpVr7UEOeRivNHKznfU,13376
5
+ GitPython-3.1.43.dist-info/RECORD,,
6
+ GitPython-3.1.43.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
7
+ GitPython-3.1.43.dist-info/top_level.txt,sha256=0hzDuIp8obv624V3GmbqsagBWkk8ohtGU-Bc1PmTT0o,4
8
+ git/__init__.py,sha256=w6fnS0QmwTfEFUSL6rfnpP0lUId2goSguZFOvVX3N3U,8899
9
+ git/__pycache__/__init__.cpython-310.pyc,,
10
+ git/__pycache__/cmd.cpython-310.pyc,,
11
+ git/__pycache__/compat.cpython-310.pyc,,
12
+ git/__pycache__/config.cpython-310.pyc,,
13
+ git/__pycache__/db.cpython-310.pyc,,
14
+ git/__pycache__/diff.cpython-310.pyc,,
15
+ git/__pycache__/exc.cpython-310.pyc,,
16
+ git/__pycache__/remote.cpython-310.pyc,,
17
+ git/__pycache__/types.cpython-310.pyc,,
18
+ git/__pycache__/util.cpython-310.pyc,,
19
+ git/cmd.py,sha256=qd-gIHSk4mfsYjd9YA08cPyO8TMxaibTXAbFnHK71uc,67659
20
+ git/compat.py,sha256=y1E6y6O2q5r8clSlr8ZNmuIWG9nmHuehQEsVsmBffs8,4526
21
+ git/config.py,sha256=Ald8Xc-G9Shcgx3QCISyXTkL4a6nbc3qll-xUw4YdyY,34924
22
+ git/db.py,sha256=vIW9uWSbqu99zbuU2ZDmOhVOv1UPTmxrnqiCtRHCfjE,2368
23
+ git/diff.py,sha256=IE5aeHL7aP9yxBluYj06IX8nZjoJ_TOM3gG31-Evf_8,27058
24
+ git/exc.py,sha256=Gc7g1pHpn8OmTse30NHmJVsBJ2CYH8LxaR8y8UA3lIM,7119
25
+ git/index/__init__.py,sha256=i-Nqb8Lufp9aFbmxpQBORmmQnjEVVM1Pn58fsQkyGgQ,406
26
+ git/index/__pycache__/__init__.cpython-310.pyc,,
27
+ git/index/__pycache__/base.cpython-310.pyc,,
28
+ git/index/__pycache__/fun.cpython-310.pyc,,
29
+ git/index/__pycache__/typ.cpython-310.pyc,,
30
+ git/index/__pycache__/util.cpython-310.pyc,,
31
+ git/index/base.py,sha256=A4q4cN_Ifxi8CsAR-7h4KsQ2d3JazBNFZ1ltbAKttgs,60734
32
+ git/index/fun.py,sha256=37cA3DBC9vpAnSVu5TGA072SnoF5XZOkOukExwlejHs,16736
33
+ git/index/typ.py,sha256=uuKNwitUw83FhVaLSwo4pY7PHDQudtZTLJrLGym4jcI,6570
34
+ git/index/util.py,sha256=fULi7GPG-MvprKrRCD5c15GNdzku_1E38We0d97WB3A,3659
35
+ git/objects/__init__.py,sha256=O6ZL_olX7e5-8iIbKviRPkVSJxN37WA-EC0q9d48U5Y,637
36
+ git/objects/__pycache__/__init__.cpython-310.pyc,,
37
+ git/objects/__pycache__/base.cpython-310.pyc,,
38
+ git/objects/__pycache__/blob.cpython-310.pyc,,
39
+ git/objects/__pycache__/commit.cpython-310.pyc,,
40
+ git/objects/__pycache__/fun.cpython-310.pyc,,
41
+ git/objects/__pycache__/tag.cpython-310.pyc,,
42
+ git/objects/__pycache__/tree.cpython-310.pyc,,
43
+ git/objects/__pycache__/util.cpython-310.pyc,,
44
+ git/objects/base.py,sha256=0dqNkSRVH0mk0-7ZKIkGBK7iNYrzLTVxwQFUd6CagsE,10277
45
+ git/objects/blob.py,sha256=zwwq0KfOMYeP5J2tW5CQatoLyeqFRlfkxP1Vwx1h07s,1215
46
+ git/objects/commit.py,sha256=vLZNl1I9zp17Rpge7J66CvsryirEs90jyPTQzoP0JJs,30208
47
+ git/objects/fun.py,sha256=B4jCqhAjm6Hl79GK58FPzW1H9K6Wc7Tx0rssyWmAcEE,8935
48
+ git/objects/submodule/__init__.py,sha256=6xySp767LVz3UylWgUalntS_nGXRuVzXxDuFAv_Wc2c,303
49
+ git/objects/submodule/__pycache__/__init__.cpython-310.pyc,,
50
+ git/objects/submodule/__pycache__/base.cpython-310.pyc,,
51
+ git/objects/submodule/__pycache__/root.cpython-310.pyc,,
52
+ git/objects/submodule/__pycache__/util.cpython-310.pyc,,
53
+ git/objects/submodule/base.py,sha256=MQ-2xV8JznGwy2hLQv1aeQNgAkhBhgc5tdtClFL3DmE,63901
54
+ git/objects/submodule/root.py,sha256=5eTtYNHasqdPq6q0oDCPr7IaO6uAHL3b4DxMoiO2LhE,20246
55
+ git/objects/submodule/util.py,sha256=sQqAYaiSJdFkZa9NlAuK_wTsMNiS-kkQnQjvIoJtc_o,3509
56
+ git/objects/tag.py,sha256=gAx8i-DEwy_Z3R2zLkvetYRV8A56BCcTr3iLuTUTfEM,4467
57
+ git/objects/tree.py,sha256=jJH888SHiP4dGzE-ra1yenQOyya_0C_MkHr06c1gHpM,13849
58
+ git/objects/util.py,sha256=Ml2eqZPKO4y9Hc2vWbXJgpsK3nkN3KGMzbn8AlzLyYQ,23834
59
+ git/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
+ git/refs/__init__.py,sha256=DWlJNnsx-4jM_E-VycbP-FZUdn6iWhjnH_uZ_pZXBro,509
61
+ git/refs/__pycache__/__init__.cpython-310.pyc,,
62
+ git/refs/__pycache__/head.cpython-310.pyc,,
63
+ git/refs/__pycache__/log.cpython-310.pyc,,
64
+ git/refs/__pycache__/reference.cpython-310.pyc,,
65
+ git/refs/__pycache__/remote.cpython-310.pyc,,
66
+ git/refs/__pycache__/symbolic.cpython-310.pyc,,
67
+ git/refs/__pycache__/tag.cpython-310.pyc,,
68
+ git/refs/head.py,sha256=GAZpD5EfqSciDXPtgjHY8ZbBixKExJRhojUB-HrrJPg,10491
69
+ git/refs/log.py,sha256=kXiuAgTo1DIuM_BfbDUk9gQ0YO-mutIMVdHv1_ES90o,12493
70
+ git/refs/reference.py,sha256=l6mhF4YLSEwtjz6b9PpOQH-fkng7EYWMaJhkjn-2jXA,5630
71
+ git/refs/remote.py,sha256=WwqV9T7BbYf3F_WZNUQivu9xktIIKGklCjDpwQrhD-A,2806
72
+ git/refs/symbolic.py,sha256=c8zOwaqzcg-J-rGrpuWdvh8zwMvSUqAHghd4vJoYG_s,34552
73
+ git/refs/tag.py,sha256=kgzV2vhpL4FD2TqHb0BJuMRAHgAvJF-TcoyWlaB-djQ,5010
74
+ git/remote.py,sha256=IHQ3BvXgoIN1EvHlyH3vrSaQoDkLOE6nooSC0w183sU,46561
75
+ git/repo/__init__.py,sha256=CILSVH36fX_WxVFSjD9o1WF5LgsNedPiJvSngKZqfVU,210
76
+ git/repo/__pycache__/__init__.cpython-310.pyc,,
77
+ git/repo/__pycache__/base.cpython-310.pyc,,
78
+ git/repo/__pycache__/fun.cpython-310.pyc,,
79
+ git/repo/base.py,sha256=mitfJ8u99CsMpDd7_VRyx-SF8omu2tpf3lqzSaQkKoQ,59353
80
+ git/repo/fun.py,sha256=tEsClpmbOrKMSNIdncOB_6JdikrL1-AfkOFd7xMpD8k,13582
81
+ git/types.py,sha256=xCwpp2Y01lhS0MapHhj04m0P_x34kwSD1Gsou_ZPWj8,10251
82
+ git/util.py,sha256=1E883mnPAFLyFk7ivwnEremsp-uJOTc3ks_QypyLung,43651
.venv/Lib/site-packages/GitPython-3.1.43.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.43.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
.venv/Lib/site-packages/GitPython-3.1.43.dist-info/top_level.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ git
.venv/Lib/site-packages/IPython/__init__.py ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 <[email protected]>
10
+ # Copyright (c) 2001, Janko Hauser <[email protected]>
11
+ # Copyright (c) 2001, Nathaniel Gray <[email protected]>
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
+
24
+ #-----------------------------------------------------------------------------
25
+ # Setup everything
26
+ #-----------------------------------------------------------------------------
27
+
28
+ # Don't forget to also update setup.py when this changes!
29
+ if sys.version_info < (3, 10):
30
+ raise ImportError(
31
+ """
32
+ IPython 8.19+ supports Python 3.10 and above, following SPEC0.
33
+ IPython 8.13+ supports Python 3.9 and above, following NEP 29.
34
+ IPython 8.0-8.12 supports Python 3.8 and above, following NEP 29.
35
+ When using Python 2.7, please install IPython 5.x LTS Long Term Support version.
36
+ Python 3.3 and 3.4 were supported up to IPython 6.x.
37
+ Python 3.5 was supported with IPython 7.0 to 7.9.
38
+ Python 3.6 was supported with IPython up to 7.16.
39
+ Python 3.7 was still supported with the 7.x branch.
40
+
41
+ See IPython `README.rst` file for more information:
42
+
43
+ https://github.com/ipython/ipython/blob/main/README.rst
44
+
45
+ """
46
+ )
47
+
48
+ #-----------------------------------------------------------------------------
49
+ # Setup the top level names
50
+ #-----------------------------------------------------------------------------
51
+
52
+ from .core.getipython import get_ipython
53
+ from .core import release
54
+ from .core.application import Application
55
+ from .terminal.embed import embed
56
+
57
+ from .core.interactiveshell import InteractiveShell
58
+ from .utils.sysinfo import sys_info
59
+ from .utils.frame import extract_module_locals
60
+
61
+ __all__ = ["start_ipython", "embed", "start_kernel", "embed_kernel"]
62
+
63
+ # Release data
64
+ __author__ = '%s <%s>' % (release.author, release.author_email)
65
+ __license__ = release.license
66
+ __version__ = release.version
67
+ version_info = release.version_info
68
+ # list of CVEs that should have been patched in this release.
69
+ # this is informational and should not be relied upon.
70
+ __patched_cves__ = {"CVE-2022-21699", "CVE-2023-24816"}
71
+
72
+
73
+ def embed_kernel(module=None, local_ns=None, **kwargs):
74
+ """Embed and start an IPython kernel in a given scope.
75
+
76
+ If you don't want the kernel to initialize the namespace
77
+ from the scope of the surrounding function,
78
+ and/or you want to load full IPython configuration,
79
+ you probably want `IPython.start_kernel()` instead.
80
+
81
+ Parameters
82
+ ----------
83
+ module : types.ModuleType, optional
84
+ The module to load into IPython globals (default: caller)
85
+ local_ns : dict, optional
86
+ The namespace to load into IPython user namespace (default: caller)
87
+ **kwargs : various, optional
88
+ Further keyword args are relayed to the IPKernelApp constructor,
89
+ such as `config`, a traitlets :class:`Config` object (see :ref:`configure_start_ipython`),
90
+ allowing configuration of the kernel (see :ref:`kernel_options`). Will only have an effect
91
+ on the first embed_kernel call for a given process.
92
+ """
93
+
94
+ (caller_module, caller_locals) = extract_module_locals(1)
95
+ if module is None:
96
+ module = caller_module
97
+ if local_ns is None:
98
+ local_ns = caller_locals
99
+
100
+ # Only import .zmq when we really need it
101
+ from ipykernel.embed import embed_kernel as real_embed_kernel
102
+ real_embed_kernel(module=module, local_ns=local_ns, **kwargs)
103
+
104
+ def start_ipython(argv=None, **kwargs):
105
+ """Launch a normal IPython instance (as opposed to embedded)
106
+
107
+ `IPython.embed()` puts a shell in a particular calling scope,
108
+ such as a function or method for debugging purposes,
109
+ which is often not desirable.
110
+
111
+ `start_ipython()` does full, regular IPython initialization,
112
+ including loading startup files, configuration, etc.
113
+ much of which is skipped by `embed()`.
114
+
115
+ This is a public API method, and will survive implementation changes.
116
+
117
+ Parameters
118
+ ----------
119
+ argv : list or None, optional
120
+ If unspecified or None, IPython will parse command-line options from sys.argv.
121
+ To prevent any command-line parsing, pass an empty list: `argv=[]`.
122
+ user_ns : dict, optional
123
+ specify this dictionary to initialize the IPython user namespace with particular values.
124
+ **kwargs : various, optional
125
+ Any other kwargs will be passed to the Application constructor,
126
+ such as `config`, a traitlets :class:`Config` object (see :ref:`configure_start_ipython`),
127
+ allowing configuration of the instance (see :ref:`terminal_options`).
128
+ """
129
+ from IPython.terminal.ipapp import launch_new_instance
130
+ return launch_new_instance(argv=argv, **kwargs)
131
+
132
+ def start_kernel(argv=None, **kwargs):
133
+ """Launch a normal IPython kernel instance (as opposed to embedded)
134
+
135
+ `IPython.embed_kernel()` puts a shell in a particular calling scope,
136
+ such as a function or method for debugging purposes,
137
+ which is often not desirable.
138
+
139
+ `start_kernel()` does full, regular IPython initialization,
140
+ including loading startup files, configuration, etc.
141
+ much of which is skipped by `embed_kernel()`.
142
+
143
+ Parameters
144
+ ----------
145
+ argv : list or None, optional
146
+ If unspecified or None, IPython will parse command-line options from sys.argv.
147
+ To prevent any command-line parsing, pass an empty list: `argv=[]`.
148
+ user_ns : dict, optional
149
+ specify this dictionary to initialize the IPython user namespace with particular values.
150
+ **kwargs : various, optional
151
+ Any other kwargs will be passed to the Application constructor,
152
+ such as `config`, a traitlets :class:`Config` object (see :ref:`configure_start_ipython`),
153
+ allowing configuration of the kernel (see :ref:`kernel_options`).
154
+ """
155
+ import warnings
156
+
157
+ warnings.warn(
158
+ "start_kernel is deprecated since IPython 8.0, use from `ipykernel.kernelapp.launch_new_instance`",
159
+ DeprecationWarning,
160
+ stacklevel=2,
161
+ )
162
+ from ipykernel.kernelapp import launch_new_instance
163
+ return launch_new_instance(argv=argv, **kwargs)
.venv/Lib/site-packages/IPython/__main__.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PYTHON_ARGCOMPLETE_OK
2
+ # encoding: utf-8
3
+ """Terminal-based IPython entry point.
4
+ """
5
+ # -----------------------------------------------------------------------------
6
+ # Copyright (c) 2012, IPython Development Team.
7
+ #
8
+ # Distributed under the terms of the Modified BSD License.
9
+ #
10
+ # The full license is in the file COPYING.txt, distributed with this software.
11
+ # -----------------------------------------------------------------------------
12
+
13
+ from IPython import start_ipython
14
+
15
+ start_ipython()
.venv/Lib/site-packages/IPython/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (5.52 kB). View file
 
.venv/Lib/site-packages/IPython/__pycache__/__main__.cpython-310.pyc ADDED
Binary file (299 Bytes). View file
 
.venv/Lib/site-packages/IPython/__pycache__/conftest.cpython-310.pyc ADDED
Binary file (2.56 kB). View file
 
.venv/Lib/site-packages/IPython/__pycache__/consoleapp.cpython-310.pyc ADDED
Binary file (537 Bytes). View file
 
.venv/Lib/site-packages/IPython/__pycache__/display.cpython-310.pyc ADDED
Binary file (922 Bytes). View file
 
.venv/Lib/site-packages/IPython/__pycache__/paths.cpython-310.pyc ADDED
Binary file (3.67 kB). View file
 
.venv/Lib/site-packages/IPython/conftest.py ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import builtins
2
+ import inspect
3
+ import os
4
+ import pathlib
5
+ import shutil
6
+ import sys
7
+ import types
8
+
9
+ import pytest
10
+
11
+ # Must register before it gets imported
12
+ pytest.register_assert_rewrite("IPython.testing.tools")
13
+
14
+ from .testing import tools
15
+
16
+
17
+ def pytest_collection_modifyitems(items):
18
+ """This function is automatically run by pytest passing all collected test
19
+ functions.
20
+
21
+ We use it to add asyncio marker to all async tests and assert we don't use
22
+ test functions that are async generators which wouldn't make sense.
23
+ """
24
+ for item in items:
25
+ if inspect.iscoroutinefunction(item.obj):
26
+ item.add_marker("asyncio")
27
+ assert not inspect.isasyncgenfunction(item.obj)
28
+
29
+
30
+ def get_ipython():
31
+ from .terminal.interactiveshell import TerminalInteractiveShell
32
+ if TerminalInteractiveShell._instance:
33
+ return TerminalInteractiveShell.instance()
34
+
35
+ config = tools.default_config()
36
+ config.TerminalInteractiveShell.simple_prompt = True
37
+
38
+ # Create and initialize our test-friendly IPython instance.
39
+ shell = TerminalInteractiveShell.instance(config=config)
40
+ return shell
41
+
42
+
43
+ @pytest.fixture(scope='session', autouse=True)
44
+ def work_path():
45
+ path = pathlib.Path("./tmp-ipython-pytest-profiledir")
46
+ os.environ["IPYTHONDIR"] = str(path.absolute())
47
+ if path.exists():
48
+ raise ValueError('IPython dir temporary path already exists ! Did previous test run exit successfully ?')
49
+ path.mkdir()
50
+ yield
51
+ shutil.rmtree(str(path.resolve()))
52
+
53
+
54
+ def nopage(strng, start=0, screen_lines=0, pager_cmd=None):
55
+ if isinstance(strng, dict):
56
+ strng = strng.get("text/plain", "")
57
+ print(strng)
58
+
59
+
60
+ def xsys(self, cmd):
61
+ """Replace the default system call with a capturing one for doctest.
62
+ """
63
+ # We use getoutput, but we need to strip it because pexpect captures
64
+ # the trailing newline differently from commands.getoutput
65
+ print(self.getoutput(cmd, split=False, depth=1).rstrip(), end="", file=sys.stdout)
66
+ sys.stdout.flush()
67
+
68
+
69
+ # for things to work correctly we would need this as a session fixture;
70
+ # unfortunately this will fail on some test that get executed as _collection_
71
+ # time (before the fixture run), in particular parametrized test that contain
72
+ # yields. so for now execute at import time.
73
+ #@pytest.fixture(autouse=True, scope='session')
74
+ def inject():
75
+
76
+ builtins.get_ipython = get_ipython
77
+ builtins._ip = get_ipython()
78
+ builtins.ip = get_ipython()
79
+ builtins.ip.system = types.MethodType(xsys, ip)
80
+ builtins.ip.builtin_trap.activate()
81
+ from .core import page
82
+
83
+ page.pager_page = nopage
84
+ # yield
85
+
86
+
87
+ inject()
.venv/Lib/site-packages/IPython/consoleapp.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Shim to maintain backwards compatibility with old IPython.consoleapp imports.
3
+ """
4
+ # Copyright (c) IPython Development Team.
5
+ # Distributed under the terms of the Modified BSD License.
6
+
7
+ from warnings import warn
8
+
9
+ warn("The `IPython.consoleapp` package has been deprecated since IPython 4.0."
10
+ "You should import from jupyter_client.consoleapp instead.", stacklevel=2)
11
+
12
+ from jupyter_client.consoleapp import *
.venv/Lib/site-packages/IPython/core/__init__.py ADDED
File without changes
.venv/Lib/site-packages/IPython/core/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (198 Bytes). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/alias.cpython-310.pyc ADDED
Binary file (7.19 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/application.cpython-310.pyc ADDED
Binary file (14.2 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/async_helpers.cpython-310.pyc ADDED
Binary file (4.98 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/autocall.cpython-310.pyc ADDED
Binary file (2.12 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/builtin_trap.cpython-310.pyc ADDED
Binary file (2.9 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/compilerop.cpython-310.pyc ADDED
Binary file (5.84 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/completer.cpython-310.pyc ADDED
Binary file (91.1 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/completerlib.cpython-310.pyc ADDED
Binary file (9.4 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/crashhandler.cpython-310.pyc ADDED
Binary file (6.71 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/debugger.cpython-310.pyc ADDED
Binary file (28.6 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/display.cpython-310.pyc ADDED
Binary file (39 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/display_functions.cpython-310.pyc ADDED
Binary file (11.9 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/display_trap.cpython-310.pyc ADDED
Binary file (1.77 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/displayhook.cpython-310.pyc ADDED
Binary file (9.93 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/displaypub.cpython-310.pyc ADDED
Binary file (5.2 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/error.cpython-310.pyc ADDED
Binary file (1.66 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/events.cpython-310.pyc ADDED
Binary file (5.55 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/excolors.cpython-310.pyc ADDED
Binary file (2.69 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/extensions.cpython-310.pyc ADDED
Binary file (4.81 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/formatters.cpython-310.pyc ADDED
Binary file (30.3 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/getipython.cpython-310.pyc ADDED
Binary file (615 Bytes). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/guarded_eval.cpython-310.pyc ADDED
Binary file (22.2 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/history.cpython-310.pyc ADDED
Binary file (29.7 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/historyapp.cpython-310.pyc ADDED
Binary file (5.08 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/hooks.cpython-310.pyc ADDED
Binary file (5.3 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/inputsplitter.cpython-310.pyc ADDED
Binary file (20.3 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/inputtransformer.cpython-310.pyc ADDED
Binary file (15.8 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/inputtransformer2.cpython-310.pyc ADDED
Binary file (24.7 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/interactiveshell.cpython-310.pyc ADDED
Binary file (106 kB). View file
 
.venv/Lib/site-packages/IPython/core/__pycache__/latex_symbols.cpython-310.pyc ADDED
Binary file (63.1 kB). View file