[
  {
    "path": ".editorconfig",
    "content": "# http://editorconfig.org\n\nroot = true\n\n[*]\nindent_style = space\nindent_size = 4\ntrim_trailing_whitespace = true\ninsert_final_newline = true\ncharset = utf-8\nend_of_line = lf\n\n[*.bat]\nindent_style = tab\nend_of_line = crlf\n\n[LICENSE]\ninsert_final_newline = false\n\n[Makefile]\nindent_style = tab\n"
  },
  {
    "path": ".github/workflows/flake8.yml",
    "content": "name: flake8\n\nconcurrency:\n  group: ${{ github.ref }}\n  cancel-in-progress: true\n\non:\n  workflow_dispatch:\n  push:\n    tags:\n      - \"*\"\n    branches:\n      - main\n      - master\n      - develop\n      - \"release/*\"\n  pull_request:\n\njobs:\n    flake8-lint:\n        runs-on: ubuntu-24.04\n        name: Lint\n        steps:\n            - name: Check out source repository\n              uses: actions/checkout@v4\n            - name: Set up Python environment\n              uses: actions/setup-python@v5\n              with:\n                  python-version: \"3.13\"\n            - name: flake8 Lint\n              uses: reviewdog/action-flake8@v3\n              with:\n                  github_token: ${{ secrets.GITHUB_TOKEN }}\n                  reporter: github-pr-review\n"
  },
  {
    "path": ".github/workflows/tests.yml",
    "content": "name: Tests and Codecov\non:\n  push:\n    branches:\n      - master\n      - main\n      - \"release/*\"\n  pull_request:\n  workflow_dispatch:\n\njobs:\n    run_tests:\n        runs-on: ubuntu-24.04\n        strategy:\n            fail-fast: false\n            matrix:\n                python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.10']\n\n        steps:\n            - name: Checkout repository\n              uses: actions/checkout@v4\n\n            - name: Set up Python ${{ matrix.python-version }}\n              uses: actions/setup-python@v5\n              with:\n                  python-version: ${{ matrix.python-version }}\n\n            - name: Install dependencies\n              run: |\n                  python -m pip install uv\n                  uv pip install --system tox tox-gh-actions\n\n            - name: Test with tox\n              run: tox\n\n    coverage_report:\n        needs: run_tests\n        runs-on: ubuntu-24.04\n        steps:\n            - name: Checkout repository\n              uses: actions/checkout@v4\n\n            -   name: Set up Python 3.13\n                uses: actions/setup-python@v5\n                with:\n                    python-version: 3.13\n\n            - name: Install dependencies\n              run: |\n                  python -m pip install uv\n                  uv pip install --system poetry\n                  uv pip install --system .[dev]\n\n            - name: Calculate coverage\n              run: poetry run coverage run --source=pipreqs -m unittest discover\n\n            - name: Create XML report\n              run: poetry run coverage xml\n\n            - name: Upload coverage to Codecov\n              uses: codecov/codecov-action@v5\n              with:\n                  files: coverage.xml\n                  token: ${{ secrets.CODECOV_TOKEN }}                  \n                  fail_ci_if_error: false\n"
  },
  {
    "path": ".gitignore",
    "content": "*.py[cod]\n\n# C extensions\n*.so\n\n# Packages\n*.egg\n*.egg-info\ndist\nbuild\neggs\nparts\nbin\nvar\nsdist\ndevelop-eggs\n.installed.cfg\nlib\nlib64\n\n# Installer logs\npip-log.txt\n\n# Unit test / coverage reports\n.coverage\n.tox\nnosetests.xml\nhtmlcov\n\n# Translations\n*.mo\n\n# Mr Developer\n.mr.developer.cfg\n.project\n.pydevproject\n\n# Complexity\noutput/*.html\noutput/*/index.html\n\n# Sphinx\ndocs/_build\n.idea/\n# Created by https://www.gitignore.io/api/vim\n\n### Vim ###\n[._]*.s[a-w][a-z]\n[._]s[a-w][a-z]\n*.un~\nSession.vim\n.netrwhist\n*~\n\n/pipreqs/*.bak\n"
  },
  {
    "path": ".pre-commit-config.yaml",
    "content": "ci:\n    autoupdate_commit_msg: \"chore: update pre-commit hooks\"\n    autofix_commit_msg: \"style: pre-commit fixes\"\n    autoupdate_schedule: quarterly\n\nrepos:\n    -   repo: https://github.com/pre-commit/pre-commit-hooks\n        rev: v5.0.0\n        hooks:\n            -   id: check-added-large-files\n                args: [ '--maxkb=1000' ]\n            -   id: check-case-conflict\n            -   id: check-merge-conflict\n            -   id: check-symlinks\n            -   id: check-yaml\n            -   id: check-toml\n            -   id: check-json\n            -   id: debug-statements\n            -   id: end-of-file-fixer\n            -   id: mixed-line-ending\n            -   id: requirements-txt-fixer\n            -   id: trailing-whitespace\n                files: \".*\\\\.(?:tex|py)$\"\n                args: [ --markdown-linebreak-ext=md ]\n                exclude: (^notebooks/|^tests/truth/)\n            -   id: detect-private-key\n            -   id: fix-byte-order-marker\n            -   id: check-ast\n            -   id: check-docstring-first\n            -   id: debug-statements\n\n    -   repo: https://github.com/pre-commit/pygrep-hooks\n        rev: v1.10.0\n        hooks:\n            -   id: python-use-type-annotations\n            -   id: python-check-mock-methods\n            -   id: python-no-eval\n            -   id: rst-backticks\n            -   id: rst-directive-colons\n\n    -   repo: https://github.com/asottile/pyupgrade\n        rev: v3.3.1\n        hooks:\n            -   id: pyupgrade\n                args: [ --py38-plus ]\n\n    # Notebook formatting\n    -   repo: https://github.com/nbQA-dev/nbQA\n        rev: 1.9.1\n        hooks:\n            -   id: nbqa-isort\n                additional_dependencies: [ isort ]\n\n            -   id: nbqa-pyupgrade\n                additional_dependencies: [ pyupgrade ]\n                args: [ --py38-plus ]\n\n\n    -   repo: https://github.com/kynan/nbstripout\n        rev: 0.8.1\n        hooks:\n            -   id: nbstripout\n\n    -   repo: https://github.com/sondrelg/pep585-upgrade\n        rev: 'v1.0'\n        hooks:\n            -   id: upgrade-type-hints\n                args: [ '--futures=true' ]\n\n    -   repo: https://github.com/MarcoGorelli/auto-walrus\n        rev: 0.3.4\n        hooks:\n            -   id: auto-walrus\n\n    -   repo: https://github.com/python-jsonschema/check-jsonschema\n        rev: 0.30.0\n        hooks:\n            -   id: check-github-workflows\n            -   id: check-github-actions\n            -   id: check-dependabot\n            -   id: check-readthedocs\n\n    -   repo: https://github.com/dannysepler/rm_unneeded_f_str\n        rev: v0.2.0\n        hooks:\n            -   id: rm-unneeded-f-str\n\n    -   repo: https://github.com/astral-sh/ruff-pre-commit\n        rev: \"v0.8.6\"\n        hooks:\n            -   id: ruff\n                types_or: [ python, pyi, jupyter ]\n                args: [ --fix, --show-fixes , --line-length=120 ]  # --unsafe-fixes,\n            # Run the formatter.\n            -   id: ruff-format\n                types_or: [ python, pyi, jupyter ]\n"
  },
  {
    "path": ".python-version",
    "content": "3.13\n3.12\n3.11\n3.10\n3.9\n3.8\npypy3.9-7.3.12\n"
  },
  {
    "path": ".tool-versions",
    "content": "python 3.13 3.12 3.11 3.10 3.9 3.8 pypy3.9-7.3.12\n"
  },
  {
    "path": "AUTHORS.rst",
    "content": "=======\nCredits\n=======\n\nDevelopment Lead\n----------------\n\n* Vadim Kravcenko <vadim.kravcenko@gmail.com>\n\nContributors\n------------\n\n* Jake Teo <mapattacker@gmail.com>\n* Jerome Chan <cjerome94@gmail.com>\n"
  },
  {
    "path": "CONTRIBUTING.rst",
    "content": "============\nContributing\n============\n\nContributions are welcome, and they are greatly appreciated! Every\nlittle bit helps, and credit will always be given.\n\nYou can contribute in many ways:\n\nTypes of Contributions\n----------------------\n\nReport Bugs\n~~~~~~~~~~~\n\nReport bugs at https://github.com/bndr/pipreqs/issues.\n\nIf you are reporting a bug, please include:\n\n* Your operating system name and version.\n* Any details about your local setup that might be helpful in troubleshooting.\n* Detailed steps to reproduce the bug.\n\nFix Bugs\n~~~~~~~~\n\nLook through the GitHub issues for bugs. Anything tagged with \"bug\"\nis open to whoever wants to implement it.\n\nImplement Features\n~~~~~~~~~~~~~~~~~~\n\nLook through the GitHub issues for features. Anything tagged with \"feature\"\nis open to whoever wants to implement it.\n\nWrite Documentation\n~~~~~~~~~~~~~~~~~~~\n\npipreqs could always use more documentation, whether as part of the\nofficial pipreqs docs, in docstrings, or even on the web in blog posts,\narticles, and such.\n\nSubmit Feedback\n~~~~~~~~~~~~~~~\n\nThe best way to send feedback is to file an issue at https://github.com/bndr/pipreqs/issues.\n\nIf you are proposing a feature:\n\n* Explain in detail how it would work.\n* Keep the scope as narrow as possible, to make it easier to implement.\n* Remember that this is a volunteer-driven project, and that contributions\n  are welcome :)\n\nGet Started!\n------------\n\nReady to contribute? Here's how to set up `pipreqs` for local development.\n\n1. Fork the `pipreqs` repo on GitHub.\n2. Clone your fork locally::\n\n    $ git clone git@github.com:your_name_here/pipreqs.git\n    $ cd pipreqs/\n\n3. Pipreqs is developed using Poetry. Refer to the `documentation <https://python-poetry.org/docs/>`_ to install Poetry in your local environment. Next, you should install pipreqs's dependencies::\n\n    $ poetry install --with dev\n\n4. Create a branch for local development::\n\n    $ git checkout -b name-of-your-bugfix-or-feature\n\n   Now you can make your changes locally.\n\n5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox::\n\n    $ poetry run flake8 pipreqs tests\n    $ poetry run python -m unittest discover\n    $ poetry run tox\n    \n    To test all versions of python using tox you need to have them installed and for this two options are recommended: `pyenv` or `asdf`.\n\n6. Commit your changes and push your branch to GitHub::\n\n    $ git add .\n    $ git commit -m \"Your detailed description of your changes.\"\n    $ git push origin name-of-your-bugfix-or-feature\n\n7. Submit a pull request through the GitHub website.\n\nPull Request Guidelines\n-----------------------\n\nBefore you submit a pull request, check that it meets these guidelines:\n\n1. The pull request should include tests.\n2. If the pull request adds functionality, the docs should be updated. Put\n   your new functionality into a function with a docstring, and add the\n   feature to the list in README.rst.\n3. The pull request should work for currently supported Python and PyPy versions. Check\n   https://travis-ci.org/bndr/pipreqs/pull_requests and make sure that the\n   tests pass for all supported Python versions.\n\nTips\n----\n\nTo run a subset of tests::\n\n    $ poetry run python -m unittest tests.test_pipreqs\n"
  },
  {
    "path": "HISTORY.rst",
    "content": ".. :changelog:\n\nHistory\n-------\n\n0.4.11 (2020-03-29)\n--------------------\n\n* Implement '--mode' (Jake Teo, Jerome Chan)\n\n0.4.8 (2017-06-30)\n--------------------\n\n* Implement '--clean' and '--diff' (kxrd)\n* Exclude concurrent{,.futures} from stdlib if py2 (kxrd)\n\n0.4.7 (2017-04-20)\n--------------------\n\n* BUG: remove package/version duplicates\n* Style: pep8\n\n0.4.5 (2016-12-13)\n---------------------\n\n* Fixed the --pypi-server option\n\n0.4.4 (2016-07-14)\n---------------------\n\n* Remove Spaces in output\n* Add package to output even without version\n\n0.4.2 (2016-02-10)\n---------------------\n\n* Fix duplicated lines in requirements.txt (Dmitry Pribysh)\n\n0.4.1 (2016-02-05)\n---------------------\n\n* Added ignore option (Nick Rhinehart)\n\n0.4.0 (2016-01-28)\n---------------------\n\n* Walk Abstract Syntax Tree to find imports (Kay Sackey)\n\n0.3.9 (2016-01-20)\n---------------------\n\n* Fix regex for docstring comments (#35)\n\n0.3.8 (2016-01-12)\n---------------------\n\n* Add more package mapping\n* fix(pipreqs/mapping): remove pylab reference to matplotlib\n* Remove comments \"\"\" before going through imports\n* Update proxy documentation\n\n0.3.1 (2015-10-20)\n---------------------\n\n* fixed lint warnings (EJ Lee)\n* add --encoding parameter for open() (EJ Lee)\n* support windows directory separator (EJ Lee)\n\n0.3.0 (2015-09-29)\n---------------------\n\n* Add --proxy option\n* Add --pypi-server option\n\n0.2.9 (2015-09-24)\n---------------------\n\n* Ignore irreverent directory when generating requirement.txt (Lee Wei)\n* Modify logging level of \"Requirement.txt already exists\" to warning (Lee Wei)\n\n0.2.8 (2015-05-11)\n---------------------\n\n* Add --force option as a protection for overwrites\n\n0.2.6 (2015-05-11)\n---------------------\n\n* Fix exception when 'import' is used inside package name #17\n* Add more tests\n\n0.2.5 (2015-05-11)\n---------------------\n\n* Fix exception when 'import' is used in comments #17\n* Fix duplicate entries in requirements.txt\n\n0.2.4 (2015-05-10)\n---------------------\n\n* Refactoring\n* fix \"import as\"\n\n0.2.3 (2015-05-09)\n---------------------\n\n* Fix multiple alias imports on the same line (Tiago Costa)\n* More package mappings\n\n0.2.2 (2015-05-08)\n---------------------\n\n* Add ImportName -> PackageName mapping\n* More tests\n\n0.2.1 (2015-05-08)\n---------------------\n\n* Fix for TypeError for implicit conversion\n\n0.2.0 (2015-05-06)\n---------------------\n\n* Add --use-local option\n* Exclude relative imports. (Dongwon Shin)\n* Use \"latest_release_id\" instead of \"release_ids[-1]\" (Dongwon Shin)\n\n0.1.9 (2015-05-01)\n---------------------\n\n* Output tuning (Harri Berglund)\n* Use str.partition() to simplify the logic (cclaus)\n\n0.1.8 (2015-04-26)\n---------------------\n\n* Fixed problems with local imports (Dongwon Shin)\n* Fixed problems with imports with 'as' (Dongwon Shin)\n* Fix indentation, pep8 Styling. (Michael Borisov)\n* Optimize imports and adding missing import for sys module. (Michael Borisov)\n\n0.1.7 (2015-04-24)\n---------------------\n\n* Add more assertions in tests\n* Add more verbose output\n* Add recursive delete to Makefile clean\n* Update Readme\n\n0.1.6 (2015-04-22)\n---------------------\n\n* py3 print function\n\n0.1.5 (2015-04-22)\n---------------------\n\n* Add Readme, Add Examples\n* Add Stdlib into package\n\n0.1.1 (2015-04-22)\n---------------------\n\n* Fix regex matching for imports\n* Release on Pypi\n\n0.1.0 (2015-04-22)\n---------------------\n\n* First release on Github.\n"
  },
  {
    "path": "LICENSE",
    "content": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright {yyyy} {name of copyright owner}\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n"
  },
  {
    "path": "Makefile",
    "content": ".PHONY: clean-pyc clean-build docs clean\n\nhelp:\n\t@echo \"clean - remove all build, test, coverage and Python artifacts\"\n\t@echo \"clean-build - remove build artifacts\"\n\t@echo \"clean-pyc - remove Python file artifacts\"\n\t@echo \"clean-test - remove test and coverage artifacts\"\n\t@echo \"lint - check style with flake8\"\n\t@echo \"test - run tests quickly using the default Python\"\n\t@echo \"test-all - run tests on every Python version with tox\"\n\t@echo \"coverage - check code coverage quickly with the default Python\"\n\t@echo \"docs - generate Sphinx HTML documentation, including API docs\"\n\t@echo \"publish - package and upload a release\"\n\t@echo \"publish-to-test - package and upload a release to test-pypi\"\n\t@echo \"build - build the package\"\n\t@echo \"install - install the dependencies into the Poetry virtual environment\"\n\nclean: clean-build clean-pyc clean-test\n\nclean-build:\n\trm -fr build/\n\trm -fr dist/\n\trm -fr .eggs/\n\tfind . -name '*.egg-info' -exec rm -fr {} +\n\tfind . -name '*.egg' -exec rm -rf {} +\n\nclean-pyc:\n\tfind . -name '*.pyc' -exec rm -f {} +\n\tfind . -name '*.pyo' -exec rm -f {} +\n\tfind . -name '*~' -exec rm -f {} +\n\tfind . -name '__pycache__' -exec rm -fr {} +\n\nclean-test:\n\trm -fr .tox/\n\trm -f .coverage\n\trm -fr htmlcov/\n\nlint:\n\tpoetry run flake8 pipreqs tests\n\ntest:\n\tpoetry run python -m unittest discover \n\ntest-all:\n\tpoetry run tox\n\ncoverage:\n\tcoverage run --source pipreqs setup.py test\n\tcoverage report -m\n\tcoverage html\n\topen htmlcov/index.html\n\ndocs:\n\trm -f docs/pipreqs.rst\n\trm -f docs/modules.rst\n\tsphinx-apidoc -o docs/ pipreqs\n\t$(MAKE) -C docs clean\n\t$(MAKE) -C docs html\n\topen docs/_build/html/index.html\n\npublish: build\n\tpoetry publish\n\npublish-to-test: build\n\tpoetry publish --repository test-pypi\n\nbuild: clean\n\tpoetry build\n\ninstall: clean\n\tpoetry install --with dev\n"
  },
  {
    "path": "README.rst",
    "content": "=============================================================================\n``pipreqs`` - Generate requirements.txt file for any project based on imports\n=============================================================================\n\n.. image:: https://github.com/bndr/pipreqs/actions/workflows/tests.yml/badge.svg\n        :target: https://github.com/bndr/pipreqs/actions/workflows/tests.yml\n\n\n.. image:: https://img.shields.io/pypi/v/pipreqs.svg\n        :target: https://pypi.python.org/pypi/pipreqs\n\n\n.. image:: https://codecov.io/gh/bndr/pipreqs/branch/master/graph/badge.svg?token=0rfPfUZEAX\n        :target: https://codecov.io/gh/bndr/pipreqs\n\n.. image:: https://img.shields.io/pypi/l/pipreqs.svg\n        :target: https://pypi.python.org/pypi/pipreqs\n\n\n\nInstallation\n------------\n\n.. code-block:: sh\n\n    pip install pipreqs\n\nObs.: if you don't want support for jupyter notebooks, you can install pipreqs without the dependencies that give support to it. \nTo do so, run:\n\n.. code-block:: sh\n\n    pip install --no-deps pipreqs\n    pip install yarg==0.1.9 docopt==0.6.2\n\nUsage\n-----\n\n::\n\n    Usage:\n        pipreqs [options] [<path>]\n\n    Arguments:\n        <path>                The path to the directory containing the application files for which a requirements file\n                              should be generated (defaults to the current working directory)\n\n    Options:\n        --use-local           Use ONLY local package info instead of querying PyPI\n        --pypi-server <url>   Use custom PyPi server\n        --proxy <url>         Use Proxy, parameter will be passed to requests library. You can also just set the\n                              environments parameter in your terminal:\n                              $ export HTTP_PROXY=\"http://10.10.1.10:3128\"\n                              $ export HTTPS_PROXY=\"https://10.10.1.10:1080\"\n        --debug               Print debug information\n        --ignore <dirs>...    Ignore extra directories, each separated by a comma\n        --no-follow-links     Do not follow symbolic links in the project\n        --ignore-errors       Ignore errors while scanning files\n        --encoding <charset>  Use encoding parameter for file open\n        --savepath <file>     Save the list of requirements in the given file\n        --print               Output the list of requirements in the standard output\n        --force               Overwrite existing requirements.txt\n        --diff <file>         Compare modules in requirements.txt to project imports\n        --clean <file>        Clean up requirements.txt by removing modules that are not imported in project\n        --mode <scheme>       Enables dynamic versioning with <compat>, <gt> or <non-pin> schemes\n                              <compat> | e.g. Flask~=1.1.2\n                              <gt>     | e.g. Flask>=1.1.2\n                              <no-pin> | e.g. Flask\n        --scan-notebooks      Look for imports in jupyter notebook files.\n\nExample\n-------\n\n::\n\n    $ pipreqs /home/project/location\n    Successfully saved requirements file in /home/project/location/requirements.txt\n\nContents of requirements.txt\n\n::\n\n    wheel==0.23.0\n    Yarg==0.1.9\n    docopt==0.6.2\n\nWhy not pip freeze?\n-------------------\n\n- ``pip freeze`` only saves the packages that are installed with ``pip install`` in your environment.\n- ``pip freeze`` saves all packages in the environment including those that you don't use in your current project (if you don't have ``virtualenv``).\n- and sometimes you just need to create ``requirements.txt`` for a new project without installing modules.\n"
  },
  {
    "path": "docs/Makefile",
    "content": "# Makefile for Sphinx documentation\n#\n\n# You can set these variables from the command line.\nSPHINXOPTS    =\nSPHINXBUILD   = sphinx-build\nPAPER         =\nBUILDDIR      = _build\n\n# User-friendly check for sphinx-build\nifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)\n$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)\nendif\n\n# Internal variables.\nPAPEROPT_a4     = -D latex_paper_size=a4\nPAPEROPT_letter = -D latex_paper_size=letter\nALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .\n# the i18n builder cannot share the environment and doctrees with the others\nI18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .\n\n.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext\n\nhelp:\n\t@echo \"Please use \\`make <target>' where <target> is one of\"\n\t@echo \"  html       to make standalone HTML files\"\n\t@echo \"  dirhtml    to make HTML files named index.html in directories\"\n\t@echo \"  singlehtml to make a single large HTML file\"\n\t@echo \"  pickle     to make pickle files\"\n\t@echo \"  json       to make JSON files\"\n\t@echo \"  htmlhelp   to make HTML files and a HTML help project\"\n\t@echo \"  qthelp     to make HTML files and a qthelp project\"\n\t@echo \"  devhelp    to make HTML files and a Devhelp project\"\n\t@echo \"  epub       to make an epub\"\n\t@echo \"  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter\"\n\t@echo \"  latexpdf   to make LaTeX files and run them through pdflatex\"\n\t@echo \"  latexpdfja to make LaTeX files and run them through platex/dvipdfmx\"\n\t@echo \"  text       to make text files\"\n\t@echo \"  man        to make manual pages\"\n\t@echo \"  texinfo    to make Texinfo files\"\n\t@echo \"  info       to make Texinfo files and run them through makeinfo\"\n\t@echo \"  gettext    to make PO message catalogs\"\n\t@echo \"  changes    to make an overview of all changed/added/deprecated items\"\n\t@echo \"  xml        to make Docutils-native XML files\"\n\t@echo \"  pseudoxml  to make pseudoxml-XML files for display purposes\"\n\t@echo \"  linkcheck  to check all external links for integrity\"\n\t@echo \"  doctest    to run all doctests embedded in the documentation (if enabled)\"\n\nclean:\n\trm -rf $(BUILDDIR)/*\n\nhtml:\n\t$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html\n\t@echo\n\t@echo \"Build finished. The HTML pages are in $(BUILDDIR)/html.\"\n\ndirhtml:\n\t$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml\n\t@echo\n\t@echo \"Build finished. The HTML pages are in $(BUILDDIR)/dirhtml.\"\n\nsinglehtml:\n\t$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml\n\t@echo\n\t@echo \"Build finished. The HTML page is in $(BUILDDIR)/singlehtml.\"\n\npickle:\n\t$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle\n\t@echo\n\t@echo \"Build finished; now you can process the pickle files.\"\n\njson:\n\t$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json\n\t@echo\n\t@echo \"Build finished; now you can process the JSON files.\"\n\nhtmlhelp:\n\t$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp\n\t@echo\n\t@echo \"Build finished; now you can run HTML Help Workshop with the\" \\\n\t      \".hhp project file in $(BUILDDIR)/htmlhelp.\"\n\nqthelp:\n\t$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp\n\t@echo\n\t@echo \"Build finished; now you can run \"qcollectiongenerator\" with the\" \\\n\t      \".qhcp project file in $(BUILDDIR)/qthelp, like this:\"\n\t@echo \"# qcollectiongenerator $(BUILDDIR)/qthelp/pipreqs.qhcp\"\n\t@echo \"To view the help file:\"\n\t@echo \"# assistant -collectionFile $(BUILDDIR)/qthelp/pipreqs.qhc\"\n\ndevhelp:\n\t$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp\n\t@echo\n\t@echo \"Build finished.\"\n\t@echo \"To view the help file:\"\n\t@echo \"# mkdir -p $$HOME/.local/share/devhelp/pipreqs\"\n\t@echo \"# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/pipreqs\"\n\t@echo \"# devhelp\"\n\nepub:\n\t$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub\n\t@echo\n\t@echo \"Build finished. The epub file is in $(BUILDDIR)/epub.\"\n\nlatex:\n\t$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex\n\t@echo\n\t@echo \"Build finished; the LaTeX files are in $(BUILDDIR)/latex.\"\n\t@echo \"Run \\`make' in that directory to run these through (pdf)latex\" \\\n\t      \"(use \\`make latexpdf' here to do that automatically).\"\n\nlatexpdf:\n\t$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex\n\t@echo \"Running LaTeX files through pdflatex...\"\n\t$(MAKE) -C $(BUILDDIR)/latex all-pdf\n\t@echo \"pdflatex finished; the PDF files are in $(BUILDDIR)/latex.\"\n\nlatexpdfja:\n\t$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex\n\t@echo \"Running LaTeX files through platex and dvipdfmx...\"\n\t$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja\n\t@echo \"pdflatex finished; the PDF files are in $(BUILDDIR)/latex.\"\n\ntext:\n\t$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text\n\t@echo\n\t@echo \"Build finished. The text files are in $(BUILDDIR)/text.\"\n\nman:\n\t$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man\n\t@echo\n\t@echo \"Build finished. The manual pages are in $(BUILDDIR)/man.\"\n\ntexinfo:\n\t$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo\n\t@echo\n\t@echo \"Build finished. The Texinfo files are in $(BUILDDIR)/texinfo.\"\n\t@echo \"Run \\`make' in that directory to run these through makeinfo\" \\\n\t      \"(use \\`make info' here to do that automatically).\"\n\ninfo:\n\t$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo\n\t@echo \"Running Texinfo files through makeinfo...\"\n\tmake -C $(BUILDDIR)/texinfo info\n\t@echo \"makeinfo finished; the Info files are in $(BUILDDIR)/texinfo.\"\n\ngettext:\n\t$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale\n\t@echo\n\t@echo \"Build finished. The message catalogs are in $(BUILDDIR)/locale.\"\n\nchanges:\n\t$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes\n\t@echo\n\t@echo \"The overview file is in $(BUILDDIR)/changes.\"\n\nlinkcheck:\n\t$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck\n\t@echo\n\t@echo \"Link check complete; look for any errors in the above output \" \\\n\t      \"or in $(BUILDDIR)/linkcheck/output.txt.\"\n\ndoctest:\n\t$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest\n\t@echo \"Testing of doctests in the sources finished, look at the \" \\\n\t      \"results in $(BUILDDIR)/doctest/output.txt.\"\n\nxml:\n\t$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml\n\t@echo\n\t@echo \"Build finished. The XML files are in $(BUILDDIR)/xml.\"\n\npseudoxml:\n\t$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml\n\t@echo\n\t@echo \"Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml.\"\n"
  },
  {
    "path": "docs/authors.rst",
    "content": ".. include:: ../AUTHORS.rst\n"
  },
  {
    "path": "docs/conf.py",
    "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# pipreqs documentation build configuration file, created by\n# sphinx-quickstart on Tue Jul  9 22:26:36 2013.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#\n# All configuration values have a default; values that are commented out\n# serve to show the default.\n\nimport sys\nimport os\n\n# If extensions (or modules to document with autodoc) are in another\n# directory, add these directories to sys.path here. If the directory is\n# relative to the documentation root, use os.path.abspath to make it\n# absolute, like shown here.\n#sys.path.insert(0, os.path.abspath('.'))\n\n# Get the project root dir, which is the parent dir of this\ncwd = os.getcwd()\nproject_root = os.path.dirname(cwd)\n\n# Insert the project root dir as the first element in the PYTHONPATH.\n# This lets us ensure that the source package is imported, and that its\n# version is used.\nsys.path.insert(0, project_root)\n\nimport pipreqs\n\n# -- General configuration ---------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\n#needs_sphinx = '1.0'\n\n# Add any Sphinx extension module names here, as strings. They can be\n# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.\nextensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode']\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = ['_templates']\n\n# The suffix of source filenames.\nsource_suffix = '.rst'\n\n# The encoding of source files.\n#source_encoding = 'utf-8-sig'\n\n# The master toctree document.\nmaster_doc = 'index'\n\n# General information about the project.\nproject = u'pipreqs'\ncopyright = u'2015, Vadim Kravcenko'\n\n# The version info for the project you're documenting, acts as replacement\n# for |version| and |release|, also used in various other places throughout\n# the built documents.\n#\n# The short X.Y version.\nversion = pipreqs.__version__\n# The full version, including alpha/beta/rc tags.\nrelease = pipreqs.__version__\n\n# The language for content autogenerated by Sphinx. Refer to documentation\n# for a list of supported languages.\n#language = None\n\n# There are two options for replacing |today|: either, you set today to\n# some non-false value, then it is used:\n#today = ''\n# Else, today_fmt is used as the format for a strftime call.\n#today_fmt = '%B %d, %Y'\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\nexclude_patterns = ['_build']\n\n# The reST default role (used for this markup: `text`) to use for all\n# documents.\n#default_role = None\n\n# If true, '()' will be appended to :func: etc. cross-reference text.\n#add_function_parentheses = True\n\n# If true, the current module name will be prepended to all description\n# unit titles (such as .. function::).\n#add_module_names = True\n\n# If true, sectionauthor and moduleauthor directives will be shown in the\n# output. They are ignored by default.\n#show_authors = False\n\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = 'sphinx'\n\n# A list of ignored prefixes for module index sorting.\n#modindex_common_prefix = []\n\n# If true, keep warnings as \"system message\" paragraphs in the built\n# documents.\n#keep_warnings = False\n\n\n# -- Options for HTML output -------------------------------------------\n\n# The theme to use for HTML and HTML Help pages.  See the documentation for\n# a list of builtin themes.\nhtml_theme = 'default'\n\n# Theme options are theme-specific and customize the look and feel of a\n# theme further.  For a list of options available for each theme, see the\n# documentation.\n#html_theme_options = {}\n\n# Add any paths that contain custom themes here, relative to this directory.\n#html_theme_path = []\n\n# The name for this set of Sphinx documents.  If None, it defaults to\n# \"<project> v<release> documentation\".\n#html_title = None\n\n# A shorter title for the navigation bar.  Default is the same as\n# html_title.\n#html_short_title = None\n\n# The name of an image file (relative to this directory) to place at the\n# top of the sidebar.\n#html_logo = None\n\n# The name of an image file (within the static path) to use as favicon\n# of the docs.  This file should be a Windows icon file (.ico) being\n# 16x16 or 32x32 pixels large.\n#html_favicon = None\n\n# Add any paths that contain custom static files (such as style sheets)\n# here, relative to this directory. They are copied after the builtin\n# static files, so a file named \"default.css\" will overwrite the builtin\n# \"default.css\".\nhtml_static_path = ['_static']\n\n# If not '', a 'Last updated on:' timestamp is inserted at every page\n# bottom, using the given strftime format.\n#html_last_updated_fmt = '%b %d, %Y'\n\n# If true, SmartyPants will be used to convert quotes and dashes to\n# typographically correct entities.\n#html_use_smartypants = True\n\n# Custom sidebar templates, maps document names to template names.\n#html_sidebars = {}\n\n# Additional templates that should be rendered to pages, maps page names\n# to template names.\n#html_additional_pages = {}\n\n# If false, no module index is generated.\n#html_domain_indices = True\n\n# If false, no index is generated.\n#html_use_index = True\n\n# If true, the index is split into individual pages for each letter.\n#html_split_index = False\n\n# If true, links to the reST sources are added to the pages.\n#html_show_sourcelink = True\n\n# If true, \"Created using Sphinx\" is shown in the HTML footer.\n# Default is True.\n#html_show_sphinx = True\n\n# If true, \"(C) Copyright ...\" is shown in the HTML footer.\n# Default is True.\n#html_show_copyright = True\n\n# If true, an OpenSearch description file will be output, and all pages\n# will contain a <link> tag referring to it.  The value of this option\n# must be the base URL from which the finished HTML is served.\n#html_use_opensearch = ''\n\n# This is the file name suffix for HTML files (e.g. \".xhtml\").\n#html_file_suffix = None\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = 'pipreqsdoc'\n\n\n# -- Options for LaTeX output ------------------------------------------\n\nlatex_elements = {\n    # The paper size ('letterpaper' or 'a4paper').\n    #'papersize': 'letterpaper',\n\n    # The font size ('10pt', '11pt' or '12pt').\n    #'pointsize': '10pt',\n\n    # Additional stuff for the LaTeX preamble.\n    #'preamble': '',\n}\n\n# Grouping the document tree into LaTeX files. List of tuples\n# (source start file, target name, title, author, documentclass\n# [howto/manual]).\nlatex_documents = [\n    ('index', 'pipreqs.tex',\n     u'pipreqs Documentation',\n     u'Vadim Kravcenko', 'manual'),\n]\n\n# The name of an image file (relative to this directory) to place at\n# the top of the title page.\n#latex_logo = None\n\n# For \"manual\" documents, if this is true, then toplevel headings\n# are parts, not chapters.\n#latex_use_parts = False\n\n# If true, show page references after internal links.\n#latex_show_pagerefs = False\n\n# If true, show URL addresses after external links.\n#latex_show_urls = False\n\n# Documents to append as an appendix to all manuals.\n#latex_appendices = []\n\n# If false, no module index is generated.\n#latex_domain_indices = True\n\n\n# -- Options for manual page output ------------------------------------\n\n# One entry per manual page. List of tuples\n# (source start file, name, description, authors, manual section).\nman_pages = [\n    ('index', 'pipreqs',\n     u'pipreqs Documentation',\n     [u'Vadim Kravcenko'], 1)\n]\n\n# If true, show URL addresses after external links.\n#man_show_urls = False\n\n\n# -- Options for Texinfo output ----------------------------------------\n\n# Grouping the document tree into Texinfo files. List of tuples\n# (source start file, target name, title, author,\n#  dir menu entry, description, category)\ntexinfo_documents = [\n    ('index', 'pipreqs',\n     u'pipreqs Documentation',\n     u'Vadim Kravcenko',\n     'pipreqs',\n     'One line description of project.',\n     'Miscellaneous'),\n]\n\n# Documents to append as an appendix to all manuals.\n#texinfo_appendices = []\n\n# If false, no module index is generated.\n#texinfo_domain_indices = True\n\n# How to display URL addresses: 'footnote', 'no', or 'inline'.\n#texinfo_show_urls = 'footnote'\n\n# If true, do not generate a @detailmenu in the \"Top\" node's menu.\n#texinfo_no_detailmenu = False\n"
  },
  {
    "path": "docs/contributing.rst",
    "content": ".. include:: ../CONTRIBUTING.rst\n"
  },
  {
    "path": "docs/history.rst",
    "content": ".. include:: ../HISTORY.rst\n"
  },
  {
    "path": "docs/index.rst",
    "content": ".. pipreqs documentation master file, created by\n   sphinx-quickstart on Tue Jul  9 22:26:36 2013.\n   You can adapt this file completely to your liking, but it should at least\n   contain the root `toctree` directive.\n\nWelcome to pipreqs's documentation!\n======================================\n\nContents:\n\n.. toctree::\n   :maxdepth: 2\n\n   readme\n   installation\n   usage\n   contributing\n   authors\n   history\n\nIndices and tables\n==================\n\n* :ref:`genindex`\n* :ref:`modindex`\n* :ref:`search`\n\n"
  },
  {
    "path": "docs/installation.rst",
    "content": "============\nInstallation\n============\n\nAt the command line::\n\n    $ easy_install pipreqs\n\nOr, if you have virtualenvwrapper installed::\n\n    $ mkvirtualenv pipreqs\n    $ pip install pipreqs\n"
  },
  {
    "path": "docs/make.bat",
    "content": "@ECHO OFF\n\nREM Command file for Sphinx documentation\n\nif \"%SPHINXBUILD%\" == \"\" (\n\tset SPHINXBUILD=sphinx-build\n)\nset BUILDDIR=_build\nset ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .\nset I18NSPHINXOPTS=%SPHINXOPTS% .\nif NOT \"%PAPER%\" == \"\" (\n\tset ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%\n\tset I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%\n)\n\nif \"%1\" == \"\" goto help\n\nif \"%1\" == \"help\" (\n\t:help\n\techo.Please use `make ^<target^>` where ^<target^> is one of\n\techo.  html       to make standalone HTML files\n\techo.  dirhtml    to make HTML files named index.html in directories\n\techo.  singlehtml to make a single large HTML file\n\techo.  pickle     to make pickle files\n\techo.  json       to make JSON files\n\techo.  htmlhelp   to make HTML files and a HTML help project\n\techo.  qthelp     to make HTML files and a qthelp project\n\techo.  devhelp    to make HTML files and a Devhelp project\n\techo.  epub       to make an epub\n\techo.  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter\n\techo.  text       to make text files\n\techo.  man        to make manual pages\n\techo.  texinfo    to make Texinfo files\n\techo.  gettext    to make PO message catalogs\n\techo.  changes    to make an overview over all changed/added/deprecated items\n\techo.  xml        to make Docutils-native XML files\n\techo.  pseudoxml  to make pseudoxml-XML files for display purposes\n\techo.  linkcheck  to check all external links for integrity\n\techo.  doctest    to run all doctests embedded in the documentation if enabled\n\tgoto end\n)\n\nif \"%1\" == \"clean\" (\n\tfor /d %%i in (%BUILDDIR%\\*) do rmdir /q /s %%i\n\tdel /q /s %BUILDDIR%\\*\n\tgoto end\n)\n\n\n%SPHINXBUILD% 2> nul\nif errorlevel 9009 (\n\techo.\n\techo.The 'sphinx-build' command was not found. Make sure you have Sphinx\n\techo.installed, then set the SPHINXBUILD environment variable to point\n\techo.to the full path of the 'sphinx-build' executable. Alternatively you\n\techo.may add the Sphinx directory to PATH.\n\techo.\n\techo.If you don't have Sphinx installed, grab it from\n\techo.http://sphinx-doc.org/\n\texit /b 1\n)\n\nif \"%1\" == \"html\" (\n\t%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The HTML pages are in %BUILDDIR%/html.\n\tgoto end\n)\n\nif \"%1\" == \"dirhtml\" (\n\t%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.\n\tgoto end\n)\n\nif \"%1\" == \"singlehtml\" (\n\t%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.\n\tgoto end\n)\n\nif \"%1\" == \"pickle\" (\n\t%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished; now you can process the pickle files.\n\tgoto end\n)\n\nif \"%1\" == \"json\" (\n\t%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished; now you can process the JSON files.\n\tgoto end\n)\n\nif \"%1\" == \"htmlhelp\" (\n\t%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished; now you can run HTML Help Workshop with the ^\n.hhp project file in %BUILDDIR%/htmlhelp.\n\tgoto end\n)\n\nif \"%1\" == \"qthelp\" (\n\t%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished; now you can run \"qcollectiongenerator\" with the ^\n.qhcp project file in %BUILDDIR%/qthelp, like this:\n\techo.^> qcollectiongenerator %BUILDDIR%\\qthelp\\pipreqs.qhcp\n\techo.To view the help file:\n\techo.^> assistant -collectionFile %BUILDDIR%\\qthelp\\pipreqs.ghc\n\tgoto end\n)\n\nif \"%1\" == \"devhelp\" (\n\t%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished.\n\tgoto end\n)\n\nif \"%1\" == \"epub\" (\n\t%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The epub file is in %BUILDDIR%/epub.\n\tgoto end\n)\n\nif \"%1\" == \"latex\" (\n\t%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished; the LaTeX files are in %BUILDDIR%/latex.\n\tgoto end\n)\n\nif \"%1\" == \"latexpdf\" (\n\t%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex\n\tcd %BUILDDIR%/latex\n\tmake all-pdf\n\tcd %BUILDDIR%/..\n\techo.\n\techo.Build finished; the PDF files are in %BUILDDIR%/latex.\n\tgoto end\n)\n\nif \"%1\" == \"latexpdfja\" (\n\t%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex\n\tcd %BUILDDIR%/latex\n\tmake all-pdf-ja\n\tcd %BUILDDIR%/..\n\techo.\n\techo.Build finished; the PDF files are in %BUILDDIR%/latex.\n\tgoto end\n)\n\nif \"%1\" == \"text\" (\n\t%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The text files are in %BUILDDIR%/text.\n\tgoto end\n)\n\nif \"%1\" == \"man\" (\n\t%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The manual pages are in %BUILDDIR%/man.\n\tgoto end\n)\n\nif \"%1\" == \"texinfo\" (\n\t%SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.\n\tgoto end\n)\n\nif \"%1\" == \"gettext\" (\n\t%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The message catalogs are in %BUILDDIR%/locale.\n\tgoto end\n)\n\nif \"%1\" == \"changes\" (\n\t%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.The overview file is in %BUILDDIR%/changes.\n\tgoto end\n)\n\nif \"%1\" == \"linkcheck\" (\n\t%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Link check complete; look for any errors in the above output ^\nor in %BUILDDIR%/linkcheck/output.txt.\n\tgoto end\n)\n\nif \"%1\" == \"doctest\" (\n\t%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Testing of doctests in the sources finished, look at the ^\nresults in %BUILDDIR%/doctest/output.txt.\n\tgoto end\n)\n\nif \"%1\" == \"xml\" (\n\t%SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The XML files are in %BUILDDIR%/xml.\n\tgoto end\n)\n\nif \"%1\" == \"pseudoxml\" (\n\t%SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml\n\tif errorlevel 1 exit /b 1\n\techo.\n\techo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml.\n\tgoto end\n)\n\n:end\n"
  },
  {
    "path": "docs/readme.rst",
    "content": ".. include:: ../README.rst\n"
  },
  {
    "path": "docs/usage.rst",
    "content": "========\nUsage\n========\n\nTo use pipreqs in a project::\n\n    import pipreqs\n"
  },
  {
    "path": "pipreqs/__init__.py",
    "content": "__author__ = 'Vadim Kravcenko'\n__email__ = 'vadim.kravcenko@gmail.com'\n__version__ = '0.4.13'\n"
  },
  {
    "path": "pipreqs/mapping",
    "content": "AFQ:pyAFQ\nAG_fft_tools:agpy\nANSI:pexpect\nAdafruit:Adafruit_Libraries\nApp:Zope2\nAsterisk:py_Asterisk\nBB_jekyll_hook:bitbucket_jekyll_hook\nBanzai:Banzai_NGS\nBeautifulSoupTests:BeautifulSoup\nBioSQL:biopython\nBuildbotStatusShields:BuildbotEightStatusShields\nComputedAttribute:ExtensionClass\nconstraint:python-constraint\nCrypto:pycryptodome\nCryptodome:pycryptodomex\nFSM:pexpect\nFiftyOneDegrees:51degrees_mobile_detector_v3_wrapper\nfunctional:pyfunctional\nGeoBaseMain:GeoBasesDev\nGeoBases:GeoBasesDev\nGlobals:Zope2\nHelpSys:Zope2\nIPython:ipython\nKittens:astro_kittens\nLevenshtein:python_Levenshtein\nLifetime:Zope2\nMethodObject:ExtensionClass\nMySQLdb:MySQL-python\nOFS:Zope2\nOpenGL:PyOpenGL\nOpenSSL:pyOpenSSL\nPIL:Pillow\nProducts:Zope2\nPyWCSTools:astLib\nPyxides:astro_pyxis\nQtCore:PySide\nS3:s3cmd\nSCons:pystick\nspeech_recognition:SpeechRecognition\nShared:Zope2\nSignals:Zope2\nStemmer:PyStemmer\nTesting:Zope2\nTopZooTools:topzootools\nTreeDisplay:DocumentTemplate\nWorkingWithDocumentConversion:aspose_pdf_java_for_python\nZPublisher:Zope2\nZServer:Zope2\nZTUtils:Zope2\naadb:auto_adjust_display_brightness\nabakaffe:abakaffe_cli\nabiosgaming:abiosgaming.py\nabiquo:abiquo_api\nabl:abl.cssprocessor\nabl:abl.robot\nabl:abl.util\nabl:abl.vpath\nabo:abo_generator\nabris_transform:abris\nabstract:abstract.jwrotator\nabu:abu.admin\nac_flask:AC_Flask_HipChat\nacg:anikom15\nacme:acme.dchat\nacme:acme.hello\nacted:acted.projects\naction:ActionServer\nactionbar:actionbar.panel\nactivehomed:afn\nactivepapers:ActivePapers.Py\naddress_book:address_book_lansry\nadi:adi.commons\nadi:adi.devgen\nadi:adi.fullscreen\nadi:adi.init\nadi:adi.playlist\nadi:adi.samplecontent\nadi:adi.slickstyle\nadi:adi.suite\nadi:adi.trash\nadict:aDict2\naditam:aditam.agent\naditam:aditam.core\nadiumsh:adium_sh\nadjector:AdjectorClient\nadjector:AdjectorTracPlugin\nadkit:Banner_Ad_Toolkit\nadmin_tools:django_admin_tools\nadminishcategories:adminish_categories\nadminsortable:django_admin_sortable\nadspygoogle:adspygoogle.adwords\nadvancedcaching:agtl\nadytum:Adytum_PyMonitor\naffinitic:affinitic.docpyflakes\naffinitic:affinitic.recipe.fakezope2eggs\naffinitic:affinitic.simplecookiecuttr\naffinitic:affinitic.verifyinterface\naffinitic:affinitic.zamqp\nafpy:afpy.xap\nagatesql:agate_sql\nageliaco:ageliaco.recipe.csvconfig\nagent_http:agent.http\nagora:Agora_Client\nagora:Agora_Fountain\nagora:Agora_Fragment\nagora:Agora_Planner\nagora:Agora_Service_Provider\nagoraplex:agoraplex.themes.sphinx\nagsci:agsci.blognewsletter\nagx:agx.core\nagx:agx.dev\nagx:agx.generator.buildout\nagx:agx.generator.dexterity\nagx:agx.generator.generator\nagx:agx.generator.plone\nagx:agx.generator.pyegg\nagx:agx.generator.sql\nagx:agx.generator.uml\nagx:agx.generator.zca\nagx:agx.transform.uml2fs\nagx:agx.transform.xmi2uml\naimes:aimes.bundle\naimes:aimes.skeleton\naio:aio.app\naio:aio.config\naio:aio.core\naio:aio.signals\naiohs2:aio_hs2\naioroutes:aio_routes\naios3:aio_s3\nairbrake:airbrake_flask\nairship:airship_icloud\nairship:airship_steamcloud\nairflow:apache-airflow\nakamai:edgegrid_python\nalation:alation_api\nalba_client:alba_client_python\nalburnum:alburnum_maas_client\nalchemist:alchemist.audit\nalchemist:alchemist.security\nalchemist:alchemist.traversal\nalchemist:alchemist.ui\nalchemyapi:alchemyapi_python\nalerta:alerta_server\nalexandria_upload:Alexandria_Upload_Utils\nalibaba:alibaba_python_sdk\naliyun:aliyun_python_sdk\naliyuncli:alicloudcli\naliyunsdkacs:aliyun_python_sdk_acs\naliyunsdkbatchcompute:aliyun_python_sdk_batchcompute\naliyunsdkbsn:aliyun_python_sdk_bsn\naliyunsdkbss:aliyun_python_sdk_bss\naliyunsdkcdn:aliyun_python_sdk_cdn\naliyunsdkcms:aliyun_python_sdk_cms\naliyunsdkcore:aliyun_python_sdk_core\naliyunsdkcrm:aliyun_python_sdk_crm\naliyunsdkcs:aliyun_python_sdk_cs\naliyunsdkdrds:aliyun_python_sdk_drds\naliyunsdkecs:aliyun_python_sdk_ecs\naliyunsdkess:aliyun_python_sdk_ess\naliyunsdkft:aliyun_python_sdk_ft\naliyunsdkmts:aliyun_python_sdk_mts\naliyunsdkocs:aliyun_python_sdk_ocs\naliyunsdkoms:aliyun_python_sdk_oms\naliyunsdkossadmin:aliyun_python_sdk_ossadmin\naliyunsdkr-kvstore:aliyun_python_sdk_r_kvstore\naliyunsdkram:aliyun_python_sdk_ram\naliyunsdkrds:aliyun_python_sdk_rds\naliyunsdkrisk:aliyun_python_sdk_risk\naliyunsdkros:aliyun_python_sdk_ros\naliyunsdkslb:aliyun_python_sdk_slb\naliyunsdksts:aliyun_python_sdk_sts\naliyunsdkubsms:aliyun_python_sdk_ubsms\naliyunsdkyundun:aliyun_python_sdk_yundun\nallattachments:AllAttachmentsMacro\nallocine:allocine_wrapper\nallowedsites:django_allowedsites\nalm:alm.solrindex\naloft:aloft.py\nalpacalib:alpaca\nalphabetic:alphabetic_simple\nalphasms:alphasms_client\naltered:altered.states\nalterootheme:alterootheme.busycity\nalterootheme:alterootheme.intensesimplicity\nalterootheme:alterootheme.lazydays\nalurinium:alurinium_image_processing\nalxlib:alx\namara3:amara3_iri\namara3:amara3_xml\namazon:AmazonAPIWrapper\namazon:python_amazon_simple_product_api\nambikesh1349-1:ambikesh1349_1\nambilight:AmbilightParty\namifs:amifs_core\namiorganizer:ami_organizer\namitu:amitu.lipy\namitu:amitu_putils\namitu:amitu_websocket_client\namitu:amitu_zutils\namltlearn:AMLT_learn\namocrm:amocrm_api\namqpdispatcher:amqp_dispatcher\namqpstorm:AMQP_Storm\nanalytics:analytics_python\nanalyzedir:AnalyzeDirectory\nancientsolutions:ancientsolutions_crypttools\nanderson_paginator:anderson.paginator\nandroid_clean_app:android_resource_remover\nanel_power_control:AnelPowerControl\nangus:angus_sdk_python\nannalist_root:Annalist\nannogesiclib:ANNOgesic\nansible-role-apply:ansible_role_apply\nansibledebugger:ansible_playbook_debugger\nansibledocgen:ansible_docgen\nansibleflow:ansible_flow\nansibleinventorygrapher:ansible_inventory_grapher\nansiblelint:ansible_lint\nansiblerolesgraph:ansible_roles_graph\nansibletools:ansible_tools\nanthill:anthill.exampletheme\nanthill:anthill.skinner\nanthill:anthill.tal.macrorenderer\nanthrax:AnthraxDojoFrontend\nanthrax:AnthraxHTMLInput\nanthrax:AnthraxImage\nantisphinx:antiweb\nantispoofing:antispoofing.evaluation\nantlr4:antlr4_python2_runtime\nantlr4:antlr4_python3_runtime\nantlr4:antlr4_python_alt\nanybox:anybox.buildbot.openerp\nanybox:anybox.nose.odoo\nanybox:anybox.paster.odoo\nanybox:anybox.paster.openerp\nanybox:anybox.recipe.sysdeps\nanybox:anybox.scripts.odoo\napiclient:google_api_python_client\napitools:google_apitools\napm:arpm\napp_data:django_appdata\nappconf:django_appconf\nappd:AppDynamicsDownloader\nappd:AppDynamicsREST\nappdynamics_bindeps:appdynamics_bindeps_linux_x64\nappdynamics_bindeps:appdynamics_bindeps_linux_x86\nappdynamics_bindeps:appdynamics_bindeps_osx_x64\nappdynamics_proxysupport:appdynamics_proxysupport_linux_x64\nappdynamics_proxysupport:appdynamics_proxysupport_linux_x86\nappdynamics_proxysupport:appdynamics_proxysupport_osx_x64\nappium:Appium_Python_Client\nappliapps:applibase\nappserver:broadwick\narchetypes:archetypes.kss\narchetypes:archetypes.multilingual\narchetypes:archetypes.schemaextender\narm:ansible_role_manager\narmor:armor_api\narmstrong:armstrong.apps.related_content\narmstrong:armstrong.apps.series\narmstrong:armstrong.cli\narmstrong:armstrong.core.arm_access\narmstrong:armstrong.core.arm_layout\narmstrong:armstrong.core.arm_sections\narmstrong:armstrong.core.arm_wells\narmstrong:armstrong.dev\narmstrong:armstrong.esi\narmstrong:armstrong.hatband\narmstrong:armstrong.templates.standard\narmstrong:armstrong.utils.backends\narmstrong:armstrong.utils.celery\narstecnica:arstecnica.raccoon.autobahn\narstecnica:arstecnica.sqlalchemy.async\narticle-downloader:article_downloader\nartifactcli:artifact_cli\narvados:arvados_python_client\narvados_cwl:arvados_cwl_runner\narvnodeman:arvados_node_manager\nasana_to_github:AsanaToGithub\nasciibinary:AsciiBinaryConverter\nasd:AdvancedSearchDiscovery\naskbot:askbot_tuan\naskbot:askbot_tuanpa\nasnhistory:asnhistory_redis\naspen_jinja2_renderer:aspen_jinja2\naspen_tornado_engine:aspen_tornado\nasprise_ocr_api:asprise_ocr_sdk_python_api\naspy:aspy.refactor_imports\naspy:aspy.yaml\nasterisk:asterisk_ami\nasts:add_asts\nasymmetricbase:asymmetricbase.enum\nasymmetricbase:asymmetricbase.fields\nasymmetricbase:asymmetricbase.logging\nasymmetricbase:asymmetricbase.utils\nasyncirc:asyncio_irc\nasyncmongoorm:asyncmongoorm_je\nasyncssh:asyncssh_unofficial\nathletelist:athletelistyy\natm:automium\natmosphere:atmosphere_python_client\natom:gdata\natomic:AtomicWrite\natomisator:atomisator.db\natomisator:atomisator.enhancers\natomisator:atomisator.feed\natomisator:atomisator.indexer\natomisator:atomisator.outputs\natomisator:atomisator.parser\natomisator:atomisator.readers\natreal:atreal.cmfeditions.unlocker\natreal:atreal.filestorage.common\natreal:atreal.layouts\natreal:atreal.mailservices\natreal:atreal.massloader\natreal:atreal.monkeyplone\natreal:atreal.override.albumview\natreal:atreal.richfile.preview\natreal:atreal.richfile.qualifier\natreal:atreal.usersinout\natsim:atsim.potentials\nattractsdk:attract_sdk\naudio:audio.bitstream\naudio:audio.coders\naudio:audio.filters\naudio:audio.fourier\naudio:audio.frames\naudio:audio.lp\naudio:audio.psychoacoustics\naudio:audio.quantizers\naudio:audio.shrink\naudio:audio.wave\naufrefer:auf_refer\nauslfe:auslfe.formonline.content\nauspost:auspost_apis\nauth0:auth0_python\nauth_server_client:AuthServerClient\nauthorize:AuthorizeSauce\nauthzpolicy:AuthzPolicyPlugin\nautobahn:autobahn_rce\navatar:geonode_avatar\nawebview:android_webview\nazure:azure_common\nazure:azure_mgmt_common\nazure:azure_mgmt_compute\nazure:azure_mgmt_network\nazure:azure_mgmt_nspkg\nazure:azure_mgmt_resource\nazure:azure_mgmt_storage\nazure:azure_nspkg\nazure:azure_servicebus\nazure:azure_servicemanagement_legacy\nazure:azure_storage\nb2gcommands:b2g_commands\nb2gperf:b2gperf_v1.3\nb2gperf:b2gperf_v1.4\nb2gperf:b2gperf_v2.0\nb2gperf:b2gperf_v2.1\nb2gperf:b2gperf_v2.2\nb2gpopulate:b2gpopulate_v1.3\nb2gpopulate:b2gpopulate_v1.4\nb2gpopulate:b2gpopulate_v2.0\nb2gpopulate:b2gpopulate_v2.1\nb2gpopulate:b2gpopulate_v2.2\nb3j0f:b3j0f.annotation\nb3j0f:b3j0f.aop\nb3j0f:b3j0f.conf\nb3j0f:b3j0f.sync\nb3j0f:b3j0f.utils\nbabel:Babel\nbabelglade:BabelGladeExtractor\nbackplane:backplane2_pyclient\nbackport_abcoll:backport_collections\nbackports:backports.functools_lru_cache\nbackports:backports.inspect\nbackports:backports.pbkdf2\nbackports:backports.shutil_get_terminal_size\nbackports:backports.socketpair\nbackports:backports.ssl\nbackports:backports.ssl_match_hostname\nbackports:backports.statistics\nbadgekit:badgekit_api_client\nbadlinks:BadLinksPlugin\nbael:bael.project\nbaidu:baidupy\nbalrog:buildtools\nbaluhn:baluhn_redux\nbamboo:bamboo.pantrybell\nbamboo:bamboo.scaffold\nbamboo:bamboo.setuptools_version\nbamboo:bamboo_data\nbamboo:bamboo_server\nbambu:bambu_codemirror\nbambu:bambu_dataportability\nbambu:bambu_enqueue\nbambu:bambu_faq\nbambu:bambu_ffmpeg\nbambu:bambu_grids\nbambu:bambu_international\nbambu:bambu_jwplayer\nbambu:bambu_minidetect\nbambu:bambu_navigation\nbambu:bambu_notifications\nbambu:bambu_payments\nbambu:bambu_pusher\nbambu:bambu_saas\nbambu:bambu_sites\nbanana:Bananas\nbanana:banana.maya\nbang:bangtext\nbarcode:barcode_generator\nbark:bark_ssg\nbarking_owl:BarkingOwl\nbart:bart_py\nbasalt:basalt_tasks\nbase62:base_62\nbasemap:basemap_Jim\nbash:bash_toolbelt\nbashutils:Python_Bash_Utils\nbasic_http:BasicHttp\nbasil:basil_daq\nbatchapps:azure_batch_apps\nbcrypt:python_bcrypt\nbeaker:Beaker\nbeetsplug:beets\nbegin:begins\nbenchit:bench_it\nbeproud:beproud.utils\nbfillings:burrito_fillings\nbigjob:BigJob\nbillboard:billboard.py\nbinstar_build_client:anaconda_build\nbinstar_client:anaconda_client\nbiocommons:biocommons.dev\nbirdhousebuilder:birdhousebuilder.recipe.conda\nbirdhousebuilder:birdhousebuilder.recipe.docker\nbirdhousebuilder:birdhousebuilder.recipe.redis\nbirdhousebuilder:birdhousebuilder.recipe.supervisor\nblender26-meshio:pymeshio\nbootstrap:BigJob\nborg:borg.localrole\nbow:bagofwords\nbpdb:bpython\nbqapi:bisque_api\nbraces:django_braces\nbriefscaster:briefs_caster\nbrisa_media_server/plugins:brisa_media_server_plugins\nbrkt_requests:brkt_sdk\nbroadcastlogging:broadcast_logging\nbrocadetool:brocade_tool\nbronto:bronto_python\nbrownie:Brownie\nbrowsermobproxy:browsermob_proxy\nbrubeckmysql:brubeck_mysql\nbrubeckoauth:brubeck_oauth\nbrubeckservice:brubeck_service\nbrubeckuploader:brubeck_uploader\nbs4:beautifulsoup4\nbson:pymongo\nbst:bst.pygasus.core\nbst:bst.pygasus.datamanager\nbst:bst.pygasus.demo\nbst:bst.pygasus.i18n\nbst:bst.pygasus.resources\nbst:bst.pygasus.scaffolding\nbst:bst.pygasus.security\nbst:bst.pygasus.session\nbst:bst.pygasus.wsgi\nbtable:btable_py\nbtapi:bananatag_api\nbtceapi:btce_api\nbtcebot:btce_bot\nbtsync:btsync.py\nbuck:buck.pprint\nbud:bud.nospam\nbudy:budy_api\nbuffer:buffer_alpaca\nbuggd:bug.gd\nbugle:bugle_sites\nbugspots:bug_spots\nbugzilla:python_bugzilla\nbugzscout:bugzscout_py\nbuildTools:ajk_ios_buildTools\nbuildnotifylib:BuildNotify\nbuildout:buildout.bootstrap\nbuildout:buildout.disablessl\nbuildout:buildout.dumppickedversions\nbuildout:buildout.dumppickedversions2\nbuildout:buildout.dumprequirements\nbuildout:buildout.eggnest\nbuildout:buildout.eggscleaner\nbuildout:buildout.eggsdirectories\nbuildout:buildout.eggtractor\nbuildout:buildout.extensionscripts\nbuildout:buildout.locallib\nbuildout:buildout.packagename\nbuildout:buildout.recipe.isolation\nbuildout:buildout.removeaddledeggs\nbuildout:buildout.requirements\nbuildout:buildout.sanitycheck\nbuildout:buildout.sendpickedversions\nbuildout:buildout.threatlevel\nbuildout:buildout.umask\nbuildout:buildout.variables\nbuildslave:buildbot_slave\nbuiltins:pies2overrides\nbumper:bumper_lib\nbumple:bumple_downloader\nbundesliga:bundesliga_cli\nbundlemaker:bundlemanager\nburpui:burp_ui\nbusyflow:busyflow.pivotal\nbuttercms-django:buttercms_django\nbuzz:buzz_python_client\nbvc:buildout_versions_checker\nbvggrabber:bvg_grabber\nbyond:BYONDTools\nbzETL:Bugzilla_ETL\nbzlib:bugzillatools\nbzrlib:bzr\nbzrlib:bzr_automirror\nbzrlib:bzr_bash_completion\nbzrlib:bzr_colo\nbzrlib:bzr_killtrailing\nbzrlib:bzr_pqm\nc2c:c2c.cssmin\nc2c:c2c.recipe.closurecompile\nc2c:c2c.recipe.cssmin\nc2c:c2c.recipe.jarfile\nc2c:c2c.recipe.msgfmt\nc2c:c2c.recipe.pkgversions\nc2c:c2c.sqlalchemy.rest\nc2c:c2c.versions\nc2c_recipe_facts:c2c.recipe.facts\ncabalgata:cabalgata_silla_de_montar\ncabalgata:cabalgata_zookeeper\ncache_utils:django_cache_utils\ncaptcha:django_recaptcha\ncartridge:Cartridge\ncassandra:cassandra_driver\ncassandralauncher:CassandraLauncher\ncc42:42qucc\ncerberus:Cerberus\ncfnlint:cfn-lint\nchameleon:Chameleon\ncharmtools:charm_tools\nchef:PyChef\nchip8:c8d\ncjson:python_cjson\nclassytags:django_classy_tags\ncloghandler:ConcurrentLogHandler\nclonevirtualenv:virtualenv_clone\ncloud-insight:al_cloudinsight\ncloud_admin:adminapi\ncloudservers:python_cloudservers\nclusterconsole:cerebrod\nclustersitter:cerebrod\ncms:django_cms\ncolander:ba_colander\ncolors:ansicolors\ncompile:bf_lc3\ncompose:docker_compose\ncompressor:django_compressor\nconcurrent:futures\nconfigargparse:ConfigArgParse\nconfigparser:pies2overrides\ncontracts:PyContracts\ncoordination:BigJob\ncopyreg:pies2overrides\ncorebio:weblogo\ncouchapp:Couchapp\ncouchdb:CouchDB\ncouchdbcurl:couchdb_python_curl\ncourseradownloader:coursera_dl\ncow:cow_framework\ncreole:python_creole\ncreoleparser:Creoleparser\ncrispy_forms:django_crispy_forms\ncronlog:python_crontab\ncrontab:python_crontab\nctff:tff\ncups:pycups\ncurator:elasticsearch_curator\ncurl:pycurl\ncv2:opencv-python\ndaemon:python_daemon\ndare:DARE\ndateutil:python_dateutil\ndawg:DAWG\ndeb822:python_debian\ndebian:python_debian\ndecouple:python-decouple\ndemo:webunit\ndemosongs:PySynth\ndeployer:juju_deployer\ndepot:filedepot\ndevtools:tg.devtools\ndgis:2gis\ndhtmlparser:pyDHTMLParser\ndigitalocean:python_digitalocean\ndiscord:discord.py\ndistribute_setup:ez_setup\ndistutils2:Distutils2\ndjango:Django\ndjango_hstore:amitu_hstore\ndjangobower:django_bower\ndjcelery:django_celery\ndjkombu:django_kombu\ndjorm_pgarray:djorm_ext_pgarray\ndns:dnspython\ndocgen:ansible_docgenerator\ndocker:docker_py\ndogpile:dogpile.cache\ndogpile:dogpile.core\ndogshell:dogapi\ndot_parser:pydot\ndot_parser:pydot2\ndot_parser:pydot3k\ndotenv:python-dotenv\ndpkt:dpkt_fix\ndsml:python_ldap\ndurationfield:django_durationfield\ndzclient:datazilla\neasybuild:easybuild_framework\neditor:python_editor\nelasticluster:azure_elasticluster\nelasticluster:azure_elasticluster_current\nelftools:pyelftools\nelixir:Elixir\nem:empy\nemlib:empy\nenchant:pyenchant\nencutils:cssutils\nengineio:python_engineio\nenum:enum34\nephem:pyephem\nerrorreporter:abl.errorreporter\nesplot:beaker_es_plot\nexample:adrest\nexamples:tweepy\nez_setup:pycassa\nfabfile:Fabric\nfabric:Fabric\nfaker:Faker\nfdpexpect:pexpect\nfedora:python_fedora\nfias:ailove_django_fias\nfiftyone_degrees:51degrees_mobile_detector\nfive:five.customerize\nfive:five.globalrequest\nfive:five.intid\nfive:five.localsitemanager\nfive:five.pt\nflasher:android_flasher\nflask:Flask\nflask_frozen:Frozen_Flask\nflask_redis:Flask_And_Redis\nflaskext:Flask_Bcrypt\nflvscreen:vnc2flv\nfollowit:django_followit\nforge:pyforge\nformencode:FormEncode\nformtools:django_formtools\nfourch:4ch\nfranz:allegrordf\nfreetype:freetype_py\nfrontmatter:python_frontmatter\nftpcloudfs:ftp_cloudfs\nfuntests:librabbitmq\nfuse:fusepy\nfuzzy:Fuzzy\ngabbi:tiddlyweb\ngen_3dwallet:3d_wallet_generator\ngendimen:android_gendimen\ngenshi:Genshi\ngeohash:python_geohash\ngeonode:GeoNode\ngeoserver:gsconfig\ngeraldo:Geraldo\ngetenv:django_getenv\ngeventwebsocket:gevent_websocket\ngflags:python_gflags\ngit:GitPython\ngithub:PyGithub\ngithub3:github3.py\ngitpy:git_py\nglobusonline:globusonline_transfer_api_client\ngoogle:protobuf\ngoogleapiclient:google_api_python_client\ngrace-dizmo:grace_dizmo\ngrammar:anovelmous_grammar\ngrapheneapi:graphenelib\ngreplin:scales\ngridfs:pymongo\ngrokcore:grokcore.component\ngslib:gsutil\nhamcrest:PyHamcrest\nharpy:HARPy\nhawk:PyHawk_with_a_single_extra_commit\nhaystack:django_haystack\nhgext:mercurial\nhggit:hg_git\nhglib:python_hglib\nho:pisa\nhola:amarokHola\nhoover:Hoover\nhostlist:python_hostlist\nhtml:pies2overrides\nhtmloutput:nosehtmloutput\nhttp:pies2overrides\nhvad:django_hvad\nhydra:hydra-core\ni99fix:199Fix\nigraph:python_igraph\nimdb:IMDbPY\nimpala:impyla\ninmemorystorage:ambition_inmemorystorage\nipaddress:backport_ipaddress\njaraco:jaraco.timing\njaraco:jaraco.util\njinja2:Jinja2\njiracli:jira_cli\njohnny:johnny_cache\njose:python_jose\njpgrid:python_geohash\njpiarea:python_geohash\njpype:JPype1\njpypex:JPype1\njsonfield:django_jsonfield\njstools:aino_jstools\njupyterpip:jupyter_pip\njwt:PyJWT\nkazoo:asana_kazoo\nkernprof:line_profiler\nkeyczar:python_keyczar\nkeyedcache:django_keyedcache\nkeystoneclient:python_keystoneclient\nkickstarter:kickstart\nkrbv:krbV\nkss:kss.core\nkuyruk:Kuyruk\nlangconv:AdvancedLangConv\nlava:lava_utils_interface\nlazr:lazr.authentication\nlazr:lazr.restfulclient\nlazr:lazr.uri\nldap:python_ldap\nldaplib:adpasswd\nldapurl:python_ldap\nldif:python_ldap\nlib2or3:2or3\nlib3to2:3to2\nlibaito:Aito\nlibbe:bugs_everywhere\nlibbucket:bucket\nlibcloud:apache_libcloud\nlibfuturize:future\nlibgenerateDS:generateDS\nlibmproxy:mitmproxy\nlibpasteurize:future\nlibsvm:7lk_ocr_deploy\nlisa:lisa_server\nloadingandsaving:aspose_words_java_for_python\nlocust:locustio\nlogbook:Logbook\nlogentries:buildbot_status_logentries\nlogilab:logilab_mtconverter\nmachineconsole:cerebrod\nmachinesitter:cerebrod\nmagic:python_magic\nmako:Mako\nmanifestparser:ManifestDestiny\nmarionette:marionette_client\nmarkdown:Markdown\nmarks:pytest_marks\nmarkupsafe:MarkupSafe\nmavnative:pymavlink\nmemcache:python_memcached\nmesonpy:meson-python\nmetacomm:AllPairs\nmetaphone:Metafone\nmetlog:metlog_py\nmezzanine:Mezzanine\nmigrate:sqlalchemy_migrate\nmimeparse:python_mimeparse\nminitage:minitage.paste\nminitage:minitage.recipe.common\nmissingdrawables:android_missingdrawables\nmixfiles:PySynth\nmkfreq:PySynth\nmkrst_themes:2lazy2rest\nmockredis:mockredispy\nmodargs:python_modargs\nmodel_utils:django_model_utils\nmodels:asposebarcode\nmodels:asposestorage\nmoksha:moksha.common\nmoksha:moksha.hub\nmoksha:moksha.wsgi\nmoneyed:py_moneyed\nmongoalchemy:MongoAlchemy\nmonthdelta:MonthDelta\nmopidy:Mopidy\nmopytools:MoPyTools\nmptt:django_mptt\nmpv:python-mpv\nmrbob:mr.bob\nmsgpack:msgpack_python\nmutations:aino_mutations\nmws:amazon_mws\nmysql:mysql_connector_repackaged\nnative_tags:django_native_tags\nndg:ndg_httpsclient\nnereid:trytond_nereid\nnested:baojinhuan\nnester:Amauri\nnester:abofly\nnester:bssm_pythonSig\nnovaclient:python_novaclient\noauth2_provider:alauda_django_oauth\noauth2client:oauth2client\nodf:odfpy\nometa:Parsley\nopenid:python_openid\nopensearchsdk:ali_opensearch\noslo_i18n:oslo.i18n\noslo_serialization:oslo.serialization\noslo_utils:oslo.utils\noss:alioss\noss:aliyun_python_sdk_oss\noss:aliyunoss\noutput:cashew\nowslib:OWSLib\npacketdiag:nwdiag\npaho:paho_mqtt\npaintstore:django_paintstore\nparler:django_parler\npast:future\npaste:PasteScript\npath:forked_path\npath:path.py\npatricia:patricia-trie\npaver:Paver\npeak:ProxyTypes\npicasso:anderson.picasso\npicklefield:django-picklefield\npilot:BigJob\npivotal:pivotal_py\nplay_wav:PySynth\nplayhouse:peewee\nplivoxml:plivo\nplone:plone.alterego\nplone:plone.api\nplone:plone.app.blob\nplone:plone.app.collection\nplone:plone.app.content\nplone:plone.app.contentlisting\nplone:plone.app.contentmenu\nplone:plone.app.contentrules\nplone:plone.app.contenttypes\nplone:plone.app.controlpanel\nplone:plone.app.customerize\nplone:plone.app.dexterity\nplone:plone.app.discussion\nplone:plone.app.event\nplone:plone.app.folder\nplone:plone.app.i18n\nplone:plone.app.imaging\nplone:plone.app.intid\nplone:plone.app.layout\nplone:plone.app.linkintegrity\nplone:plone.app.locales\nplone:plone.app.lockingbehavior\nplone:plone.app.multilingual\nplone:plone.app.portlets\nplone:plone.app.querystring\nplone:plone.app.redirector\nplone:plone.app.registry\nplone:plone.app.relationfield\nplone:plone.app.textfield\nplone:plone.app.theming\nplone:plone.app.users\nplone:plone.app.uuid\nplone:plone.app.versioningbehavior\nplone:plone.app.viewletmanager\nplone:plone.app.vocabularies\nplone:plone.app.widgets\nplone:plone.app.workflow\nplone:plone.app.z3cform\nplone:plone.autoform\nplone:plone.batching\nplone:plone.behavior\nplone:plone.browserlayer\nplone:plone.caching\nplone:plone.contentrules\nplone:plone.dexterity\nplone:plone.event\nplone:plone.folder\nplone:plone.formwidget.namedfile\nplone:plone.formwidget.recurrence\nplone:plone.i18n\nplone:plone.indexer\nplone:plone.intelligenttext\nplone:plone.keyring\nplone:plone.locking\nplone:plone.memoize\nplone:plone.namedfile\nplone:plone.outputfilters\nplone:plone.portlet.collection\nplone:plone.portlet.static\nplone:plone.portlets\nplone:plone.protect\nplone:plone.recipe.zope2install\nplone:plone.registry\nplone:plone.resource\nplone:plone.resourceeditor\nplone:plone.rfc822\nplone:plone.scale\nplone:plone.schema\nplone:plone.schemaeditor\nplone:plone.session\nplone:plone.stringinterp\nplone:plone.subrequest\nplone:plone.supermodel\nplone:plone.synchronize\nplone:plone.theme\nplone:plone.transformchain\nplone:plone.uuid\nplone:plone.z3cform\nplonetheme:plonetheme.barceloneta\npng:pypng\npolymorphic:django_polymorphic\npostmark:python_postmark\npowerprompt:bash_powerprompt\nprefetch:django-prefetch\nprintList:AndrewList\nprogressbar:progressbar2\nprogressbar:progressbar33\nprovider:django_oauth2_provider\npuresasl:pure_sasl\npwiz:peewee\npxssh:pexpect\npy7zlib:pylzma\npyAMI:pyAMI_core\npyarsespyder:arsespyder\npyasdf:asdf\npyaspell:aspell_python_ctypes\npybb:pybbm\npybloomfilter:pybloomfiltermmap\npyccuracy:Pyccuracy\npyck:PyCK\npycrfsuite:python_crfsuite\npydispatch:PyDispatcher\npygeolib:pygeocoder\npygments:Pygments\npygraph:python_graph_core\npyjon:pyjon.utils\npyjsonrpc:python_jsonrpc\npykka:Pykka\npylogo:PyLogo\npylons:adhocracy_Pylons\npymagic:libmagic\npymycraawler:Amalwebcrawler\npynma:AbakaffeNotifier\npyphen:Pyphen\npyrimaa:AEI\npysideuic:PySide\npysqlite2:adhocracy_pysqlite\npysqlite2:pysqlite\npysynth_b:PySynth\npysynth_beeper:PySynth\npysynth_c:PySynth\npysynth_d:PySynth\npysynth_e:PySynth\npysynth_p:PySynth\npysynth_s:PySynth\npysynth_samp:PySynth\npythongettext:python_gettext\npythonjsonlogger:python_json_logger\npyutilib:PyUtilib\npywintypes:pywin32\npyximport:Cython\nqs:qserve\nquadtree:python_geohash\nqueue:future\nquickapi:django_quickapi\nquickunit:nose_quickunit\nrackdiag:nwdiag\nradical:radical.pilot\nradical:radical.utils\nreStructuredText:Zope2\nreadability:readability_lxml\nreadline:gnureadline\nrecaptcha_works:django_recaptcha_works\nrelstorage:RelStorage\nreportapi:django_reportapi\nreprlib:pies2overrides\nrequests:Requests\nrequirements:requirements_parser\nrest_framework:djangorestframework\nrestclient:py_restclient\nretrial:async_retrial\nreversion:django_reversion\nrhaptos2:rhaptos2.common\nrobot:robotframework\nrobots:django_robots\nrosdep2:rosdep\nrsbackends:RSFile\nruamel:ruamel.base\ns2repoze:pysaml2\nsaga:saga_python\nsaml2:pysaml2\nsamtranslator:aws-sam-translator\nsass:libsass\nsassc:libsass\nsasstests:libsass\nsassutils:libsass\nsayhi:alex_sayhi\nscalrtools:scalr\nscikits:scikits.talkbox\nscratch:scratchpy\nscreen:pexpect\nscss:pyScss\nsdict:dict.sorted\nsdk_updater:android_sdk_updater\nsekizai:django_sekizai\nsendfile:pysendfile\nserial:pyserial\nsetuputils:astor\nshapefile:pyshp\nshapely:Shapely\nsika:ahonya_sika\nsingleton:pysingleton\nsittercommon:cerebrod\nskbio:scikit_bio\nsklearn:scikit_learn\nslack:slackclient\nslugify:unicode_slugify\nslugify:python-slugify\nsmarkets:smk_python_sdk\nsnappy:ctypes_snappy\nsocketio:python-socketio\nsocketserver:pies2overrides\nsockjs:sockjs_tornado\nsocks:SocksiPy_branch\nsolr:solrpy\nsolution:Solution\nsorl:sorl_thumbnail\nsouth:South\nsphinx:Sphinx\nsphinx_pypi_upload:ATD_document\nsphinxcontrib:sphinxcontrib_programoutput\nsqlalchemy:SQLAlchemy\nsrc:atlas\nsrc:auto_mix_prep\nstats_toolkit:bw_stats_toolkit\nstatsd:dogstatsd_python\nstdnum:python_stdnum\nstoneagehtml:StoneageHTML\nstorages:django_storages\nstubout:mox\nsuds:suds_jurko\nswiftclient:python_swiftclient\nsx:pisa\ntabix:pytabix\ntaggit:django_taggit\ntasksitter:cerebrod\ntastypie:django_tastypie\nteamcity:teamcity_messages\ntelebot:pyTelegramBotAPI\ntelegram:python-telegram-bot\ntempita:Tempita\ntenjin:Tenjin\ntermstyle:python_termstyle\ntest:pytabix\nthclient:treeherder_client\nthreaded_multihost:django_threaded_multihost\nthreecolor:3color_Press\ntidylib:pytidylib\ntkinter:future\ntlw:3lwg\ntoredis:toredis_fork\ntornadoredis:tornado_redis\ntower_cli:ansible_tower_cli\ntrac:Trac\ntracopt:Trac\ntranslation_helper:android_localization_helper\ntreebeard:django_treebeard\ntrytond:trytond_stock\ntsuru:tsuru_circus\ntvrage:python_tvrage\ntw2:tw2.core\ntw2:tw2.d3\ntw2:tw2.dynforms\ntw2:tw2.excanvas\ntw2:tw2.forms\ntw2:tw2.jit\ntw2:tw2.jqplugins.flot\ntw2:tw2.jqplugins.gritter\ntw2:tw2.jqplugins.ui\ntw2:tw2.jquery\ntw2:tw2.sqla\ntwisted:Twisted\ntwitter:python_twitter\ntxclib:transifex_client\nu115:115wangpan\nunidecode:Unidecode\nuniverse:ansible_universe\nusb:pyusb\nuseless:useless.pipes\nuserpass:auth_userpass\nutilities:automakesetup.py\nutkik:aino_utkik\nuwsgidecorators:uWSGI\nvalentine:ab\nvalidate:configobj\nversion:chartio\nvirtualenvapi:ar_virtualenv_api\nvyatta:brocade_plugins\nwebdav:Zope2\nweblogolib:weblogo\nwebob:WebOb\nwebsocket:websocket_client\nwebtest:WebTest\nwerkzeug:Werkzeug\nwheezy:wheezy.caching\nwheezy:wheezy.core\nwheezy:wheezy.http\nwikklytext:tiddlywebwiki\nwinreg:future\nwinrm:pywinrm\nworkflow:Alfred_Workflow\nwsmeext:WSME\nwtforms:WTForms\nwtfpeewee:wtf_peewee\nxdg:pyxdg\nxdist:pytest_xdist\nxmldsig:pysaml2\nxmlenc:pysaml2\nxmlrpc:pies2overrides\nxmpp:xmpppy\nxstatic:XStatic_Font_Awesome\nxstatic:XStatic_jQuery\nxstatic:XStatic_jquery_ui\nyaml:PyYAML\nz3c:z3c.autoinclude\nz3c:z3c.caching\nz3c:z3c.form\nz3c:z3c.formwidget.query\nz3c:z3c.objpath\nz3c:z3c.pt\nz3c:z3c.relationfield\nz3c:z3c.traverser\nz3c:z3c.zcmlhook\nzmq:pyzmq\nzopyx:zopyx.textindexng3\n"
  },
  {
    "path": "pipreqs/pipreqs.py",
    "content": "#!/usr/bin/env python\n\"\"\"pipreqs - Generate pip requirements.txt file based on imports\n\nUsage:\n    pipreqs [options] [<path>]\n\nArguments:\n    <path>                The path to the directory containing the application\n                          files for which a requirements file should be\n                          generated (defaults to the current working\n                          directory).\n\nOptions:\n    --use-local           Use ONLY local package info instead of querying PyPI.\n    --pypi-server <url>   Use custom PyPi server.\n    --proxy <url>         Use Proxy, parameter will be passed to requests\n                          library. You can also just set the environments\n                          parameter in your terminal:\n                          $ export HTTP_PROXY=\"http://10.10.1.10:3128\"\n                          $ export HTTPS_PROXY=\"https://10.10.1.10:1080\"\n    --debug               Print debug information\n    --ignore <dirs>...    Ignore extra directories, each separated by a comma\n    --ignore-errors       Ignore errors while scanning files\n    --no-follow-links     Do not follow symbolic links in the project\n    --encoding <charset>  Use encoding parameter for file open\n    --savepath <file>     Save the list of requirements in the given file\n    --print               Output the list of requirements in the standard\n                          output\n    --force               Overwrite existing requirements.txt\n    --diff <file>         Compare modules in requirements.txt to project\n                          imports\n    --clean <file>        Clean up requirements.txt by removing modules\n                          that are not imported in project\n    --mode <scheme>       Enables dynamic versioning with <compat>,\n                          <gt> or <no-pin> schemes.\n                          <compat> | e.g. Flask~=1.1.2\n                          <gt>     | e.g. Flask>=1.1.2\n                          <no-pin> | e.g. Flask\n    --scan-notebooks      Look for imports in jupyter notebook files.\n\"\"\"\nfrom contextlib import contextmanager\nimport os\nimport sys\nimport re\nimport logging\nimport ast\nimport traceback\nfrom docopt import docopt\nimport requests\nfrom yarg import json2package\nfrom yarg.exceptions import HTTPError\n\nfrom pipreqs import __version__\n\nREGEXP = [re.compile(r\"^import (.+)$\"), re.compile(r\"^from ((?!\\.+).*?) import (?:.*)$\")]\nDEFAULT_EXTENSIONS = [\".py\", \".pyw\"]\n\nscan_noteboooks = False\n\n\nclass NbconvertNotInstalled(ImportError):\n    default_message = (\n        \"In order to scan jupyter notebooks, please install the nbconvert and ipython libraries\"\n    )\n\n    def __init__(self, message=default_message):\n        super().__init__(message)\n\n\n@contextmanager\ndef _open(filename=None, mode=\"r\"):\n    \"\"\"Open a file or ``sys.stdout`` depending on the provided filename.\n\n    Args:\n        filename (str): The path to the file that should be opened. If\n            ``None`` or ``'-'``, ``sys.stdout`` or ``sys.stdin`` is\n            returned depending on the desired mode. Defaults to ``None``.\n        mode (str): The mode that should be used to open the file.\n\n    Yields:\n        A file handle.\n\n    \"\"\"\n    if not filename or filename == \"-\":\n        if not mode or \"r\" in mode:\n            file = sys.stdin\n        elif \"w\" in mode:\n            file = sys.stdout\n        else:\n            raise ValueError(\"Invalid mode for file: {}\".format(mode))\n    else:\n        file = open(filename, mode)\n\n    try:\n        yield file\n    finally:\n        if file not in (sys.stdin, sys.stdout):\n            file.close()\n\n\ndef get_all_imports(path, encoding=\"utf-8\", extra_ignore_dirs=None, follow_links=True, ignore_errors=False):\n    imports = set()\n    raw_imports = set()\n    candidates = []\n    ignore_dirs = [\n        \".hg\",\n        \".svn\",\n        \".git\",\n        \".tox\",\n        \"__pycache__\",\n        \"env\",\n        \"venv\",\n        \".venv\",\n        \".ipynb_checkpoints\",\n    ]\n\n    if extra_ignore_dirs:\n        ignore_dirs_parsed = []\n        for e in extra_ignore_dirs:\n            ignore_dirs_parsed.append(os.path.basename(os.path.realpath(e)))\n        ignore_dirs.extend(ignore_dirs_parsed)\n\n    extensions = get_file_extensions()\n\n    walk = os.walk(path, followlinks=follow_links)\n    for root, dirs, files in walk:\n        dirs[:] = [d for d in dirs if d not in ignore_dirs]\n\n        candidates.append(os.path.basename(root))\n        py_files = [file for file in files if file_ext_is_allowed(file, DEFAULT_EXTENSIONS)]\n        candidates.extend([os.path.splitext(filename)[0] for filename in py_files])\n\n        files = [fn for fn in files if file_ext_is_allowed(fn, extensions)]\n\n        for file_name in files:\n            file_name = os.path.join(root, file_name)\n\n            try:\n                contents = read_file_content(file_name, encoding)\n                tree = ast.parse(contents)\n                for node in ast.walk(tree):\n                    if isinstance(node, ast.Import):\n                        for subnode in node.names:\n                            raw_imports.add(subnode.name)\n                    elif isinstance(node, ast.ImportFrom):\n                        raw_imports.add(node.module)\n            except Exception as exc:\n                if ignore_errors:\n                    traceback.print_exc()\n                    logging.warning(\"Failed on file: %s\" % file_name)\n                    continue\n                else:\n                    logging.error(\"Failed on file: %s\" % file_name)\n                    raise exc\n\n    # Clean up imports\n    for name in [n for n in raw_imports if n]:\n        # Sanity check: Name could have been None if the import\n        # statement was as ``from . import X``\n        # Cleanup: We only want to first part of the import.\n        # Ex: from django.conf --> django.conf. But we only want django\n        # as an import.\n        cleaned_name, _, _ = name.partition(\".\")\n        imports.add(cleaned_name)\n\n    packages = imports - (set(candidates) & imports)\n    logging.debug(\"Found packages: {0}\".format(packages))\n\n    with open(join(\"stdlib\"), \"r\") as f:\n        data = {x.strip() for x in f}\n\n    return list(packages - data)\n\n\ndef get_file_extensions():\n    return DEFAULT_EXTENSIONS + [\".ipynb\"] if scan_noteboooks else DEFAULT_EXTENSIONS\n\n\ndef read_file_content(file_name: str, encoding=\"utf-8\"):\n    if file_ext_is_allowed(file_name, DEFAULT_EXTENSIONS):\n        with open(file_name, \"r\", encoding=encoding) as f:\n            contents = f.read()\n    elif file_ext_is_allowed(file_name, [\".ipynb\"]) and scan_noteboooks:\n        contents = ipynb_2_py(file_name, encoding=encoding)\n    return contents\n\n\ndef file_ext_is_allowed(file_name, acceptable):\n    return os.path.splitext(file_name)[1] in acceptable\n\n\ndef ipynb_2_py(file_name, encoding=\"utf-8\"):\n    \"\"\"\n\n    Args:\n        file_name (str): notebook file path to parse as python script\n        encoding  (str): encoding of file\n\n    Returns:\n        str: parsed string\n\n    \"\"\"\n    exporter = PythonExporter()\n    (body, _) = exporter.from_filename(file_name)\n\n    return body.encode(encoding)\n\n\ndef generate_requirements_file(path, imports, symbol):\n    with _open(path, \"w\") as out_file:\n        logging.debug(\n            \"Writing {num} requirements: {imports} to {file}\".format(\n                num=len(imports), file=path, imports=\", \".join([x[\"name\"] for x in imports])\n            )\n        )\n        fmt = \"{name}\" + symbol + \"{version}\"\n        out_file.write(\n            \"\\n\".join(\n                fmt.format(**item) if item[\"version\"] else \"{name}\".format(**item)\n                for item in imports\n            )\n            + \"\\n\"\n        )\n\n\ndef output_requirements(imports, symbol):\n    generate_requirements_file(\"-\", imports, symbol)\n\n\ndef get_imports_info(imports, pypi_server=\"https://pypi.python.org/pypi/\", proxy=None):\n    result = []\n\n    for item in imports:\n        try:\n            logging.warning(\n                'Import named \"%s\" not found locally. ' \"Trying to resolve it at the PyPI server.\",\n                item,\n            )\n            response = requests.get(\"{0}{1}/json\".format(pypi_server, item), proxies=proxy)\n            if response.status_code == 200:\n                if hasattr(response.content, \"decode\"):\n                    data = json2package(response.content.decode())\n                else:\n                    data = json2package(response.content)\n            elif response.status_code >= 300:\n                raise HTTPError(status_code=response.status_code, reason=response.reason)\n        except HTTPError:\n            logging.warning('Package \"%s\" does not exist or network problems', item)\n            continue\n        logging.warning(\n            'Import named \"%s\" was resolved to \"%s:%s\" package (%s).\\n'\n            \"Please, verify manually the final list of requirements.txt \"\n            \"to avoid possible dependency confusions.\",\n            item,\n            data.name,\n            data.latest_release_id,\n            data.pypi_url,\n        )\n        result.append({\"name\": item, \"version\": data.latest_release_id})\n    return result\n\n\ndef get_locally_installed_packages(encoding=\"utf-8\"):\n    packages = []\n    ignore = [\"tests\", \"_tests\", \"egg\", \"EGG\", \"info\"]\n    for path in sys.path:\n        for root, dirs, files in os.walk(path):\n            for item in files:\n                if \"top_level\" in item:\n                    item = os.path.join(root, item)\n                    with open(item, \"r\", encoding=encoding) as f:\n                        package = root.split(os.sep)[-1].split(\"-\")\n                        try:\n                            top_level_modules = f.read().strip().split(\"\\n\")\n                        except:  # NOQA\n                            # TODO: What errors do we intend to suppress here?\n                            continue\n\n                        # filter off explicitly ignored top-level modules\n                        # such as test, egg, etc.\n                        filtered_top_level_modules = list()\n\n                        for module in top_level_modules:\n                            if (module not in ignore) and (package[0] not in ignore):\n                                # append exported top level modules to the list\n                                filtered_top_level_modules.append(module)\n\n                        version = None\n                        if len(package) > 1:\n                            version = package[1].replace(\".dist\", \"\").replace(\".egg\", \"\")\n\n                        # append package: top_level_modules pairs\n                        # instead of top_level_module: package pairs\n                        packages.append(\n                            {\n                                \"name\": package[0],\n                                \"version\": version,\n                                \"exports\": filtered_top_level_modules,\n                            }\n                        )\n    return packages\n\n\ndef get_import_local(imports, encoding=\"utf-8\"):\n    local = get_locally_installed_packages()\n    result = []\n    for item in imports:\n        # search through local packages\n        for package in local:\n            # if candidate import name matches export name\n            # or candidate import name equals to the package name\n            # append it to the result\n            if item in package[\"exports\"] or item == package[\"name\"]:\n                result.append(package)\n\n    # removing duplicates of package/version\n    # had to use second method instead of the previous one,\n    # because we have a list in the 'exports' field\n    # https://stackoverflow.com/questions/9427163/remove-duplicate-dict-in-list-in-python\n    result_unique = [i for n, i in enumerate(result) if i not in result[n + 1:]]\n\n    return result_unique\n\n\ndef get_pkg_names(pkgs):\n    \"\"\"Get PyPI package names from a list of imports.\n\n    Args:\n        pkgs (List[str]): List of import names.\n\n    Returns:\n        List[str]: The corresponding PyPI package names.\n\n    \"\"\"\n    result = set()\n    with open(join(\"mapping\"), \"r\") as f:\n        data = dict(x.strip().split(\":\") for x in f)\n    for pkg in pkgs:\n        # Look up the mapped requirement. If a mapping isn't found,\n        # simply use the package name.\n        result.add(data.get(pkg, pkg))\n    # Return a sorted list for backward compatibility.\n    return sorted(result, key=lambda s: s.lower())\n\n\ndef get_name_without_alias(name):\n    if \"import \" in name:\n        match = REGEXP[0].match(name.strip())\n        if match:\n            name = match.groups(0)[0]\n    return name.partition(\" as \")[0].partition(\".\")[0].strip()\n\n\ndef join(f):\n    return os.path.join(os.path.dirname(__file__), f)\n\n\ndef parse_requirements(file_):\n    \"\"\"Parse a requirements formatted file.\n\n    Traverse a string until a delimiter is detected, then split at said\n    delimiter, get module name by element index, create a dict consisting of\n    module:version, and add dict to list of parsed modules.\n\n    If file ´file_´ is not found in the system, the program will print a\n    helpful message and end its execution immediately.\n\n    Args:\n        file_: File to parse.\n\n    Raises:\n        OSerror: If there's any issues accessing the file.\n\n    Returns:\n        list: The contents of the file, excluding comments.\n    \"\"\"\n    modules = []\n    # For the dependency identifier specification, see\n    # https://www.python.org/dev/peps/pep-0508/#complete-grammar\n    delim = [\"<\", \">\", \"=\", \"!\", \"~\"]\n\n    try:\n        f = open(file_, \"r\")\n    except FileNotFoundError:\n        print(f\"File {file_} was not found. Please, fix it and run again.\")\n        sys.exit(1)\n    except OSError as error:\n        logging.error(f\"There was an error opening the file {file_}: {str(error)}\")\n        raise error\n    else:\n        try:\n            data = [x.strip() for x in f.readlines() if x != \"\\n\"]\n        finally:\n            f.close()\n\n    data = [x for x in data if x[0].isalpha()]\n\n    for x in data:\n        # Check for modules w/o a specifier.\n        if not any([y in x for y in delim]):\n            modules.append({\"name\": x, \"version\": None})\n        for y in x:\n            if y in delim:\n                module = x.split(y)\n                module_name = module[0]\n                module_version = module[-1].replace(\"=\", \"\")\n                module = {\"name\": module_name, \"version\": module_version}\n\n                if module not in modules:\n                    modules.append(module)\n\n                break\n\n    return modules\n\n\ndef compare_modules(file_, imports):\n    \"\"\"Compare modules in a file to imported modules in a project.\n\n    Args:\n        file_ (str): File to parse for modules to be compared.\n        imports (tuple): Modules being imported in the project.\n\n    Returns:\n        set: The modules not imported in the project, but do exist in the\n            specified file.\n    \"\"\"\n    modules = parse_requirements(file_)\n\n    imports = [imports[i][\"name\"] for i in range(len(imports))]\n    modules = [modules[i][\"name\"] for i in range(len(modules))]\n    modules_not_imported = set(modules) - set(imports)\n\n    return modules_not_imported\n\n\ndef diff(file_, imports):\n    \"\"\"Display the difference between modules in a file and imported modules.\"\"\"  # NOQA\n    modules_not_imported = compare_modules(file_, imports)\n\n    logging.info(\n        \"The following modules are in {} but do not seem to be imported: \"\n        \"{}\".format(file_, \", \".join(x for x in modules_not_imported))\n    )\n\n\ndef clean(file_, imports):\n    \"\"\"Remove modules that aren't imported in project from file.\"\"\"\n    modules_not_imported = compare_modules(file_, imports)\n\n    if len(modules_not_imported) == 0:\n        logging.info(\"Nothing to clean in \" + file_)\n        return\n\n    re_remove = re.compile(\"|\".join(modules_not_imported))\n    to_write = []\n\n    try:\n        f = open(file_, \"r+\")\n    except OSError:\n        logging.error(\"Failed on file: {}\".format(file_))\n        raise\n    else:\n        try:\n            for i in f.readlines():\n                if re_remove.match(i) is None:\n                    to_write.append(i)\n            f.seek(0)\n            f.truncate()\n\n            for i in to_write:\n                f.write(i)\n        finally:\n            f.close()\n\n    logging.info(\"Successfully cleaned up requirements in \" + file_)\n\n\ndef dynamic_versioning(scheme, imports):\n    \"\"\"Enables dynamic versioning with <compat>, <gt> or <non-pin> schemes.\"\"\"\n    if scheme == \"no-pin\":\n        imports = [{\"name\": item[\"name\"], \"version\": \"\"} for item in imports]\n        symbol = \"\"\n    elif scheme == \"gt\":\n        symbol = \">=\"\n    elif scheme == \"compat\":\n        symbol = \"~=\"\n    return imports, symbol\n\n\ndef handle_scan_noteboooks():\n    if not scan_noteboooks:\n        logging.info(\"Not scanning for jupyter notebooks.\")\n        return\n\n    try:\n        global PythonExporter\n        from nbconvert import PythonExporter\n    except ImportError:\n        raise NbconvertNotInstalled()\n\n\ndef init(args):\n    global scan_noteboooks\n    encoding = args.get(\"--encoding\")\n    extra_ignore_dirs = args.get(\"--ignore\")\n    follow_links = not args.get(\"--no-follow-links\")\n    ignore_errors = args.get(\"--ignore-errors\")\n\n    scan_noteboooks = args.get(\"--scan-notebooks\", False)\n    handle_scan_noteboooks()\n\n    input_path = args[\"<path>\"]\n\n    if encoding is None:\n        encoding = \"utf-8\"\n    if input_path is None:\n        input_path = os.path.abspath(os.curdir)\n\n    if extra_ignore_dirs:\n        extra_ignore_dirs = extra_ignore_dirs.split(\",\")\n\n    path = (\n        args[\"--savepath\"] if args[\"--savepath\"] else os.path.join(input_path, \"requirements.txt\")\n    )\n    if (\n        not args[\"--print\"]\n        and not args[\"--savepath\"]\n        and not args[\"--force\"]\n        and os.path.exists(path)\n    ):\n        logging.warning(\"requirements.txt already exists, \" \"use --force to overwrite it\")\n        return\n\n    candidates = get_all_imports(\n        input_path,\n        encoding=encoding,\n        extra_ignore_dirs=extra_ignore_dirs,\n        follow_links=follow_links,\n        ignore_errors=ignore_errors,\n    )\n    candidates = get_pkg_names(candidates)\n    logging.debug(\"Found imports: \" + \", \".join(candidates))\n    pypi_server = \"https://pypi.python.org/pypi/\"\n    proxy = None\n    if args[\"--pypi-server\"]:\n        pypi_server = args[\"--pypi-server\"]\n\n    if args[\"--proxy\"]:\n        proxy = {\"http\": args[\"--proxy\"], \"https\": args[\"--proxy\"]}\n\n    if args[\"--use-local\"]:\n        logging.debug(\"Getting package information ONLY from local installation.\")\n        imports = get_import_local(candidates, encoding=encoding)\n    else:\n        logging.debug(\"Getting packages information from Local/PyPI\")\n        local = get_import_local(candidates, encoding=encoding)\n\n        # check if candidate name is found in\n        # the list of exported modules, installed locally\n        # and the package name is not in the list of local module names\n        # it add to difference\n        difference = [\n            x\n            for x in candidates\n            if\n            # aggregate all export lists into one\n            # flatten the list\n            # check if candidate is in exports\n            x.lower() not in [y for x in local for y in x[\"exports\"]] and\n            # check if candidate is package names\n            x.lower() not in [x[\"name\"] for x in local]\n        ]\n\n        imports = local + get_imports_info(difference, proxy=proxy, pypi_server=pypi_server)\n    # sort imports based on lowercase name of package, similar to `pip freeze`.\n    imports = sorted(imports, key=lambda x: x[\"name\"].lower())\n\n    if args[\"--diff\"]:\n        diff(args[\"--diff\"], imports)\n        return\n\n    if args[\"--clean\"]:\n        clean(args[\"--clean\"], imports)\n        return\n\n    if args[\"--mode\"]:\n        scheme = args.get(\"--mode\")\n        if scheme in [\"compat\", \"gt\", \"no-pin\"]:\n            imports, symbol = dynamic_versioning(scheme, imports)\n        else:\n            raise ValueError(\n                \"Invalid argument for mode flag, \" \"use 'compat', 'gt' or 'no-pin' instead\"\n            )\n    else:\n        symbol = \"==\"\n\n    if args[\"--print\"]:\n        output_requirements(imports, symbol)\n        logging.info(\"Successfully output requirements\")\n    else:\n        generate_requirements_file(path, imports, symbol)\n        logging.info(\"Successfully saved requirements file in \" + path)\n\n\ndef main():  # pragma: no cover\n    args = docopt(__doc__, version=__version__)\n    log_level = logging.DEBUG if args[\"--debug\"] else logging.INFO\n    logging.basicConfig(level=log_level, format=\"%(levelname)s: %(message)s\")\n\n    try:\n        init(args)\n    except KeyboardInterrupt:\n        sys.exit(0)\n\n\nif __name__ == \"__main__\":\n    main()  # pragma: no cover\n"
  },
  {
    "path": "pipreqs/stdlib",
    "content": "_abc\nabc\naifc\n_aix_support\nantigravity\nargparse\narray\n_ast\nast\nasynchat\n_asyncio\nasyncio\nasyncio.base_events\nasyncio.base_futures\nasyncio.base_subprocess\nasyncio.base_tasks\nasyncio.constants\nasyncio.coroutines\nasyncio.events\nasyncio.exceptions\nasyncio.format_helpers\nasyncio.futures\nasyncio.locks\nasyncio.log\nasyncio.__main__\nasyncio.proactor_events\nasyncio.protocols\nasyncio.queues\nasyncio.runners\nasyncio.selector_events\nasyncio.sslproto\nasyncio.staggered\nasyncio.streams\nasyncio.subprocess\nasyncio.tasks\nasyncio.threads\nasyncio.transports\nasyncio.trsock\nasyncio.unix_events\nasyncio.windows_events\nasyncio.windows_utils\nasyncore\natexit\naudioop\nbase64\nbdb\nbinascii\nbinhex\n_bisect\nbisect\n_blake2\n_bootlocale\n_bootsubprocess\nbuiltins\n_bz2\nbz2\ncalendar\ncgi\ncgitb\nchunk\ncmath\ncmd\ncode\n_codecs\ncodecs\n_codecs_cn\n_codecs_hk\n_codecs_iso2022\n_codecs_jp\n_codecs_kr\n_codecs_tw\ncodeop\n_collections\ncollections\n_collections_abc\ncollections.abc\ncolorsys\n_compat_pickle\ncompileall\n_compression\nconcurrent\nconcurrent.futures\nconcurrent.futures._base\nconcurrent.futures.process\nconcurrent.futures.thread\nconfigparser\ncontextlib\n_contextvars\ncontextvars\ncopy\ncopyreg\ncProfile\n_crypt\ncrypt\n_csv\ncsv\n_ctypes\nctypes\nctypes._aix\nctypes._endian\nctypes.macholib\nctypes.macholib.dyld\nctypes.macholib.dylib\nctypes.macholib.framework\n_ctypes_test\nctypes.test\nctypes.test.__main__\nctypes.test.test_anon\nctypes.test.test_array_in_pointer\nctypes.test.test_arrays\nctypes.test.test_as_parameter\nctypes.test.test_bitfields\nctypes.test.test_buffers\nctypes.test.test_bytes\nctypes.test.test_byteswap\nctypes.test.test_callbacks\nctypes.test.test_cast\nctypes.test.test_cfuncs\nctypes.test.test_checkretval\nctypes.test.test_delattr\nctypes.test.test_errno\nctypes.test.test_find\nctypes.test.test_frombuffer\nctypes.test.test_funcptr\nctypes.test.test_functions\nctypes.test.test_incomplete\nctypes.test.test_init\nctypes.test.test_internals\nctypes.test.test_keeprefs\nctypes.test.test_libc\nctypes.test.test_loading\nctypes.test.test_macholib\nctypes.test.test_memfunctions\nctypes.test.test_numbers\nctypes.test.test_objects\nctypes.test.test_parameters\nctypes.test.test_pep3118\nctypes.test.test_pickling\nctypes.test.test_pointers\nctypes.test.test_prototypes\nctypes.test.test_python_api\nctypes.test.test_random_things\nctypes.test.test_refcounts\nctypes.test.test_repr\nctypes.test.test_returnfuncptrs\nctypes.test.test_simplesubclasses\nctypes.test.test_sizes\nctypes.test.test_slicing\nctypes.test.test_stringptr\nctypes.test.test_strings\nctypes.test.test_struct_fields\nctypes.test.test_structures\nctypes.test.test_unaligned_structures\nctypes.test.test_unicode\nctypes.test.test_values\nctypes.test.test_varsize_struct\nctypes.test.test_win32\nctypes.test.test_wintypes\nctypes.util\nctypes.wintypes\n_curses\ncurses\ncurses.ascii\ncurses.has_key\n_curses_panel\ncurses.panel\ncurses.textpad\ndataclasses\n_datetime\ndatetime\n_dbm\ndbm\ndbm.dumb\ndbm.gnu\ndbm.ndbm\n_decimal\ndecimal\ndifflib\ndis\ndistutils\ndistutils.archive_util\ndistutils.bcppcompiler\ndistutils.ccompiler\ndistutils.cmd\ndistutils.command\ndistutils.command.bdist\ndistutils.command.bdist_dumb\ndistutils.command.bdist_msi\ndistutils.command.bdist_packager\ndistutils.command.bdist_rpm\ndistutils.command.bdist_wininst\ndistutils.command.build\ndistutils.command.build_clib\ndistutils.command.build_ext\ndistutils.command.build_py\ndistutils.command.build_scripts\ndistutils.command.check\ndistutils.command.clean\ndistutils.command.config\ndistutils.command.install\ndistutils.command.install_data\ndistutils.command.install_egg_info\ndistutils.command.install_headers\ndistutils.command.install_lib\ndistutils.command.install_scripts\ndistutils.command.register\ndistutils.command.sdist\ndistutils.command.upload\ndistutils.config\ndistutils.core\ndistutils.cygwinccompiler\ndistutils.debug\ndistutils.dep_util\ndistutils.dir_util\ndistutils.dist\ndistutils.errors\ndistutils.extension\ndistutils.fancy_getopt\ndistutils.filelist\ndistutils.file_util\ndistutils.log\ndistutils.msvc9compiler\ndistutils._msvccompiler\ndistutils.msvccompiler\ndistutils.spawn\ndistutils.sysconfig\ndistutils.tests\ndistutils.tests.support\ndistutils.tests.test_archive_util\ndistutils.tests.test_bdist\ndistutils.tests.test_bdist_dumb\ndistutils.tests.test_bdist_msi\ndistutils.tests.test_bdist_rpm\ndistutils.tests.test_bdist_wininst\ndistutils.tests.test_build\ndistutils.tests.test_build_clib\ndistutils.tests.test_build_ext\ndistutils.tests.test_build_py\ndistutils.tests.test_build_scripts\ndistutils.tests.test_check\ndistutils.tests.test_clean\ndistutils.tests.test_cmd\ndistutils.tests.test_config\ndistutils.tests.test_config_cmd\ndistutils.tests.test_core\ndistutils.tests.test_cygwinccompiler\ndistutils.tests.test_dep_util\ndistutils.tests.test_dir_util\ndistutils.tests.test_dist\ndistutils.tests.test_extension\ndistutils.tests.test_filelist\ndistutils.tests.test_file_util\ndistutils.tests.test_install\ndistutils.tests.test_install_data\ndistutils.tests.test_install_headers\ndistutils.tests.test_install_lib\ndistutils.tests.test_install_scripts\ndistutils.tests.test_log\ndistutils.tests.test_msvc9compiler\ndistutils.tests.test_msvccompiler\ndistutils.tests.test_register\ndistutils.tests.test_sdist\ndistutils.tests.test_spawn\ndistutils.tests.test_sysconfig\ndistutils.tests.test_text_file\ndistutils.tests.test_unixccompiler\ndistutils.tests.test_upload\ndistutils.tests.test_util\ndistutils.tests.test_version\ndistutils.tests.test_versionpredicate\ndistutils.text_file\ndistutils.unixccompiler\ndistutils.util\ndistutils.version\ndistutils.versionpredicate\ndoctest\n_dummy_thread\ndummy_threading\n_elementtree\nemail\nemail.base64mime\nemail.charset\nemail.contentmanager\nemail._encoded_words\nemail.encoders\nemail.errors\nemail.feedparser\nemail.generator\nemail.header\nemail.headerregistry\nemail._header_value_parser\nemail.iterators\nemail.message\nemail.mime\nemail.mime.application\nemail.mime.audio\nemail.mime.base\nemail.mime.image\nemail.mime.message\nemail.mime.multipart\nemail.mime.nonmultipart\nemail.mime.text\nemail._parseaddr\nemail.parser\nemail.policy\nemail._policybase\nemail.quoprimime\nemail.utils\nencodings\nencodings.aliases\nencodings.ascii\nencodings.base64_codec\nencodings.big5\nencodings.big5hkscs\nencodings.bz2_codec\nencodings.charmap\nencodings.cp037\nencodings.cp1006\nencodings.cp1026\nencodings.cp1125\nencodings.cp1140\nencodings.cp1250\nencodings.cp1251\nencodings.cp1252\nencodings.cp1253\nencodings.cp1254\nencodings.cp1255\nencodings.cp1256\nencodings.cp1257\nencodings.cp1258\nencodings.cp273\nencodings.cp424\nencodings.cp437\nencodings.cp500\nencodings.cp720\nencodings.cp737\nencodings.cp775\nencodings.cp850\nencodings.cp852\nencodings.cp855\nencodings.cp856\nencodings.cp857\nencodings.cp858\nencodings.cp860\nencodings.cp861\nencodings.cp862\nencodings.cp863\nencodings.cp864\nencodings.cp865\nencodings.cp866\nencodings.cp869\nencodings.cp874\nencodings.cp875\nencodings.cp932\nencodings.cp949\nencodings.cp950\nencodings.euc_jis_2004\nencodings.euc_jisx0213\nencodings.euc_jp\nencodings.euc_kr\nencodings.gb18030\nencodings.gb2312\nencodings.gbk\nencodings.hex_codec\nencodings.hp_roman8\nencodings.hz\nencodings.idna\nencodings.iso2022_jp\nencodings.iso2022_jp_1\nencodings.iso2022_jp_2\nencodings.iso2022_jp_2004\nencodings.iso2022_jp_3\nencodings.iso2022_jp_ext\nencodings.iso2022_kr\nencodings.iso8859_1\nencodings.iso8859_10\nencodings.iso8859_11\nencodings.iso8859_13\nencodings.iso8859_14\nencodings.iso8859_15\nencodings.iso8859_16\nencodings.iso8859_2\nencodings.iso8859_3\nencodings.iso8859_4\nencodings.iso8859_5\nencodings.iso8859_6\nencodings.iso8859_7\nencodings.iso8859_8\nencodings.iso8859_9\nencodings.johab\nencodings.koi8_r\nencodings.koi8_t\nencodings.koi8_u\nencodings.kz1048\nencodings.latin_1\nencodings.mac_arabic\nencodings.mac_centeuro\nencodings.mac_croatian\nencodings.mac_cyrillic\nencodings.mac_farsi\nencodings.mac_greek\nencodings.mac_iceland\nencodings.mac_latin2\nencodings.mac_roman\nencodings.mac_romanian\nencodings.mac_turkish\nencodings.mbcs\nencodings.oem\nencodings.palmos\nencodings.ptcp154\nencodings.punycode\nencodings.quopri_codec\nencodings.raw_unicode_escape\nencodings.rot_13\nencodings.shift_jis\nencodings.shift_jis_2004\nencodings.shift_jisx0213\nencodings.tis_620\nencodings.undefined\nencodings.unicode_escape\nencodings.utf_16\nencodings.utf_16_be\nencodings.utf_16_le\nencodings.utf_32\nencodings.utf_32_be\nencodings.utf_32_le\nencodings.utf_7\nencodings.utf_8\nencodings.utf_8_sig\nencodings.uu_codec\nencodings.zlib_codec\nensurepip\nensurepip._bundled\nensurepip.__main__\nensurepip._uninstall\nenum\nerrno\nfaulthandler\nfcntl\nfilecmp\nfileinput\nfnmatch\nformatter\nfractions\n_frozen_importlib\n_frozen_importlib_external\nftplib\n_functools\nfunctools\n__future__\ngc\n_gdbm\ngenericpath\ngetopt\ngetpass\ngettext\nglob\ngraphlib\ngrp\ngzip\n_hashlib\nhashlib\n_heapq\nheapq\nhmac\nhtml\nhtml.entities\nhtml.parser\nhttp\nhttp.client\nhttp.cookiejar\nhttp.cookies\nhttp.server\nidlelib\nidlelib.autocomplete\nidlelib.autocomplete_w\nidlelib.autoexpand\nidlelib.browser\nidlelib.calltip\nidlelib.calltip_w\nidlelib.codecontext\nidlelib.colorizer\nidlelib.config\nidlelib.configdialog\nidlelib.config_key\nidlelib.debugger\nidlelib.debugger_r\nidlelib.debugobj\nidlelib.debugobj_r\nidlelib.delegator\nidlelib.dynoption\nidlelib.editor\nidlelib.filelist\nidlelib.format\nidlelib.grep\nidlelib.help\nidlelib.help_about\nidlelib.history\nidlelib.hyperparser\nidlelib.idle\nidlelib.idle_test\nidlelib.idle_test.htest\nidlelib.idle_test.mock_idle\nidlelib.idle_test.mock_tk\nidlelib.idle_test.template\nidlelib.idle_test.test_autocomplete\nidlelib.idle_test.test_autocomplete_w\nidlelib.idle_test.test_autoexpand\nidlelib.idle_test.test_browser\nidlelib.idle_test.test_calltip\nidlelib.idle_test.test_calltip_w\nidlelib.idle_test.test_codecontext\nidlelib.idle_test.test_colorizer\nidlelib.idle_test.test_config\nidlelib.idle_test.test_configdialog\nidlelib.idle_test.test_config_key\nidlelib.idle_test.test_debugger\nidlelib.idle_test.test_debugger_r\nidlelib.idle_test.test_debugobj\nidlelib.idle_test.test_debugobj_r\nidlelib.idle_test.test_delegator\nidlelib.idle_test.test_editmenu\nidlelib.idle_test.test_editor\nidlelib.idle_test.test_filelist\nidlelib.idle_test.test_format\nidlelib.idle_test.test_grep\nidlelib.idle_test.test_help\nidlelib.idle_test.test_help_about\nidlelib.idle_test.test_history\nidlelib.idle_test.test_hyperparser\nidlelib.idle_test.test_iomenu\nidlelib.idle_test.test_macosx\nidlelib.idle_test.test_mainmenu\nidlelib.idle_test.test_multicall\nidlelib.idle_test.test_outwin\nidlelib.idle_test.test_parenmatch\nidlelib.idle_test.test_pathbrowser\nidlelib.idle_test.test_percolator\nidlelib.idle_test.test_pyparse\nidlelib.idle_test.test_pyshell\nidlelib.idle_test.test_query\nidlelib.idle_test.test_redirector\nidlelib.idle_test.test_replace\nidlelib.idle_test.test_rpc\nidlelib.idle_test.test_run\nidlelib.idle_test.test_runscript\nidlelib.idle_test.test_scrolledlist\nidlelib.idle_test.test_search\nidlelib.idle_test.test_searchbase\nidlelib.idle_test.test_searchengine\nidlelib.idle_test.test_sidebar\nidlelib.idle_test.test_squeezer\nidlelib.idle_test.test_stackviewer\nidlelib.idle_test.test_statusbar\nidlelib.idle_test.test_text\nidlelib.idle_test.test_textview\nidlelib.idle_test.test_tooltip\nidlelib.idle_test.test_tree\nidlelib.idle_test.test_undo\nidlelib.idle_test.test_warning\nidlelib.idle_test.test_window\nidlelib.idle_test.test_zoomheight\nidlelib.iomenu\nidlelib.macosx\nidlelib.__main__\nidlelib.mainmenu\nidlelib.multicall\nidlelib.outwin\nidlelib.parenmatch\nidlelib.pathbrowser\nidlelib.percolator\nidlelib.pyparse\nidlelib.pyshell\nidlelib.query\nidlelib.redirector\nidlelib.replace\nidlelib.rpc\nidlelib.run\nidlelib.runscript\nidlelib.scrolledlist\nidlelib.search\nidlelib.searchbase\nidlelib.searchengine\nidlelib.sidebar\nidlelib.squeezer\nidlelib.stackviewer\nidlelib.statusbar\nidlelib.textview\nidlelib.tooltip\nidlelib.tree\nidlelib.undo\nidlelib.window\nidlelib.zoomheight\nidlelib.zzdummy\nimaplib\nimghdr\n_imp\nimp\nimportlib\nimportlib.abc\nimportlib._bootstrap\nimportlib._bootstrap_external\nimportlib._common\nimportlib.machinery\nimportlib.metadata\nimportlib.resources\nimportlib.util\ninspect\n_io\nio\nipaddress\nitertools\n_json\njson\njson.decoder\njson.encoder\njson.scanner\njson.tool\nkeyword\nlib2to3\nlib2to3.btm_matcher\nlib2to3.btm_utils\nlib2to3.fixer_base\nlib2to3.fixer_util\nlib2to3.fixes\nlib2to3.fixes.fix_apply\nlib2to3.fixes.fix_asserts\nlib2to3.fixes.fix_basestring\nlib2to3.fixes.fix_buffer\nlib2to3.fixes.fix_dict\nlib2to3.fixes.fix_except\nlib2to3.fixes.fix_exec\nlib2to3.fixes.fix_execfile\nlib2to3.fixes.fix_exitfunc\nlib2to3.fixes.fix_filter\nlib2to3.fixes.fix_funcattrs\nlib2to3.fixes.fix_future\nlib2to3.fixes.fix_getcwdu\nlib2to3.fixes.fix_has_key\nlib2to3.fixes.fix_idioms\nlib2to3.fixes.fix_import\nlib2to3.fixes.fix_imports\nlib2to3.fixes.fix_imports2\nlib2to3.fixes.fix_input\nlib2to3.fixes.fix_intern\nlib2to3.fixes.fix_isinstance\nlib2to3.fixes.fix_itertools\nlib2to3.fixes.fix_itertools_imports\nlib2to3.fixes.fix_long\nlib2to3.fixes.fix_map\nlib2to3.fixes.fix_metaclass\nlib2to3.fixes.fix_methodattrs\nlib2to3.fixes.fix_ne\nlib2to3.fixes.fix_next\nlib2to3.fixes.fix_nonzero\nlib2to3.fixes.fix_numliterals\nlib2to3.fixes.fix_operator\nlib2to3.fixes.fix_paren\nlib2to3.fixes.fix_print\nlib2to3.fixes.fix_raise\nlib2to3.fixes.fix_raw_input\nlib2to3.fixes.fix_reduce\nlib2to3.fixes.fix_reload\nlib2to3.fixes.fix_renames\nlib2to3.fixes.fix_repr\nlib2to3.fixes.fix_set_literal\nlib2to3.fixes.fix_standarderror\nlib2to3.fixes.fix_sys_exc\nlib2to3.fixes.fix_throw\nlib2to3.fixes.fix_tuple_params\nlib2to3.fixes.fix_types\nlib2to3.fixes.fix_unicode\nlib2to3.fixes.fix_urllib\nlib2to3.fixes.fix_ws_comma\nlib2to3.fixes.fix_xrange\nlib2to3.fixes.fix_xreadlines\nlib2to3.fixes.fix_zip\nlib2to3.main\nlib2to3.__main__\nlib2to3.patcomp\nlib2to3.pgen2\nlib2to3.pgen2.conv\nlib2to3.pgen2.driver\nlib2to3.pgen2.grammar\nlib2to3.pgen2.literals\nlib2to3.pgen2.parse\nlib2to3.pgen2.pgen\nlib2to3.pgen2.token\nlib2to3.pgen2.tokenize\nlib2to3.pygram\nlib2to3.pytree\nlib2to3.refactor\nlib2to3.tests\nlib2to3.tests.data.bom\nlib2to3.tests.data.crlf\nlib2to3.tests.data.different_encoding\nlib2to3.tests.data.false_encoding\nlib2to3.tests.data.fixers.bad_order\nlib2to3.tests.data.fixers.myfixes\nlib2to3.tests.data.fixers.myfixes.fix_explicit\nlib2to3.tests.data.fixers.myfixes.fix_first\nlib2to3.tests.data.fixers.myfixes.fix_last\nlib2to3.tests.data.fixers.myfixes.fix_parrot\nlib2to3.tests.data.fixers.myfixes.fix_preorder\nlib2to3.tests.data.fixers.no_fixer_cls\nlib2to3.tests.data.fixers.parrot_example\nlib2to3.tests.data.infinite_recursion\nlib2to3.tests.data.py2_test_grammar\nlib2to3.tests.data.py3_test_grammar\nlib2to3.tests.__main__\nlib2to3.tests.pytree_idempotency\nlib2to3.tests.support\nlib2to3.tests.test_all_fixers\nlib2to3.tests.test_fixers\nlib2to3.tests.test_main\nlib2to3.tests.test_parser\nlib2to3.tests.test_pytree\nlib2to3.tests.test_refactor\nlib2to3.tests.test_util\nlib.libpython3\nlinecache\n_locale\nlocale\nlogging\nlogging.config\nlogging.handlers\n_lsprof\n_lzma\nlzma\nmailbox\nmailcap\n__main__\n_markupbase\nmarshal\nmath\n_md5\nmimetypes\nmmap\nmodulefinder\nmsilib\nmsvcrt\n_multibytecodec\n_multiprocessing\nmultiprocessing\nmultiprocessing.connection\nmultiprocessing.context\nmultiprocessing.dummy\nmultiprocessing.dummy.connection\nmultiprocessing.forkserver\nmultiprocessing.heap\nmultiprocessing.managers\nmultiprocessing.pool\nmultiprocessing.popen_fork\nmultiprocessing.popen_forkserver\nmultiprocessing.popen_spawn_posix\nmultiprocessing.popen_spawn_win32\nmultiprocessing.process\nmultiprocessing.queues\nmultiprocessing.reduction\nmultiprocessing.resource_sharer\nmultiprocessing.resource_tracker\nmultiprocessing.sharedctypes\nmultiprocessing.shared_memory\nmultiprocessing.spawn\nmultiprocessing.synchronize\nmultiprocessing.util\nnetrc\nnis\nnntplib\nntpath\nnturl2path\nnumbers\n_opcode\nopcode\n_operator\noperator\noptparse\nos\nos.path\nossaudiodev\n_osx_support\nparser\npathlib\npdb\n__phello__.foo\n_pickle\npickle\npickletools\npipes\npkgutil\nplatform\nplistlib\npoplib\nposix\nposixpath\n_posixshmem\n_posixsubprocess\npprint\nprofile\npstats\npty\npwd\n_py_abc\npyclbr\npy_compile\n_pydecimal\npydoc\npydoc_data\npydoc_data.topics\npyexpat\n_pyio\n_queue\nqueue\nquopri\n_random\nrandom\nre\nreadline\nreprlib\nresource\nrlcompleter\nrunpy\nsched\nsecrets\nselect\nselectors\n_sha1\n_sha256\n_sha3\n_sha512\nshelve\nshlex\nshutil\n_signal\nsignal\nsite\n_sitebuiltins\nsmtpd\nsmtplib\nsndhdr\n_socket\nsocket\nsocketserver\nspwd\n_sqlite3\nsqlite3\nsqlite3.dbapi2\nsqlite3.dump\nsqlite3.test\nsqlite3.test.backup\nsqlite3.test.dbapi\nsqlite3.test.dump\nsqlite3.test.factory\nsqlite3.test.hooks\nsqlite3.test.regression\nsqlite3.test.transactions\nsqlite3.test.types\nsqlite3.test.userfunctions\n_sre\nsre_compile\nsre_constants\nsre_parse\n_ssl\nssl\n_stat\nstat\n_statistics\nstatistics\n_string\nstring\nstringprep\n_strptime\n_struct\nstruct\nsubprocess\nsunau\nsymbol\n_symtable\nsymtable\nsys\nsysconfig\n_sysconfigdata_x86_64_conda_cos6_linux_gnu\n_sysconfigdata_x86_64_conda_linux_gnu\nsyslog\ntabnanny\ntarfile\ntelnetlib\ntempfile\ntermios\ntest\ntest.ann_module\ntest.ann_module2\ntest.ann_module3\ntest.audiotests\ntest.autotest\ntest.bad_coding\ntest.bad_coding2\ntest.bad_getattr\ntest.bad_getattr2\ntest.bad_getattr3\ntest.badsyntax_3131\ntest.badsyntax_future10\ntest.badsyntax_future3\ntest.badsyntax_future4\ntest.badsyntax_future5\ntest.badsyntax_future6\ntest.badsyntax_future7\ntest.badsyntax_future8\ntest.badsyntax_future9\ntest.badsyntax_pep3120\ntest.bisect_cmd\n_testbuffer\ntest.bytecode_helper\n_testcapi\ntest.coding20731\ntest.curses_tests\ntest.dataclass_module_1\ntest.dataclass_module_1_str\ntest.dataclass_module_2\ntest.dataclass_module_2_str\ntest.datetimetester\ntest.dis_module\ntest.doctest_aliases\ntest.double_const\ntest.dtracedata.call_stack\ntest.dtracedata.gc\ntest.dtracedata.instance\ntest.dtracedata.line\ntest.eintrdata.eintr_tester\ntest.encoded_modules\ntest.encoded_modules.module_iso_8859_1\ntest.encoded_modules.module_koi8_r\ntest.final_a\ntest.final_b\ntest.fork_wait\ntest.future_test1\ntest.future_test2\ntest.gdb_sample\ntest.good_getattr\ntest.imp_dummy\n_testimportmultiple\ntest.inspect_fodder\ntest.inspect_fodder2\n_testinternalcapi\ntest.libregrtest\ntest.libregrtest.cmdline\ntest.libregrtest.main\ntest.libregrtest.pgo\ntest.libregrtest.refleak\ntest.libregrtest.runtest\ntest.libregrtest.runtest_mp\ntest.libregrtest.save_env\ntest.libregrtest.setup\ntest.libregrtest.utils\ntest.libregrtest.win_utils\ntest.list_tests\ntest.lock_tests\ntest.__main__\ntest.make_ssl_certs\ntest.mapping_tests\ntest.memory_watchdog\ntest.mock_socket\ntest.mod_generics_cache\ntest.mp_fork_bomb\ntest.mp_preload\ntest.multibytecodec_support\n_testmultiphase\ntest.outstanding_bugs\ntest.pickletester\ntest.profilee\ntest.pyclbr_input\ntest.pydocfodder\ntest.pydoc_mod\ntest.pythoninfo\ntest.regrtest\ntest.relimport\ntest.reperf\ntest.re_tests\ntest.sample_doctest\ntest.sample_doctest_no_docstrings\ntest.sample_doctest_no_doctests\ntest.seq_tests\ntest.signalinterproctester\ntest.sortperf\ntest.ssl_servers\ntest.ssltests\ntest.string_tests\ntest.subprocessdata.fd_status\ntest.subprocessdata.input_reader\ntest.subprocessdata.qcat\ntest.subprocessdata.qgrep\ntest.subprocessdata.sigchild_ignore\ntest.support\ntest.support.bytecode_helper\ntest.support.hashlib_helper\ntest.support.logging_helper\ntest.support.script_helper\ntest.support.socket_helper\ntest.support.testresult\ntest.test_abc\ntest.test_abstract_numbers\ntest.test_aifc\ntest.test___all__\ntest.test_argparse\ntest.test_array\ntest.test_asdl_parser\ntest.test_ast\ntest.test_asyncgen\ntest.test_asynchat\ntest.test_asyncio\ntest.test_asyncio.echo\ntest.test_asyncio.echo2\ntest.test_asyncio.echo3\ntest.test_asyncio.functional\ntest.test_asyncio.__main__\ntest.test_asyncio.test_base_events\ntest.test_asyncio.test_buffered_proto\ntest.test_asyncio.test_context\ntest.test_asyncio.test_events\ntest.test_asyncio.test_futures\ntest.test_asyncio.test_locks\ntest.test_asyncio.test_pep492\ntest.test_asyncio.test_proactor_events\ntest.test_asyncio.test_protocols\ntest.test_asyncio.test_queues\ntest.test_asyncio.test_runners\ntest.test_asyncio.test_selector_events\ntest.test_asyncio.test_sendfile\ntest.test_asyncio.test_server\ntest.test_asyncio.test_sock_lowlevel\ntest.test_asyncio.test_sslproto\ntest.test_asyncio.test_streams\ntest.test_asyncio.test_subprocess\ntest.test_asyncio.test_tasks\ntest.test_asyncio.test_transports\ntest.test_asyncio.test_unix_events\ntest.test_asyncio.test_windows_events\ntest.test_asyncio.test_windows_utils\ntest.test_asyncio.utils\ntest.test_asyncore\ntest.test_atexit\ntest.test_audioop\ntest.test_audit\ntest.test_augassign\ntest.test_base64\ntest.test_baseexception\ntest.test_bdb\ntest.test_bigaddrspace\ntest.test_bigmem\ntest.test_binascii\ntest.test_binhex\ntest.test_binop\ntest.test_bisect\ntest.test_bool\ntest.test_buffer\ntest.test_bufio\ntest.test_builtin\ntest.test_bytes\ntest.test_bz2\ntest.test_calendar\ntest.test_call\ntest.test_capi\ntest.test_cgi\ntest.test_cgitb\ntest.test_charmapcodec\ntest.test_class\ntest.test_clinic\ntest.test_c_locale_coercion\ntest.test_cmath\ntest.test_cmd\ntest.test_cmd_line\ntest.test_cmd_line_script\ntest.test_code\ntest.testcodec\ntest.test_codeccallbacks\ntest.test_codecencodings_cn\ntest.test_codecencodings_hk\ntest.test_codecencodings_iso2022\ntest.test_codecencodings_jp\ntest.test_codecencodings_kr\ntest.test_codecencodings_tw\ntest.test_codecmaps_cn\ntest.test_codecmaps_hk\ntest.test_codecmaps_jp\ntest.test_codecmaps_kr\ntest.test_codecmaps_tw\ntest.test_codecs\ntest.test_code_module\ntest.test_codeop\ntest.test_collections\ntest.test_colorsys\ntest.test_compare\ntest.test_compile\ntest.test_compileall\ntest.test_complex\ntest.test_concurrent_futures\ntest.test_configparser\ntest.test_contains\ntest.test_context\ntest.test_contextlib\ntest.test_contextlib_async\ntest.test_copy\ntest.test_copyreg\ntest.test_coroutines\ntest.test_cprofile\ntest.test_crashers\ntest.test_crypt\ntest.test_csv\ntest.test_ctypes\ntest.test_curses\ntest.test_dataclasses\ntest.test_datetime\ntest.test_dbm\ntest.test_dbm_dumb\ntest.test_dbm_gnu\ntest.test_dbm_ndbm\ntest.test_decimal\ntest.test_decorators\ntest.test_defaultdict\ntest.test_deque\ntest.test_descr\ntest.test_descrtut\ntest.test_devpoll\ntest.test_dict\ntest.test_dictcomps\ntest.test_dict_version\ntest.test_dictviews\ntest.test_difflib\ntest.test_dis\ntest.test_distutils\ntest.test_doctest\ntest.test_doctest2\ntest.test_docxmlrpc\ntest.test_dtrace\ntest.test_dummy_thread\ntest.test_dummy_threading\ntest.test_dynamic\ntest.test_dynamicclassattribute\ntest.test_eintr\ntest.test_email\ntest.test_email.__main__\ntest.test_email.test_asian_codecs\ntest.test_email.test_contentmanager\ntest.test_email.test_defect_handling\ntest.test_email.test_email\ntest.test_email.test__encoded_words\ntest.test_email.test_generator\ntest.test_email.test_headerregistry\ntest.test_email.test__header_value_parser\ntest.test_email.test_inversion\ntest.test_email.test_message\ntest.test_email.test_parser\ntest.test_email.test_pickleable\ntest.test_email.test_policy\ntest.test_email.test_utils\ntest.test_email.torture_test\ntest.test_embed\ntest.test_ensurepip\ntest.test_enum\ntest.test_enumerate\ntest.test_eof\ntest.test_epoll\ntest.test_errno\ntest.test_exception_hierarchy\ntest.test_exceptions\ntest.test_exception_variations\ntest.test_extcall\ntest.test_faulthandler\ntest.test_fcntl\ntest.test_file\ntest.test_filecmp\ntest.test_file_eintr\ntest.test_fileinput\ntest.test_fileio\ntest.test_finalization\ntest.test_float\ntest.test_flufl\ntest.test_fnmatch\ntest.test_fork1\ntest.test_format\ntest.test_fractions\ntest.test_frame\ntest.test_frozen\ntest.test_fstring\ntest.test_ftplib\ntest.test_funcattrs\ntest.test_functools\ntest.test___future__\ntest.test_future\ntest.test_future3\ntest.test_future4\ntest.test_future5\ntest.test_gc\ntest.test_gdb\ntest.test_generators\ntest.test_generator_stop\ntest.test_genericclass\ntest.test_genericpath\ntest.test_genexps\ntest.test_getargs2\ntest.test_getopt\ntest.test_getpass\ntest.test_gettext\ntest.test_glob\ntest.test_global\ntest.test_grammar\ntest.test_grp\ntest.test_gzip\ntest.test_hash\ntest.test_hashlib\ntest.test_heapq\ntest.test_hmac\ntest.test_html\ntest.test_htmlparser\ntest.test_http_cookiejar\ntest.test_http_cookies\ntest.test_httplib\ntest.test_httpservers\ntest.test_idle\ntest.test_imaplib\ntest.test_imghdr\ntest.test_imp\ntest.test_import\ntest.test_import.data.circular_imports.basic\ntest.test_import.data.circular_imports.basic2\ntest.test_import.data.circular_imports.binding\ntest.test_import.data.circular_imports.binding2\ntest.test_import.data.circular_imports.from_cycle1\ntest.test_import.data.circular_imports.from_cycle2\ntest.test_import.data.circular_imports.indirect\ntest.test_import.data.circular_imports.rebinding\ntest.test_import.data.circular_imports.rebinding2\ntest.test_import.data.circular_imports.source\ntest.test_import.data.circular_imports.subpackage\ntest.test_import.data.circular_imports.subpkg.subpackage2\ntest.test_import.data.circular_imports.subpkg.util\ntest.test_import.data.circular_imports.use\ntest.test_import.data.circular_imports.util\ntest.test_import.data.package\ntest.test_import.data.package2.submodule1\ntest.test_import.data.package2.submodule2\ntest.test_import.data.package.submodule\ntest.test_importlib\ntest.test_importlib.abc\ntest.test_importlib.builtin\ntest.test_importlib.builtin.__main__\ntest.test_importlib.builtin.test_finder\ntest.test_importlib.builtin.test_loader\ntest.test_importlib.data\ntest.test_importlib.data01\ntest.test_importlib.data01.subdirectory\ntest.test_importlib.data02\ntest.test_importlib.data02.one\ntest.test_importlib.data02.two\ntest.test_importlib.data03\ntest.test_importlib.data03.namespace.portion1\ntest.test_importlib.data03.namespace.portion2\ntest.test_importlib.extension\ntest.test_importlib.extension.__main__\ntest.test_importlib.extension.test_case_sensitivity\ntest.test_importlib.extension.test_finder\ntest.test_importlib.extension.test_loader\ntest.test_importlib.extension.test_path_hook\ntest.test_importlib.fixtures\ntest.test_importlib.frozen\ntest.test_importlib.frozen.__main__\ntest.test_importlib.frozen.test_finder\ntest.test_importlib.frozen.test_loader\ntest.test_importlib.import_\ntest.test_importlib.import_.__main__\ntest.test_importlib.import_.test_api\ntest.test_importlib.import_.test_caching\ntest.test_importlib.import_.test_fromlist\ntest.test_importlib.import_.test___loader__\ntest.test_importlib.import_.test_meta_path\ntest.test_importlib.import_.test___package__\ntest.test_importlib.import_.test_packages\ntest.test_importlib.import_.test_path\ntest.test_importlib.import_.test_relative_imports\ntest.test_importlib.__main__\ntest.test_importlib.namespace_pkgs.both_portions.foo.one\ntest.test_importlib.namespace_pkgs.both_portions.foo.two\ntest.test_importlib.namespace_pkgs.module_and_namespace_package.a_test\ntest.test_importlib.namespace_pkgs.not_a_namespace_pkg.foo\ntest.test_importlib.namespace_pkgs.not_a_namespace_pkg.foo.one\ntest.test_importlib.namespace_pkgs.portion1.foo.one\ntest.test_importlib.namespace_pkgs.portion2.foo.two\ntest.test_importlib.namespace_pkgs.project1.parent.child.one\ntest.test_importlib.namespace_pkgs.project2.parent.child.two\ntest.test_importlib.namespace_pkgs.project3.parent.child.three\ntest.test_importlib.source\ntest.test_importlib.source.__main__\ntest.test_importlib.source.test_case_sensitivity\ntest.test_importlib.source.test_file_loader\ntest.test_importlib.source.test_finder\ntest.test_importlib.source.test_path_hook\ntest.test_importlib.source.test_source_encoding\ntest.test_importlib.test_abc\ntest.test_importlib.test_api\ntest.test_importlib.test_lazy\ntest.test_importlib.test_locks\ntest.test_importlib.test_main\ntest.test_importlib.test_metadata_api\ntest.test_importlib.test_namespace_pkgs\ntest.test_importlib.test_open\ntest.test_importlib.test_path\ntest.test_importlib.test_read\ntest.test_importlib.test_resource\ntest.test_importlib.test_spec\ntest.test_importlib.test_util\ntest.test_importlib.test_windows\ntest.test_importlib.test_zip\ntest.test_importlib.util\ntest.test_importlib.zipdata01\ntest.test_importlib.zipdata02\ntest.test_import.__main__\ntest.test_index\ntest.test_inspect\ntest.test_int\ntest.test_int_literal\ntest.test_io\ntest.test_ioctl\ntest.test_ipaddress\ntest.test_isinstance\ntest.test_iter\ntest.test_iterlen\ntest.test_itertools\ntest.test_json\ntest.test_json.__main__\ntest.test_json.test_decode\ntest.test_json.test_default\ntest.test_json.test_dump\ntest.test_json.test_encode_basestring_ascii\ntest.test_json.test_enum\ntest.test_json.test_fail\ntest.test_json.test_float\ntest.test_json.test_indent\ntest.test_json.test_pass1\ntest.test_json.test_pass2\ntest.test_json.test_pass3\ntest.test_json.test_recursion\ntest.test_json.test_scanstring\ntest.test_json.test_separators\ntest.test_json.test_speedups\ntest.test_json.test_tool\ntest.test_json.test_unicode\ntest.test_keyword\ntest.test_keywordonlyarg\ntest.test_kqueue\ntest.test_largefile\ntest.test_lib2to3\ntest.test_linecache\ntest.test_list\ntest.test_listcomps\ntest.test_lltrace\ntest.test__locale\ntest.test_locale\ntest.test_logging\ntest.test_long\ntest.test_longexp\ntest.test_lzma\ntest.test_mailbox\ntest.test_mailcap\ntest.test_marshal\ntest.test_math\ntest.test_memoryio\ntest.test_memoryview\ntest.test_metaclass\ntest.test_mimetypes\ntest.test_minidom\ntest.test_mmap\ntest.test_module\ntest.test_modulefinder\ntest.test_msilib\ntest.test_multibytecodec\ntest._test_multiprocessing\ntest.test_multiprocessing_fork\ntest.test_multiprocessing_forkserver\ntest.test_multiprocessing_main_handling\ntest.test_multiprocessing_spawn\ntest.test_named_expressions\ntest.test_netrc\ntest.test_nis\ntest.test_nntplib\ntest.test_normalization\ntest.test_ntpath\ntest.test_numeric_tower\ntest.test__opcode\ntest.test_opcodes\ntest.test_openpty\ntest.test_operator\ntest.test_optparse\ntest.test_ordered_dict\ntest.test_os\ntest.test_ossaudiodev\ntest.test_osx_env\ntest.test__osx_support\ntest.test_parser\ntest.test_pathlib\ntest.test_pdb\ntest.test_peepholer\ntest.test_pickle\ntest.test_picklebuffer\ntest.test_pickletools\ntest.test_pipes\ntest.test_pkg\ntest.test_pkgimport\ntest.test_pkgutil\ntest.test_platform\ntest.test_plistlib\ntest.test_poll\ntest.test_popen\ntest.test_poplib\ntest.test_positional_only_arg\ntest.test_posix\ntest.test_posixpath\ntest.test_pow\ntest.test_pprint\ntest.test_print\ntest.test_profile\ntest.test_property\ntest.test_pstats\ntest.test_pty\ntest.test_pulldom\ntest.test_pwd\ntest.test_pyclbr\ntest.test_py_compile\ntest.test_pydoc\ntest.test_pyexpat\ntest.test_queue\ntest.test_quopri\ntest.test_raise\ntest.test_random\ntest.test_range\ntest.test_re\ntest.test_readline\ntest.test_regrtest\ntest.test_repl\ntest.test_reprlib\ntest.test_resource\ntest.test_richcmp\ntest.test_rlcompleter\ntest.test_robotparser\ntest.test_runpy\ntest.test_sax\ntest.test_sched\ntest.test_scope\ntest.test_script_helper\ntest.test_secrets\ntest.test_select\ntest.test_selectors\ntest.test_set\ntest.test_setcomps\ntest.test_shelve\ntest.test_shlex\ntest.test_shutil\ntest.test_signal\ntest.test_site\ntest.test_slice\ntest.test_smtpd\ntest.test_smtplib\ntest.test_smtpnet\ntest.test_sndhdr\ntest.test_socket\ntest.test_socketserver\ntest.test_sort\ntest.test_source_encoding\ntest.test_spwd\ntest.test_sqlite\ntest.test_ssl\ntest.test_startfile\ntest.test_stat\ntest.test_statistics\ntest.test_strftime\ntest.test_string\ntest.test_string_literals\ntest.test_stringprep\ntest.test_strptime\ntest.test_strtod\ntest.test_struct\ntest.test_structmembers\ntest.test_structseq\ntest.test_subclassinit\ntest.test_subprocess\ntest.test_sunau\ntest.test_sundry\ntest.test_super\ntest.test_support\ntest.test_symbol\ntest.test_symtable\ntest.test_syntax\ntest.test_sys\ntest.test_sysconfig\ntest.test_syslog\ntest.test_sys_setprofile\ntest.test_sys_settrace\ntest.test_tabnanny\ntest.test_tarfile\ntest.test_tcl\ntest.test_telnetlib\ntest.test_tempfile\ntest.test_textwrap\ntest.test_thread\ntest.test_threaded_import\ntest.test_threadedtempfile\ntest.test_threading\ntest.test_threading_local\ntest.test_threadsignals\ntest.test_time\ntest.test_timeit\ntest.test_timeout\ntest.test_tix\ntest.test_tk\ntest.test_tokenize\ntest.test_tools\ntest.test_tools.__main__\ntest.test_tools.test_fixcid\ntest.test_tools.test_gprof2html\ntest.test_tools.test_i18n\ntest.test_tools.test_lll\ntest.test_tools.test_md5sum\ntest.test_tools.test_pathfix\ntest.test_tools.test_pdeps\ntest.test_tools.test_pindent\ntest.test_tools.test_reindent\ntest.test_tools.test_sundry\ntest.test_tools.test_unparse\ntest.test_trace\ntest.test_traceback\ntest.test_tracemalloc\ntest.test_ttk_guionly\ntest.test_ttk_textonly\ntest.test_tuple\ntest.test_turtle\ntest.test_typechecks\ntest.test_type_comments\ntest.test_types\ntest.test_typing\ntest.test_ucn\ntest.test_unary\ntest.test_unicode\ntest.test_unicodedata\ntest.test_unicode_file\ntest.test_unicode_file_functions\ntest.test_unicode_identifiers\ntest.test_unittest\ntest.test_univnewlines\ntest.test_unpack\ntest.test_unpack_ex\ntest.test_urllib\ntest.test_urllib2\ntest.test_urllib2_localnet\ntest.test_urllib2net\ntest.test_urllibnet\ntest.test_urllib_response\ntest.test_urlparse\ntest.test_userdict\ntest.test_userlist\ntest.test_userstring\ntest.test_utf8_mode\ntest.test_utf8source\ntest.test_uu\ntest.test_uuid\ntest.test_venv\ntest.test_wait3\ntest.test_wait4\ntest.test_warnings\ntest.test_warnings.data.import_warning\ntest.test_warnings.data.stacklevel\ntest.test_warnings.__main__\ntest.test_wave\ntest.test_weakref\ntest.test_weakset\ntest.test_webbrowser\ntest.test_winconsoleio\ntest.test_winreg\ntest.test_winsound\ntest.test_with\ntest.test_wsgiref\ntest.test_xdrlib\ntest.test_xml_dom_minicompat\ntest.test_xml_etree\ntest.test_xml_etree_c\ntest.test_xmlrpc\ntest.test_xmlrpc_net\ntest.test__xxsubinterpreters\ntest.test_xxtestfuzz\ntest.test_yield_from\ntest.test_zipapp\ntest.test_zipfile\ntest.test_zipfile64\ntest.test_zipimport\ntest.test_zipimport_support\ntest.test_zlib\ntest.tf_inherit_check\ntest.threaded_import_hangers\ntest.time_hashlib\ntest.tracedmodules\ntest.tracedmodules.testmod\ntest.win_console_handler\ntest.xmltests\ntest.ziptestdata.testdata_module_inside_zip\ntextwrap\nthis\n_thread\nthreading\n_threading_local\ntime\ntimeit\n_tkinter\ntkinter\ntkinter.colorchooser\ntkinter.commondialog\ntkinter.constants\ntkinter.dialog\ntkinter.dnd\ntkinter.filedialog\ntkinter.font\ntkinter.__main__\ntkinter.messagebox\ntkinter.scrolledtext\ntkinter.simpledialog\ntkinter.test\ntkinter.test.runtktests\ntkinter.test.support\ntkinter.test.test_tkinter\ntkinter.test.test_tkinter.test_font\ntkinter.test.test_tkinter.test_geometry_managers\ntkinter.test.test_tkinter.test_images\ntkinter.test.test_tkinter.test_loadtk\ntkinter.test.test_tkinter.test_misc\ntkinter.test.test_tkinter.test_text\ntkinter.test.test_tkinter.test_variables\ntkinter.test.test_tkinter.test_widgets\ntkinter.test.test_ttk\ntkinter.test.test_ttk.test_extensions\ntkinter.test.test_ttk.test_functions\ntkinter.test.test_ttk.test_style\ntkinter.test.test_ttk.test_widgets\ntkinter.test.widget_tests\ntkinter.tix\ntkinter.ttk\ntoken\ntokenize\ntrace\ntraceback\n_tracemalloc\ntracemalloc\ntty\nturtle\nturtledemo\nturtledemo.bytedesign\nturtledemo.chaos\nturtledemo.clock\nturtledemo.colormixer\nturtledemo.forest\nturtledemo.fractalcurves\nturtledemo.lindenmayer\nturtledemo.__main__\nturtledemo.minimal_hanoi\nturtledemo.nim\nturtledemo.paint\nturtledemo.peace\nturtledemo.penrose\nturtledemo.planet_and_moon\nturtledemo.rosette\nturtledemo.round_dance\nturtledemo.sorting_animate\nturtledemo.tree\nturtledemo.two_canvases\nturtledemo.yinyang\ntypes\ntyping\ntyping.io\ntyping.re\nunicodedata\nunittest\nunittest.async_case\nunittest.case\nunittest.loader\nunittest._log\nunittest.__main__\nunittest.main\nunittest.mock\nunittest.result\nunittest.runner\nunittest.signals\nunittest.suite\nunittest.test\nunittest.test.dummy\nunittest.test.__main__\nunittest.test.support\nunittest.test.test_assertions\nunittest.test.test_async_case\nunittest.test.test_break\nunittest.test.test_case\nunittest.test.test_discovery\nunittest.test.test_functiontestcase\nunittest.test.test_loader\nunittest.test.testmock\nunittest.test.testmock.__main__\nunittest.test.testmock.support\nunittest.test.testmock.testasync\nunittest.test.testmock.testcallable\nunittest.test.testmock.testhelpers\nunittest.test.testmock.testmagicmethods\nunittest.test.testmock.testmock\nunittest.test.testmock.testpatch\nunittest.test.testmock.testsealable\nunittest.test.testmock.testsentinel\nunittest.test.testmock.testwith\nunittest.test.test_program\nunittest.test.test_result\nunittest.test.test_runner\nunittest.test.test_setups\nunittest.test.test_skipping\nunittest.test.test_suite\nunittest.test._test_warnings\nunittest.util\nurllib\nurllib.error\nurllib.parse\nurllib.request\nurllib.response\nurllib.robotparser\nuu\n_uuid\nuuid\nvenv\nvenv.__main__\n_warnings\nwarnings\nwave\n_weakref\nweakref\n_weakrefset\nwebbrowser\nwinreg\nwinsound\nwsgiref\nwsgiref.handlers\nwsgiref.headers\nwsgiref.simple_server\nwsgiref.util\nwsgiref.validate\nxdrlib\nxml\nxml.dom\nxml.dom.domreg\nxml.dom.expatbuilder\nxml.dom.minicompat\nxml.dom.minidom\nxml.dom.NodeFilter\nxml.dom.pulldom\nxml.dom.xmlbuilder\nxml.etree\nxml.etree.cElementTree\nxml.etree.ElementInclude\nxml.etree.ElementPath\nxml.etree.ElementTree\nxml.parsers\nxml.parsers.expat\nxml.parsers.expat.errors\nxml.parsers.expat.model\nxmlrpc\nxmlrpc.client\nxmlrpc.server\nxml.sax\nxml.sax._exceptions\nxml.sax.expatreader\nxml.sax.handler\nxml.sax.saxutils\nxml.sax.xmlreader\nxxlimited\n_xxsubinterpreters\nxxsubtype\n_xxtestfuzz\nzipapp\nzipfile\nzipimport\nzlib\nzoneinfo\nzoneinfo._common\nzoneinfo._tzpath\nzoneinfo._zoneinfo\n"
  },
  {
    "path": "poetry.toml",
    "content": "[virtualenvs]\nprefer-active-python = true\n"
  },
  {
    "path": "pyproject.toml",
    "content": "[project]\nname = \"pipreqs\"\nversion = \"0.5.0\"\ndescription = \"Pip requirements.txt generator based on imports in project\"\nauthors = [\n    { name = \"Vadim Kravcenko\", email = \"vadim.kravcenko@gmail.com\" }\n]\nmaintainers = [\n    {name = \"Jonas Eschle\", email = \"jonas.eschle@gmail.com\"}\n]\nlicense = \"Apache-2.0\"\nreadme = \"README.rst\"\npackages = [{ include = \"pipreqs\" }]\nrepository = \"https://github.com/bndr/pipreqs\"\nkeywords = [\"pip\", \"requirements\", \"imports\"]\nclassifiers = [\n    \"Development Status :: 4 - Beta\",\n    \"Intended Audience :: Developers\",\n    \"License :: OSI Approved :: Apache Software License\",\n    \"Natural Language :: English\",\n    \"Programming Language :: Python :: 3\",\n    \"Programming Language :: Python :: 3.9\",\n    \"Programming Language :: Python :: 3.10\",\n    \"Programming Language :: Python :: 3.11\",\n    \"Programming Language :: Python :: 3.12\",\n    \"Programming Language :: Python :: 3.13\",\n]\nrequires-python = \">=3.9, <3.14\"\ndependencies = [\n    \"yarg>=0.1.9\",\n    \"docopt>=0.6.2\",\n    \"nbconvert>=7.11.0\",\n    \"ipython>=8.12.3\",\n]\n[project.optional-dependencies]\ndev = [\n    \"flake8>=6.1.0\",\n    \"tox>=4.11.3\",\n    \"coverage>=7.3.2\",\n    \"sphinx>=7.2.6;python_version>='3.9'\",\n]\n[tool.poetry.group.dev.dependencies]  # for legacy usage\nflake8 = \"^6.1.0\"\ntox = \"^4.11.3\"\ncoverage = \"^7.3.2\"\nsphinx = { version = \"^7.2.6\", python = \">=3.9\" }\n\n[project.scripts]\npipreqs = \"pipreqs.pipreqs:main\"\n\n[build-system]\nrequires = [\"poetry-core>=2.0.0,<3.0.0\"]\nbuild-backend = \"poetry.core.masonry.api\"\n"
  },
  {
    "path": "tests/__init__.py",
    "content": "# -*- coding: utf-8 -*-\n"
  },
  {
    "path": "tests/_data/empty.txt",
    "content": ""
  },
  {
    "path": "tests/_data/imports.txt",
    "content": "pandas==2.0.0\nnumpy>=1.2.3\ntorch<4.0.0"
  },
  {
    "path": "tests/_data/imports_any_version.txt",
    "content": "numpy\r\npandas==2.0.0\r\ntensorflow\r\ntorch<4.0.0"
  },
  {
    "path": "tests/_data/imports_no_version.txt",
    "content": "pandas\r\ntensorflow\r\ntorch"
  },
  {
    "path": "tests/_data/models.py",
    "content": ""
  },
  {
    "path": "tests/_data/test.py",
    "content": "\"\"\"unused import\"\"\"\n# pylint: disable=undefined-all-variable, import-error, no-absolute-import, too-few-public-methods, missing-docstring\nimport xml.etree  # [unused-import]\nimport xml.sax  # [unused-import]\nimport os.path as test  # [unused-import]\nfrom sys import argv as test2  # [unused-import]\nfrom sys import flags  # [unused-import]\n# +1:[unused-import,unused-import]\nfrom collections import deque, OrderedDict, Counter\n# All imports above should be ignored\nimport requests  # [unused-import]\n\n# setuptools\nimport zipimport  # command/easy_install.py\n\n# twisted\nfrom importlib import invalidate_caches  # python/test/test_deprecate.py\n\n# astroid\nimport zipimport  # manager.py\n# IPython\nfrom importlib.machinery import all_suffixes  # core/completerlib.py\nimport importlib  # html/notebookapp.py\n\nfrom IPython.utils.importstring import import_item  # Many files\n\n# pyflakes\n# test/test_doctests.py\nfrom pyflakes.test.test_imports import Test as TestImports\n\n# Nose\nfrom nose.importer import Importer, add_path, remove_path  # loader.py\n\n# see issue #88\nimport analytics\nimport flask_seasurf\n\nimport atexit\nfrom __future__ import print_function\nfrom docopt import docopt\nimport curses, logging, sqlite3\nimport logging\nimport os\nimport sqlite3\nimport time\nimport sys\nimport signal\nimport bs4\nimport nonexistendmodule\nimport boto as b, peewee as p\n# import django\nimport flask.ext.somext  # # #\nfrom sqlalchemy import model\ntry:\n    import ujson as json\nexcept ImportError:\n    import json\n\nimport models\n\n\ndef main():\n    pass\n\nimport after_method_is_valid_even_if_not_pep8\n"
  },
  {
    "path": "tests/_data_clean/test.py",
    "content": "\"\"\"unused import\"\"\"\n# pylint: disable=undefined-all-variable, import-error, no-absolute-import, too-few-public-methods, missing-docstring\nimport xml.etree  # [unused-import]\nimport xml.sax  # [unused-import]\nimport os.path as test  # [unused-import]\nfrom sys import argv as test2  # [unused-import]\nfrom sys import flags  # [unused-import]\n# +1:[unused-import,unused-import]\nfrom collections import deque, OrderedDict, Counter\n# All imports above should be ignored\nimport requests  # [unused-import]\n\n# setuptools\nimport zipimport  # command/easy_install.py\n\n# twisted\nfrom importlib import invalidate_caches  # python/test/test_deprecate.py\n\n# astroid\nimport zipimport  # manager.py\n# IPython\nfrom importlib.machinery import all_suffixes  # core/completerlib.py\nimport importlib  # html/notebookapp.py\n\nfrom IPython.utils.importstring import import_item  # Many files\n\n# pyflakes\n# test/test_doctests.py\nfrom pyflakes.test.test_imports import Test as TestImports\n\n# Nose\nfrom nose.importer import Importer, add_path, remove_path  # loader.py\n\n# see issue #88\nimport analytics\nimport flask_seasurf\n\nimport atexit\nfrom __future__ import print_function\nfrom docopt import docopt\nimport curses, logging, sqlite3\nimport logging\nimport os\nimport sqlite3\nimport time\nimport sys\nimport signal\nimport bs4\nimport nonexistendmodule\nimport boto as b, peewee as p\n# import django\nimport flask.ext.somext  # # #\n# from sqlalchemy import model\ntry:\n    import ujson as json\nexcept ImportError:\n    import json\n\nimport models\n\n\ndef main():\n    pass\n\nimport after_method_is_valid_even_if_not_pep8\n"
  },
  {
    "path": "tests/_data_duplicated_deps/db.py",
    "content": "import pymongo\nfrom bson.objectid import ObjectId\n\n# 'bson' package is mapped to 'pymongo'.\n# But running pipreqs should not result in two duplicated\n# lines 'pymongo==x.x.x'.\n"
  },
  {
    "path": "tests/_data_ignore/.ignore_second/ignored.py",
    "content": "# Everything in here should be ignored\nfrom pattern.web import Twitter, plaintext"
  },
  {
    "path": "tests/_data_ignore/.ignored_dir/ignored.py",
    "content": "# Everything in here should be ignored\nimport click"
  },
  {
    "path": "tests/_data_ignore/test.py",
    "content": "\"\"\"unused import\"\"\"\n# pylint: disable=undefined-all-variable, import-error, no-absolute-import, too-few-public-methods, missing-docstring\nimport xml.etree  # [unused-import]\nimport xml.sax  # [unused-import]\nimport os.path as test  # [unused-import]\nfrom sys import argv as test2  # [unused-import]\nfrom sys import flags  # [unused-import]\n# +1:[unused-import,unused-import]\nfrom collections import deque, OrderedDict, Counter\n# All imports above should be ignored\nimport requests  # [unused-import]\n\n# setuptools\nimport zipimport  # command/easy_install.py\n\n# twisted\nfrom importlib import invalidate_caches  # python/test/test_deprecate.py\n\n# astroid\nimport zipimport  # manager.py\n# IPython\nfrom importlib.machinery import all_suffixes  # core/completerlib.py\nimport importlib  # html/notebookapp.py\n\nfrom IPython.utils.importstring import import_item  # Many files\n\n# pyflakes\n# test/test_doctests.py\nfrom pyflakes.test.test_imports import Test as TestImports\n\n# Nose\nfrom nose.importer import Importer, add_path, remove_path  # loader.py\n\nimport atexit\nfrom __future__ import print_function\nfrom docopt import docopt\nimport curses, logging, sqlite3\nimport logging\nimport os\nimport sqlite3\nimport time\nimport sys\nimport signal\nimport bs4\nimport nonexistendmodule\nimport boto as b, peewee as p\n# import django\nimport flask.ext.somext  # # #\nfrom sqlalchemy import model\ntry:\n    import ujson as json\nexcept ImportError:\n    import json\n\nimport models\n\n\ndef main():\n    pass\n\nimport after_method_is_valid_even_if_not_pep8\n"
  },
  {
    "path": "tests/_data_notebook/magic_commands.ipynb",
    "content": "{\n \"cells\": [\n  {\n   \"cell_type\": \"markdown\",\n   \"metadata\": {},\n   \"source\": [\n    \"# Magic test\"\n   ]\n  },\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": null,\n   \"metadata\": {},\n   \"outputs\": [],\n   \"source\": [\n    \"%automagic true\"\n   ]\n  },\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": null,\n   \"metadata\": {},\n   \"outputs\": [],\n   \"source\": [\n    \"ls -la\\n\",\n    \"logstate\"\n   ]\n  },\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": null,\n   \"metadata\": {},\n   \"outputs\": [],\n   \"source\": [\n    \"ls -la\"\n   ]\n  },\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": null,\n   \"metadata\": {},\n   \"outputs\": [],\n   \"source\": [\n    \"%automagic false\"\n   ]\n  },\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": null,\n   \"metadata\": {},\n   \"outputs\": [],\n   \"source\": [\n    \"ls -la\"\n   ]\n  }\n ],\n \"metadata\": {\n  \"language_info\": {\n   \"name\": \"python\"\n  },\n  \"orig_nbformat\": 4\n },\n \"nbformat\": 4,\n \"nbformat_minor\": 2\n}\n"
  },
  {
    "path": "tests/_data_notebook/markdown_test.ipynb",
    "content": "{\n \"cells\": [\n  {\n   \"cell_type\": \"markdown\",\n   \"metadata\": {},\n   \"source\": [\n    \"# Markdown test\\n\",\n    \"import sklearn\\n\",\n    \"\\n\",\n    \"```python\\n\",\n    \"import FastAPI\\n\",\n    \"```\"\n   ]\n  }\n ],\n \"metadata\": {\n  \"kernelspec\": {\n   \"display_name\": \"Python 3\",\n   \"language\": \"python\",\n   \"name\": \"python3\"\n  },\n  \"language_info\": {\n   \"codemirror_mode\": {\n    \"name\": \"ipython\",\n    \"version\": 3\n   },\n   \"file_extension\": \".py\",\n   \"mimetype\": \"text/x-python\",\n   \"name\": \"python\",\n   \"nbconvert_exporter\": \"python\",\n   \"pygments_lexer\": \"ipython3\",\n   \"version\": \"3.8.1\"\n  }\n },\n \"nbformat\": 4,\n \"nbformat_minor\": 4\n}\n"
  },
  {
    "path": "tests/_data_notebook/models.py",
    "content": ""
  },
  {
    "path": "tests/_data_notebook/test.ipynb",
    "content": "{\n \"cells\": [\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": null,\n   \"metadata\": {},\n   \"outputs\": [],\n   \"source\": [\n    \"\\\"\\\"\\\"unused import\\\"\\\"\\\"\\n\",\n    \"# pylint: disable=undefined-all-variable, import-error, no-absolute-import, too-few-public-methods, missing-docstring\\n\",\n    \"import xml.etree  # [unused-import]\\n\",\n    \"import xml.sax  # [unused-import]\\n\",\n    \"import os.path as test  # [unused-import]\\n\",\n    \"from sys import argv as test2  # [unused-import]\\n\",\n    \"from sys import flags  # [unused-import]\\n\",\n    \"# +1:[unused-import,unused-import]\\n\",\n    \"from collections import deque, OrderedDict, Counter\\n\",\n    \"# All imports above should be ignored\\n\",\n    \"import requests  # [unused-import]\\n\",\n    \"\\n\",\n    \"# setuptools\\n\",\n    \"import zipimport  # command/easy_install.py\\n\",\n    \"\\n\",\n    \"# twisted\\n\",\n    \"from importlib import invalidate_caches  # python/test/test_deprecate.py\\n\",\n    \"\\n\",\n    \"# astroid\\n\",\n    \"import zipimport  # manager.py\\n\",\n    \"# IPython\\n\",\n    \"from importlib.machinery import all_suffixes  # core/completerlib.py\\n\",\n    \"import importlib  # html/notebookapp.py\\n\",\n    \"\\n\",\n    \"from IPython.utils.importstring import import_item  # Many files\\n\",\n    \"\\n\",\n    \"# pyflakes\\n\",\n    \"# test/test_doctests.py\\n\",\n    \"from pyflakes.test.test_imports import Test as TestImports\\n\",\n    \"\\n\",\n    \"# Nose\\n\",\n    \"from nose.importer import Importer, add_path, remove_path  # loader.py\\n\",\n    \"\\n\",\n    \"import atexit\\n\",\n    \"from __future__ import print_function\\n\",\n    \"from docopt import docopt\\n\",\n    \"import curses, logging, sqlite3\\n\",\n    \"import logging\\n\",\n    \"import os\\n\",\n    \"import sqlite3\\n\",\n    \"import time\\n\",\n    \"import sys\\n\",\n    \"import signal\\n\",\n    \"import bs4\\n\",\n    \"import nonexistendmodule\\n\",\n    \"import boto as b, peewee as p\\n\",\n    \"# import django\\n\",\n    \"import flask.ext.somext  # # #\\n\",\n    \"from sqlalchemy import model\"\n   ]\n  },\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": null,\n   \"metadata\": {},\n   \"outputs\": [],\n   \"source\": [\n    \"try:\\n\",\n    \"    import ujson as json\\n\",\n    \"except ImportError:\\n\",\n    \"    import json\\n\",\n    \"\\n\",\n    \"import models\\n\",\n    \"\\n\",\n    \"\\n\",\n    \"def main():\\n\",\n    \"    pass\\n\",\n    \"\\n\",\n    \"import after_method_is_valid_even_if_not_pep8\"\n   ]\n  }\n ],\n \"metadata\": {\n  \"kernelspec\": {\n   \"display_name\": \"Python 3\",\n   \"language\": \"python\",\n   \"name\": \"python3\"\n  },\n  \"language_info\": {\n   \"codemirror_mode\": {\n    \"name\": \"ipython\",\n    \"version\": 3\n   },\n   \"file_extension\": \".py\",\n   \"mimetype\": \"text/x-python\",\n   \"name\": \"python\",\n   \"nbconvert_exporter\": \"python\",\n   \"pygments_lexer\": \"ipython3\",\n   \"version\": \"3.8.1\"\n  }\n },\n \"nbformat\": 4,\n \"nbformat_minor\": 4\n}\n"
  },
  {
    "path": "tests/_data_pyw/py.py",
    "content": "import airflow\nimport numpy\n\nairflow\nnumpy\n"
  },
  {
    "path": "tests/_data_pyw/pyw.pyw",
    "content": "import matplotlib\nimport pandas\nimport tensorflow\n"
  },
  {
    "path": "tests/_invalid_data/invalid.py",
    "content": "import boto as b, import peewee as p,\n"
  },
  {
    "path": "tests/_invalid_data_notebook/invalid.ipynb",
    "content": "{\n \"cells\": [\n  {\n   \"cell_type\": \"code\",\n   \"execution_count\": null,\n   \"metadata\": {},\n   \"outputs\": [],\n   \"source\": [\n    \"cd .\"\n   ]\n  }\n ],\n \"metadata\": {\n  \"kernelspec\": {\n   \"display_name\": \"Python 3\",\n   \"language\": \"python\",\n   \"name\": \"python3\"\n  },\n  \"language_info\": {\n   \"codemirror_mode\": {\n    \"name\": \"ipython\",\n    \"version\": 3\n   },\n   \"file_extension\": \".py\",\n   \"mimetype\": \"text/x-python\",\n   \"name\": \"python\",\n   \"nbconvert_exporter\": \"python\",\n   \"pygments_lexer\": \"ipython3\",\n   \"version\": \"3.6.4\"\n  }\n },\n \"nbformat\": 4,\n \"nbformat_minor\": 4\n}\n"
  },
  {
    "path": "tests/test_pipreqs.py",
    "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\ntest_pipreqs\n----------------------------------\n\nTests for `pipreqs` module.\n\"\"\"\n\nfrom io import StringIO\nimport logging\nfrom unittest.mock import patch, Mock\nimport unittest\nimport os\nimport requests\nimport sys\nimport warnings\n\nfrom pipreqs import pipreqs\n\n\nclass TestPipreqs(unittest.TestCase):\n\n    @classmethod\n    def setUpClass(cls):\n        # Disable all logs for not spamming the terminal when running tests.\n        logging.disable(logging.CRITICAL)\n\n        # Specific warning not covered by the above command:\n        warnings.filterwarnings(\"ignore\", category=DeprecationWarning, module=\"jupyter_client\")\n\n        cls.modules = [\n            \"flask\",\n            \"requests\",\n            \"sqlalchemy\",\n            \"docopt\",\n            \"boto\",\n            \"ipython\",\n            \"pyflakes\",\n            \"nose\",\n            \"analytics\",\n            \"flask_seasurf\",\n            \"peewee\",\n            \"ujson\",\n            \"nonexistendmodule\",\n            \"bs4\",\n            \"after_method_is_valid_even_if_not_pep8\",\n        ]\n        cls.modules2 = [\"beautifulsoup4\"]\n        cls.local = [\"docopt\", \"requests\", \"nose\", \"pyflakes\", \"ipython\"]\n        cls.project = os.path.join(os.path.dirname(__file__), \"_data\")\n        cls.empty_filepath = os.path.join(cls.project, \"empty.txt\")\n        cls.imports_filepath = os.path.join(cls.project, \"imports.txt\")\n        cls.imports_no_version_filepath = os.path.join(cls.project, \"imports_no_version.txt\")\n        cls.imports_any_version_filepath = os.path.join(cls.project, \"imports_any_version.txt\")\n        cls.non_existent_filepath = os.path.join(cls.project, \"non_existent_file.txt\")\n\n        cls.parsed_packages = [\n            {\"name\": \"pandas\", \"version\": \"2.0.0\"},\n            {\"name\": \"numpy\", \"version\": \"1.2.3\"},\n            {\"name\": \"torch\", \"version\": \"4.0.0\"},\n        ]\n\n        cls.parsed_packages_no_version = [\n            {\"name\": \"pandas\", \"version\": None},\n            {\"name\": \"tensorflow\", \"version\": None},\n            {\"name\": \"torch\", \"version\": None},\n        ]\n\n        cls.parsed_packages_any_version = [\n            {\"name\": \"numpy\", \"version\": None},\n            {\"name\": \"pandas\", \"version\": \"2.0.0\"},\n            {\"name\": \"tensorflow\", \"version\": None},\n            {\"name\": \"torch\", \"version\": \"4.0.0\"},\n        ]\n\n        cls.project_clean = os.path.join(os.path.dirname(__file__), \"_data_clean\")\n        cls.project_invalid = os.path.join(os.path.dirname(__file__), \"_invalid_data\")\n        cls.project_with_ignore_directory = os.path.join(os.path.dirname(__file__), \"_data_ignore\")\n        cls.project_with_duplicated_deps = os.path.join(os.path.dirname(__file__), \"_data_duplicated_deps\")\n\n        cls.requirements_path = os.path.join(cls.project, \"requirements.txt\")\n        cls.alt_requirement_path = os.path.join(cls.project, \"requirements2.txt\")\n        cls.non_existing_filepath = \"xpto\"\n\n        cls.project_with_notebooks = os.path.join(os.path.dirname(__file__), \"_data_notebook\")\n        cls.project_with_invalid_notebooks = os.path.join(os.path.dirname(__file__), \"_invalid_data_notebook\")\n\n        cls.python_path_same_imports = os.path.join(os.path.dirname(__file__), \"_data/test.py\")\n        cls.notebook_path_same_imports = os.path.join(os.path.dirname(__file__), \"_data_notebook/test.ipynb\")\n\n    def test_get_all_imports(self):\n        imports = pipreqs.get_all_imports(self.project)\n        self.assertEqual(len(imports), 15)\n        for item in imports:\n            self.assertTrue(item.lower() in self.modules, \"Import is missing: \" + item)\n        self.assertFalse(\"time\" in imports)\n        self.assertFalse(\"logging\" in imports)\n        self.assertFalse(\"curses\" in imports)\n        self.assertFalse(\"__future__\" in imports)\n        self.assertFalse(\"django\" in imports)\n        self.assertFalse(\"models\" in imports)\n\n    def test_deduplicate_dependencies(self):\n        imports = pipreqs.get_all_imports(self.project_with_duplicated_deps)\n        pkgs = pipreqs.get_pkg_names(imports)\n        self.assertEqual(len(pkgs), 1)\n        self.assertTrue(\"pymongo\" in pkgs)\n\n    def test_invalid_python(self):\n        \"\"\"\n        Test that invalid python files cannot be imported.\n        \"\"\"\n        self.assertRaises(SyntaxError, pipreqs.get_all_imports, self.project_invalid)\n\n    def test_ignore_errors(self):\n        \"\"\"\n        Test that invalid python files do not raise an exception when ignore_errors is True.\n        \"\"\"\n        imports = pipreqs.get_all_imports(self.project_invalid, ignore_errors=True)\n        self.assertEqual(len(imports), 0)\n\n    def test_get_imports_info(self):\n        \"\"\"\n        Test to see that the right number of packages were found on PyPI\n        \"\"\"\n        imports = pipreqs.get_all_imports(self.project)\n        with_info = pipreqs.get_imports_info(imports)\n        # Should contain 10 items without the \"nonexistendmodule\" and\n        # \"after_method_is_valid_even_if_not_pep8\"\n        self.assertEqual(len(with_info), 13)\n        for item in with_info:\n            self.assertTrue(\n                item[\"name\"].lower() in self.modules,\n                \"Import item appears to be missing \" + item[\"name\"],\n            )\n\n    def test_get_pkg_names(self):\n        pkgs = [\"jury\", \"Japan\", \"camel\", \"Caroline\"]\n        actual_output = pipreqs.get_pkg_names(pkgs)\n        expected_output = [\"camel\", \"Caroline\", \"Japan\", \"jury\"]\n        self.assertEqual(actual_output, expected_output)\n\n    def test_get_use_local_only(self):\n        \"\"\"\n        Test without checking PyPI, check to see if names of local\n        imports matches what we expect\n\n        - Note even though pyflakes isn't in requirements.txt,\n          It's added to locals since it is a development dependency\n          for testing\n        \"\"\"\n        # should find only docopt and requests\n        imports_with_info = pipreqs.get_import_local(self.modules)\n        for item in imports_with_info:\n            self.assertTrue(item[\"name\"].lower() in self.local)\n\n    def test_init(self):\n        \"\"\"\n        Test that all modules we will test upon are in requirements file\n        \"\"\"\n        pipreqs.init(\n            {\n                \"<path>\": self.project,\n                \"--savepath\": None,\n                \"--print\": False,\n                \"--use-local\": None,\n                \"--force\": True,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": None,\n            }\n        )\n        assert os.path.exists(self.requirements_path) == 1\n        with open(self.requirements_path, \"r\") as f:\n            data = f.read().lower()\n            for item in self.modules[:-3]:\n                self.assertTrue(item.lower() in data)\n        # It should be sorted based on names.\n        data = data.strip().split(\"\\n\")\n        self.assertEqual(data, sorted(data))\n\n    def test_init_local_only(self):\n        \"\"\"\n        Test that items listed in requirements.text are the same\n        as locals expected\n        \"\"\"\n        pipreqs.init(\n            {\n                \"<path>\": self.project,\n                \"--savepath\": None,\n                \"--print\": False,\n                \"--use-local\": True,\n                \"--force\": True,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": None,\n            }\n        )\n        assert os.path.exists(self.requirements_path) == 1\n        with open(self.requirements_path, \"r\") as f:\n            data = f.readlines()\n            for item in data:\n                item = item.strip().split(\"==\")\n                self.assertTrue(item[0].lower() in self.local)\n\n    def test_init_savepath(self):\n        \"\"\"\n        Test that we can save requirements.txt correctly\n        to a different path\n        \"\"\"\n        pipreqs.init(\n            {\n                \"<path>\": self.project,\n                \"--savepath\": self.alt_requirement_path,\n                \"--use-local\": None,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--print\": False,\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": None,\n            }\n        )\n        assert os.path.exists(self.alt_requirement_path) == 1\n        with open(self.alt_requirement_path, \"r\") as f:\n            data = f.read().lower()\n            for item in self.modules[:-3]:\n                self.assertTrue(item.lower() in data)\n            for item in self.modules2:\n                self.assertTrue(item.lower() in data)\n\n    def test_init_overwrite(self):\n        \"\"\"\n        Test that if requiremnts.txt exists, it will not be\n        automatically overwritten\n        \"\"\"\n        with open(self.requirements_path, \"w\") as f:\n            f.write(\"should_not_be_overwritten\")\n        pipreqs.init(\n            {\n                \"<path>\": self.project,\n                \"--savepath\": None,\n                \"--use-local\": None,\n                \"--force\": None,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--print\": False,\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": None,\n            }\n        )\n        assert os.path.exists(self.requirements_path) == 1\n        with open(self.requirements_path, \"r\") as f:\n            data = f.read().lower()\n            self.assertEqual(data, \"should_not_be_overwritten\")\n\n    def test_get_import_name_without_alias(self):\n        \"\"\"\n        Test that function get_name_without_alias()\n        will work on a string.\n        - Note: This isn't truly needed when pipreqs is walking\n          the AST to find imports\n        \"\"\"\n        import_name_with_alias = \"requests as R\"\n        expected_import_name_without_alias = \"requests\"\n        import_name_without_aliases = pipreqs.get_name_without_alias(import_name_with_alias)\n        self.assertEqual(import_name_without_aliases, expected_import_name_without_alias)\n\n    def test_custom_pypi_server(self):\n        \"\"\"\n        Test that trying to get a custom pypi sever fails correctly\n        \"\"\"\n        self.assertRaises(\n            requests.exceptions.MissingSchema,\n            pipreqs.init,\n            {\n                \"<path>\": self.project,\n                \"--savepath\": None,\n                \"--print\": False,\n                \"--use-local\": None,\n                \"--force\": True,\n                \"--proxy\": None,\n                \"--pypi-server\": \"nonexistent\",\n            },\n        )\n\n    def test_ignored_directory(self):\n        \"\"\"\n        Test --ignore parameter\n        \"\"\"\n        pipreqs.init(\n            {\n                \"<path>\": self.project_with_ignore_directory,\n                \"--savepath\": None,\n                \"--print\": False,\n                \"--use-local\": None,\n                \"--force\": True,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--ignore\": \".ignored_dir,.ignore_second\",\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": None,\n            }\n        )\n        with open(os.path.join(self.project_with_ignore_directory, \"requirements.txt\"), \"r\") as f:\n            data = f.read().lower()\n            for item in [\"click\", \"getpass\"]:\n                self.assertFalse(item.lower() in data)\n\n    def test_dynamic_version_no_pin_scheme(self):\n        \"\"\"\n        Test --mode=no-pin\n        \"\"\"\n        pipreqs.init(\n            {\n                \"<path>\": self.project_with_ignore_directory,\n                \"--savepath\": None,\n                \"--print\": False,\n                \"--use-local\": None,\n                \"--force\": True,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": \"no-pin\",\n            }\n        )\n        with open(os.path.join(self.project_with_ignore_directory, \"requirements.txt\"), \"r\") as f:\n            data = f.read().lower()\n            for item in [\"beautifulsoup4\", \"boto\"]:\n                self.assertTrue(item.lower() in data)\n\n    def test_dynamic_version_gt_scheme(self):\n        \"\"\"\n        Test --mode=gt\n        \"\"\"\n        pipreqs.init(\n            {\n                \"<path>\": self.project_with_ignore_directory,\n                \"--savepath\": None,\n                \"--print\": False,\n                \"--use-local\": None,\n                \"--force\": True,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": \"gt\",\n            }\n        )\n        with open(os.path.join(self.project_with_ignore_directory, \"requirements.txt\"), \"r\") as f:\n            data = f.readlines()\n            for item in data:\n                symbol = \">=\"\n                message = \"symbol is not in item\"\n                self.assertIn(symbol, item, message)\n\n    def test_dynamic_version_compat_scheme(self):\n        \"\"\"\n        Test --mode=compat\n        \"\"\"\n        pipreqs.init(\n            {\n                \"<path>\": self.project_with_ignore_directory,\n                \"--savepath\": None,\n                \"--print\": False,\n                \"--use-local\": None,\n                \"--force\": True,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": \"compat\",\n            }\n        )\n        with open(os.path.join(self.project_with_ignore_directory, \"requirements.txt\"), \"r\") as f:\n            data = f.readlines()\n            for item in data:\n                symbol = \"~=\"\n                message = \"symbol is not in item\"\n                self.assertIn(symbol, item, message)\n\n    def test_clean(self):\n        \"\"\"\n        Test --clean parameter\n        \"\"\"\n        pipreqs.init(\n            {\n                \"<path>\": self.project,\n                \"--savepath\": None,\n                \"--print\": False,\n                \"--use-local\": None,\n                \"--force\": True,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": None,\n            }\n        )\n        assert os.path.exists(self.requirements_path) == 1\n        pipreqs.init(\n            {\n                \"<path>\": self.project,\n                \"--savepath\": None,\n                \"--print\": False,\n                \"--use-local\": None,\n                \"--force\": None,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--diff\": None,\n                \"--clean\": self.requirements_path,\n                \"--mode\": \"non-pin\",\n            }\n        )\n        with open(self.requirements_path, \"r\") as f:\n            data = f.read().lower()\n            for item in self.modules[:-3]:\n                self.assertTrue(item.lower() in data)\n\n    def test_clean_with_imports_to_clean(self):\n        \"\"\"\n        Test --clean parameter when there are imports to clean\n        \"\"\"\n        cleaned_module = \"sqlalchemy\"\n        pipreqs.init(\n            {\n                \"<path>\": self.project,\n                \"--savepath\": None,\n                \"--print\": False,\n                \"--use-local\": None,\n                \"--force\": True,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": None,\n            }\n        )\n        assert os.path.exists(self.requirements_path) == 1\n        pipreqs.init(\n            {\n                \"<path>\": self.project_clean,\n                \"--savepath\": None,\n                \"--print\": False,\n                \"--use-local\": None,\n                \"--force\": None,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--diff\": None,\n                \"--clean\": self.requirements_path,\n                \"--mode\": \"non-pin\",\n            }\n        )\n        with open(self.requirements_path, \"r\") as f:\n            data = f.read().lower()\n            self.assertTrue(cleaned_module not in data)\n\n    def test_compare_modules(self):\n        test_cases = [\n            (self.empty_filepath, [], set()),  # both empty\n            (self.empty_filepath, self.parsed_packages, set()),  # only file empty\n            (\n                self.imports_filepath,\n                [],\n                set(package[\"name\"] for package in self.parsed_packages),\n            ),  # only imports empty\n            (self.imports_filepath, self.parsed_packages, set()),  # no difference\n            (\n                self.imports_filepath,\n                self.parsed_packages[1:],\n                set([self.parsed_packages[0][\"name\"]]),\n            ),  # common case\n        ]\n\n        for test_case in test_cases:\n            with self.subTest(test_case):\n                filename, imports, expected_modules_not_imported = test_case\n\n                modules_not_imported = pipreqs.compare_modules(filename, imports)\n\n                self.assertSetEqual(modules_not_imported, expected_modules_not_imported)\n\n    def test_output_requirements(self):\n        \"\"\"\n        Test --print parameter\n        It should print to stdout the same content as requeriments.txt\n        \"\"\"\n\n        capturedOutput = StringIO()\n        sys.stdout = capturedOutput\n\n        pipreqs.init(\n            {\n                \"<path>\": self.project,\n                \"--savepath\": None,\n                \"--print\": True,\n                \"--use-local\": None,\n                \"--force\": None,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": None,\n            }\n        )\n        pipreqs.init(\n            {\n                \"<path>\": self.project,\n                \"--savepath\": None,\n                \"--print\": False,\n                \"--use-local\": None,\n                \"--force\": True,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": None,\n            }\n        )\n\n        with open(self.requirements_path, \"r\") as f:\n            file_content = f.read().lower()\n            stdout_content = capturedOutput.getvalue().lower()\n            self.assertTrue(file_content == stdout_content)\n\n    def test_import_notebooks(self):\n        \"\"\"\n        Test the function get_all_imports() using .ipynb file\n        \"\"\"\n        self.mock_scan_notebooks()\n        imports = pipreqs.get_all_imports(self.project_with_notebooks)\n        for item in imports:\n            self.assertTrue(item.lower() in self.modules, \"Import is missing: \" + item)\n        not_desired_imports = [\"time\", \"logging\", \"curses\", \"__future__\", \"django\", \"models\", \"FastAPI\", \"sklearn\"]\n        for not_desired_import in not_desired_imports:\n            self.assertFalse(\n                not_desired_import in imports,\n                f\"{not_desired_import} was imported, but it should not have been.\"\n            )\n\n    def test_invalid_notebook(self):\n        \"\"\"\n        Test that invalid notebook files cannot be imported.\n        \"\"\"\n        self.mock_scan_notebooks()\n        self.assertRaises(SyntaxError, pipreqs.get_all_imports, self.project_with_invalid_notebooks)\n\n    def test_ipynb_2_py(self):\n        \"\"\"\n        Test the function ipynb_2_py() which converts .ipynb file to .py format\n        \"\"\"\n        python_imports = pipreqs.get_all_imports(self.python_path_same_imports)\n        notebook_imports = pipreqs.get_all_imports(self.notebook_path_same_imports)\n        self.assertEqual(python_imports, notebook_imports)\n\n    def test_file_ext_is_allowed(self):\n        \"\"\"\n        Test the  function file_ext_is_allowed()\n        \"\"\"\n        self.assertTrue(pipreqs.file_ext_is_allowed(\"main.py\", [\".py\"]))\n        self.assertTrue(pipreqs.file_ext_is_allowed(\"main.py\", [\".py\", \".ipynb\"]))\n        self.assertFalse(pipreqs.file_ext_is_allowed(\"main.py\", [\".ipynb\"]))\n\n    def test_parse_requirements(self):\n        \"\"\"\n        Test parse_requirements function\n        \"\"\"\n        test_cases = [\n            (self.empty_filepath, []),  # empty file\n            (self.imports_filepath, self.parsed_packages),  # imports with versions\n            (\n                self.imports_no_version_filepath,\n                self.parsed_packages_no_version,\n            ),  # imports without versions\n            (\n                self.imports_any_version_filepath,\n                self.parsed_packages_any_version,\n            ),  # imports with and without versions\n        ]\n\n        for test in test_cases:\n            with self.subTest(test):\n                filename, expected_parsed_requirements = test\n\n                parsed_requirements = pipreqs.parse_requirements(filename)\n\n                self.assertListEqual(parsed_requirements, expected_parsed_requirements)\n\n    @patch(\"sys.exit\")\n    def test_parse_requirements_handles_file_not_found(self, exit_mock):\n        captured_output = StringIO()\n        sys.stdout = captured_output\n\n        # This assertion is needed, because since \"sys.exit\" is mocked, the program won't end,\n        # and the code that is after the except block will be run\n        with self.assertRaises(UnboundLocalError):\n            pipreqs.parse_requirements(self.non_existing_filepath)\n\n            exit_mock.assert_called_once_with(1)\n\n            printed_text = captured_output.getvalue().strip()\n            sys.stdout = sys.__stdout__\n\n            self.assertEqual(printed_text, \"File xpto was not found. Please, fix it and run again.\")\n\n    def test_ignore_notebooks(self):\n        \"\"\"\n        Test if notebooks are ignored when the scan-notebooks parameter is False\n        \"\"\"\n        notebook_requirement_path = os.path.join(self.project_with_notebooks, \"requirements.txt\")\n\n        pipreqs.init(\n            {\n                \"<path>\": self.project_with_notebooks,\n                \"--savepath\": None,\n                \"--use-local\": None,\n                \"--force\": True,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--print\": False,\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": None,\n                \"--scan-notebooks\": False,\n            }\n        )\n        assert os.path.exists(notebook_requirement_path) == 1\n        assert os.path.getsize(notebook_requirement_path) == 1    # file only has a \"\\n\", meaning it's empty\n\n    def test_pipreqs_get_imports_from_pyw_file(self):\n        pyw_test_dirpath = os.path.join(os.path.dirname(__file__), \"_data_pyw\")\n        requirements_path = os.path.join(pyw_test_dirpath, \"requirements.txt\")\n\n        pipreqs.init(\n            {\n                \"<path>\": pyw_test_dirpath,\n                \"--savepath\": None,\n                \"--print\": False,\n                \"--use-local\": None,\n                \"--force\": True,\n                \"--proxy\": None,\n                \"--pypi-server\": None,\n                \"--diff\": None,\n                \"--clean\": None,\n                \"--mode\": None,\n            }\n        )\n\n        self.assertTrue(os.path.exists(requirements_path))\n\n        expected_imports = [\n            \"airflow\",\n            \"matplotlib\",\n            \"numpy\",\n            \"pandas\",\n            \"tensorflow\",\n        ]\n\n        with open(requirements_path, \"r\") as f:\n            imports_data = f.read().lower()\n            for _import in expected_imports:\n                self.assertTrue(\n                    _import.lower() in imports_data,\n                    f\"'{_import}' import was expected but not found.\",\n                )\n\n        os.remove(requirements_path)\n\n    def mock_scan_notebooks(self):\n        pipreqs.scan_noteboooks = Mock(return_value=True)\n        pipreqs.handle_scan_noteboooks()\n\n    def tearDown(self):\n        \"\"\"\n        Remove requiremnts.txt files that were written\n        \"\"\"\n        try:\n            os.remove(self.requirements_path)\n        except OSError:\n            pass\n        try:\n            os.remove(self.alt_requirement_path)\n        except OSError:\n            pass\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tox.ini",
    "content": "[tox]\nisolated_build = true\nenvlist = py39, py310, py311, py312, py313, pypy3, flake8\n\n[gh-actions]\npython =\n    3.9: py39\n    3.10: py310\n    3.11: py311\n    3.12: py312\n    3.13: py313\n    pypy-3.10: pypy3\n\n[testenv]\nsetenv =\n    PYTHONPATH = {toxinidir}:{toxinidir}/pipreqs\ncommands =\n    python -m unittest discover\n\n[testenv:flake8]\ndeps = flake8\ncommands = flake8 pipreqs tests\n\n[flake8]\nexclude =\n    tests/_data/\n    tests/_data_clean/\n    tests/_data_duplicated_deps/\n    tests/_data_ignore/\n    tests/_invalid_data/\nmax-line-length = 120\n"
  }
]