-
Notifications
You must be signed in to change notification settings - Fork 51
Added requirements.txt #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9514b14
Added requirements.txt
Akshata-Gunapache cf4cbcb
Deleted _pycache_folder
Akshata-Gunapache 89b679d
Added virtualenv folder
Akshata-Gunapache aed5acb
Modified requirements.txt
Akshata-Gunapache 7a466e3
Merge branch 'main' into requirement
anandxkumar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,128 @@ | ||
| import sys | ||
| import os | ||
| import re | ||
| import importlib | ||
| import warnings | ||
|
|
||
|
|
||
| is_pypy = '__pypy__' in sys.builtin_module_names | ||
|
|
||
|
|
||
| warnings.filterwarnings('ignore', | ||
| r'.+ distutils\b.+ deprecated', | ||
| DeprecationWarning) | ||
|
|
||
|
|
||
| def warn_distutils_present(): | ||
| if 'distutils' not in sys.modules: | ||
| return | ||
| if is_pypy and sys.version_info < (3, 7): | ||
| # PyPy for 3.6 unconditionally imports distutils, so bypass the warning | ||
| # https://foss.heptapod.net/pypy/pypy/-/blob/be829135bc0d758997b3566062999ee8b23872b4/lib-python/3/site.py#L250 | ||
| return | ||
| warnings.warn( | ||
| "Distutils was imported before Setuptools, but importing Setuptools " | ||
| "also replaces the `distutils` module in `sys.modules`. This may lead " | ||
| "to undesirable behaviors or errors. To avoid these issues, avoid " | ||
| "using distutils directly, ensure that setuptools is installed in the " | ||
| "traditional way (e.g. not an editable install), and/or make sure " | ||
| "that setuptools is always imported before distutils.") | ||
|
|
||
|
|
||
| def clear_distutils(): | ||
| if 'distutils' not in sys.modules: | ||
| return | ||
| warnings.warn("Setuptools is replacing distutils.") | ||
| mods = [name for name in sys.modules if re.match(r'distutils\b', name)] | ||
| for name in mods: | ||
| del sys.modules[name] | ||
|
|
||
|
|
||
| def enabled(): | ||
| """ | ||
| Allow selection of distutils by environment variable. | ||
| """ | ||
| which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'stdlib') | ||
| return which == 'local' | ||
|
|
||
|
|
||
| def ensure_local_distutils(): | ||
| clear_distutils() | ||
| distutils = importlib.import_module('setuptools._distutils') | ||
| distutils.__name__ = 'distutils' | ||
| sys.modules['distutils'] = distutils | ||
|
|
||
| # sanity check that submodules load as expected | ||
| core = importlib.import_module('distutils.core') | ||
| assert '_distutils' in core.__file__, core.__file__ | ||
|
|
||
|
|
||
| def do_override(): | ||
| """ | ||
| Ensure that the local copy of distutils is preferred over stdlib. | ||
| See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401 | ||
| for more motivation. | ||
| """ | ||
| if enabled(): | ||
| warn_distutils_present() | ||
| ensure_local_distutils() | ||
|
|
||
|
|
||
| class DistutilsMetaFinder: | ||
| def find_spec(self, fullname, path, target=None): | ||
| if path is not None: | ||
| return | ||
|
|
||
| method_name = 'spec_for_{fullname}'.format(**locals()) | ||
| method = getattr(self, method_name, lambda: None) | ||
| return method() | ||
|
|
||
| def spec_for_distutils(self): | ||
| import importlib.abc | ||
| import importlib.util | ||
|
|
||
| class DistutilsLoader(importlib.abc.Loader): | ||
|
|
||
| def create_module(self, spec): | ||
| return importlib.import_module('setuptools._distutils') | ||
|
|
||
| def exec_module(self, module): | ||
| pass | ||
|
|
||
| return importlib.util.spec_from_loader('distutils', DistutilsLoader()) | ||
|
|
||
| def spec_for_pip(self): | ||
| """ | ||
| Ensure stdlib distutils when running under pip. | ||
| See pypa/pip#8761 for rationale. | ||
| """ | ||
| if self.pip_imported_during_build(): | ||
| return | ||
| clear_distutils() | ||
| self.spec_for_distutils = lambda: None | ||
|
|
||
| @staticmethod | ||
| def pip_imported_during_build(): | ||
| """ | ||
| Detect if pip is being imported in a build script. Ref #2355. | ||
| """ | ||
| import traceback | ||
| return any( | ||
| frame.f_globals['__file__'].endswith('setup.py') | ||
| for frame, line in traceback.walk_stack(None) | ||
| ) | ||
|
|
||
|
|
||
| DISTUTILS_FINDER = DistutilsMetaFinder() | ||
|
|
||
|
|
||
| def add_shim(): | ||
| sys.meta_path.insert(0, DISTUTILS_FINDER) | ||
|
|
||
|
|
||
| def remove_shim(): | ||
| try: | ||
| sys.meta_path.remove(DISTUTILS_FINDER) | ||
| except ValueError: | ||
| pass |
Binary file added
BIN
+5.01 KB
env/Lib/site-packages/_distutils_hack/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added
BIN
+241 Bytes
env/Lib/site-packages/_distutils_hack/__pycache__/override.cpython-310.pyc
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| __import__('_distutils_hack').do_override() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| pip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| This package contains a modified version of ca-bundle.crt: | ||
|
|
||
| ca-bundle.crt -- Bundle of CA Root Certificates | ||
|
|
||
| Certificate data from Mozilla as of: Thu Nov 3 19:04:19 2011# | ||
| This is a bundle of X.509 certificates of public Certificate Authorities | ||
| (CA). These were automatically extracted from Mozilla's root certificates | ||
| file (certdata.txt). This file can be found in the mozilla source tree: | ||
| http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1# | ||
| It contains the certificates in PEM format and therefore | ||
| can be directly used with curl / libcurl / php_curl, or with | ||
| an Apache+mod_ssl webserver for SSL client authentication. | ||
| Just configure this file as the SSLCACertificateFile.# | ||
|
|
||
| ***** BEGIN LICENSE BLOCK ***** | ||
| This Source Code Form is subject to the terms of the Mozilla Public License, | ||
| v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain | ||
| one at http://mozilla.org/MPL/2.0/. | ||
|
|
||
| ***** END LICENSE BLOCK ***** | ||
| @(#) $RCSfile: certdata.txt,v $ $Revision: 1.80 $ $Date: 2011/11/03 15:11:58 $ |
83 changes: 83 additions & 0 deletions
83
env/Lib/site-packages/certifi-2021.10.8.dist-info/METADATA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| Metadata-Version: 2.1 | ||
| Name: certifi | ||
| Version: 2021.10.8 | ||
| Summary: Python package for providing Mozilla's CA Bundle. | ||
| Home-page: https://certifiio.readthedocs.io/en/latest/ | ||
| Author: Kenneth Reitz | ||
| Author-email: me@kennethreitz.com | ||
| License: MPL-2.0 | ||
| Project-URL: Documentation, https://certifiio.readthedocs.io/en/latest/ | ||
| Project-URL: Source, https://github.com/certifi/python-certifi | ||
| Platform: UNKNOWN | ||
| Classifier: Development Status :: 5 - Production/Stable | ||
| Classifier: Intended Audience :: Developers | ||
| Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0) | ||
| Classifier: Natural Language :: English | ||
| Classifier: Programming Language :: Python | ||
| Classifier: Programming Language :: Python :: 3 | ||
| Classifier: Programming Language :: Python :: 3.3 | ||
| Classifier: Programming Language :: Python :: 3.4 | ||
| 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: Programming Language :: Python :: 3.9 | ||
|
|
||
| Certifi: Python SSL Certificates | ||
| ================================ | ||
|
|
||
| `Certifi`_ provides Mozilla's carefully curated collection of Root Certificates for | ||
| validating the trustworthiness of SSL certificates while verifying the identity | ||
| of TLS hosts. It has been extracted from the `Requests`_ project. | ||
|
|
||
| Installation | ||
| ------------ | ||
|
|
||
| ``certifi`` is available on PyPI. Simply install it with ``pip``:: | ||
|
|
||
| $ pip install certifi | ||
|
|
||
| Usage | ||
| ----- | ||
|
|
||
| To reference the installed certificate authority (CA) bundle, you can use the | ||
| built-in function:: | ||
|
|
||
| >>> import certifi | ||
|
|
||
| >>> certifi.where() | ||
| '/usr/local/lib/python3.7/site-packages/certifi/cacert.pem' | ||
|
|
||
| Or from the command line:: | ||
|
|
||
| $ python -m certifi | ||
| /usr/local/lib/python3.7/site-packages/certifi/cacert.pem | ||
|
|
||
| Enjoy! | ||
|
|
||
| 1024-bit Root Certificates | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| Browsers and certificate authorities have concluded that 1024-bit keys are | ||
| unacceptably weak for certificates, particularly root certificates. For this | ||
| reason, Mozilla has removed any weak (i.e. 1024-bit key) certificate from its | ||
| bundle, replacing it with an equivalent strong (i.e. 2048-bit or greater key) | ||
| certificate from the same CA. Because Mozilla removed these certificates from | ||
| its bundle, ``certifi`` removed them as well. | ||
|
|
||
| In previous versions, ``certifi`` provided the ``certifi.old_where()`` function | ||
| to intentionally re-add the 1024-bit roots back into your bundle. This was not | ||
| recommended in production and therefore was removed at the end of 2018. | ||
|
|
||
| .. _`Certifi`: https://certifiio.readthedocs.io/en/latest/ | ||
| .. _`Requests`: https://requests.readthedocs.io/en/master/ | ||
|
|
||
| Addition/Removal of Certificates | ||
| -------------------------------- | ||
|
|
||
| Certifi does not support any addition/removal or other modification of the | ||
| CA trust store content. This project is intended to provide a reliable and | ||
| highly portable root of trust to python deployments. Look to upstream projects | ||
| for methods to use alternate trust. | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| certifi-2021.10.8.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 | ||
| certifi-2021.10.8.dist-info/LICENSE,sha256=vp2C82ES-Hp_HXTs1Ih-FGe7roh4qEAEoAEXseR1o-I,1049 | ||
| certifi-2021.10.8.dist-info/METADATA,sha256=iB_zbT1uX_8_NC7iGv0YEB-9b3idhQwHrFTSq8R1kD8,2994 | ||
| certifi-2021.10.8.dist-info/RECORD,, | ||
| certifi-2021.10.8.dist-info/WHEEL,sha256=ADKeyaGyKF5DwBNE0sRE5pvW-bSkFMJfBuhzZ3rceP4,110 | ||
| certifi-2021.10.8.dist-info/top_level.txt,sha256=KMu4vUCfsjLrkPbSNdgdekS-pVJzBAJFO__nI8NF6-U,8 | ||
| certifi/__init__.py,sha256=xWdRgntT3j1V95zkRipGOg_A1UfEju2FcpujhysZLRI,62 | ||
| certifi/__main__.py,sha256=xBBoj905TUWBLRGANOcf7oi6e-3dMP4cEoG9OyMs11g,243 | ||
| certifi/__pycache__/__init__.cpython-310.pyc,, | ||
| certifi/__pycache__/__main__.cpython-310.pyc,, | ||
| certifi/__pycache__/core.cpython-310.pyc,, | ||
| certifi/cacert.pem,sha256=-og4Keu4zSpgL5shwfhd4kz0eUnVILzrGCi0zRy2kGw,265969 | ||
| certifi/core.py,sha256=V0uyxKOYdz6ulDSusclrLmjbPgOXsD0BnEf0SQ7OnoE,2303 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| Wheel-Version: 1.0 | ||
| Generator: bdist_wheel (0.35.1) | ||
| Root-Is-Purelib: true | ||
| Tag: py2-none-any | ||
| Tag: py3-none-any | ||
|
|
1 change: 1 addition & 0 deletions
1
env/Lib/site-packages/certifi-2021.10.8.dist-info/top_level.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| certifi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| from .core import contents, where | ||
|
|
||
| __version__ = "2021.10.08" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| import argparse | ||
|
|
||
| from certifi import contents, where | ||
|
|
||
| parser = argparse.ArgumentParser() | ||
| parser.add_argument("-c", "--contents", action="store_true") | ||
| args = parser.parse_args() | ||
|
|
||
| if args.contents: | ||
| print(contents()) | ||
| else: | ||
| print(where()) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank You🙏