├── .bin ├── srclib-python └── srclib-python.bat ├── .dockerignore ├── .gitattributes ├── .gitignore ├── .gitmodules ├── .travis.yml ├── Makefile ├── NOTICE ├── README.md ├── Srclibtoolchain ├── grapher ├── .gitignore ├── __init__.py ├── builtin.py ├── django.py ├── file_grapher.py ├── file_grapher_test.py ├── graph.py ├── pydepwrap.py ├── scan.py ├── structures.py └── util.py ├── requirements.txt ├── setup.py ├── srclib-python.py └── testdata ├── .gitignore └── expected ├── python-django-app └── myproject │ ├── DjangoApp.depresolve.json │ ├── DjangoApp.graph.json │ └── DjangoApp.unit.json ├── python-link-tests └── python-link-tests │ ├── PipPackage.depresolve.json │ ├── PipPackage.graph.json │ ├── PipPackage.unit.json │ ├── PythonTestPackage.depresolve.json │ ├── PythonTestPackage.graph.json │ └── PythonTestPackage.unit.json ├── python-mock-stdlib ├── Python │ ├── PipPackage.depresolve.json │ ├── PipPackage.graph.json │ └── PipPackage.unit.json └── __builtin__ │ ├── PipPackage.depresolve.json │ ├── PipPackage.graph.json │ └── PipPackage.unit.json ├── python-no-url └── python-no-uri │ ├── PipPackage.depresolve.json │ ├── PipPackage.graph.json │ └── PipPackage.unit.json ├── python-reqstxt-setuppy └── python-reqstxt-setuppy │ ├── PipPackage.depresolve.json │ ├── PipPackage.graph.json │ └── PipPackage.unit.json ├── python-sample-0 └── python-sample-0 │ ├── PipPackage.depresolve.json │ ├── PipPackage.graph.json │ └── PipPackage.unit.json ├── python-sample-1 └── python-sample-1 │ ├── PipPackage.depresolve.json │ ├── PipPackage.graph.json │ └── PipPackage.unit.json ├── python-sample-2 └── python-sample-2 │ ├── PipPackage.depresolve.json │ ├── PipPackage.graph.json │ └── PipPackage.unit.json ├── python-single-module-dependent └── single-module-dependent │ ├── PipPackage.depresolve.json │ ├── PipPackage.graph.json │ └── PipPackage.unit.json ├── python-single-module-lib └── single-module-lib │ ├── PipPackage.depresolve.json │ ├── PipPackage.graph.json │ └── PipPackage.unit.json ├── python-stdlib-refs └── python-stdlib-refs │ ├── PipPackage.depresolve.json │ ├── PipPackage.graph.json │ └── PipPackage.unit.json ├── python-unresolved-reqstxt └── python-unresolved-reqstxt │ ├── PipPackage.depresolve.json │ ├── PipPackage.graph.json │ └── PipPackage.unit.json └── python27-syntax ├── PipPackage.depresolve.json ├── PipPackage.graph.json └── PipPackage.unit.json /.bin/srclib-python: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/.bin/srclib-python -------------------------------------------------------------------------------- /.bin/srclib-python.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/.bin/srclib-python.bat -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | .git 2 | .bin/ 3 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh text eol=lf -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/.gitmodules -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/.travis.yml -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/Makefile -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/NOTICE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/README.md -------------------------------------------------------------------------------- /Srclibtoolchain: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/Srclibtoolchain -------------------------------------------------------------------------------- /grapher/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc -------------------------------------------------------------------------------- /grapher/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /grapher/builtin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/grapher/builtin.py -------------------------------------------------------------------------------- /grapher/django.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/grapher/django.py -------------------------------------------------------------------------------- /grapher/file_grapher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/grapher/file_grapher.py -------------------------------------------------------------------------------- /grapher/file_grapher_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/grapher/file_grapher_test.py -------------------------------------------------------------------------------- /grapher/graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/grapher/graph.py -------------------------------------------------------------------------------- /grapher/pydepwrap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/grapher/pydepwrap.py -------------------------------------------------------------------------------- /grapher/scan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/grapher/scan.py -------------------------------------------------------------------------------- /grapher/structures.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/grapher/structures.py -------------------------------------------------------------------------------- /grapher/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/grapher/util.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/setup.py -------------------------------------------------------------------------------- /srclib-python.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/srclib-python.py -------------------------------------------------------------------------------- /testdata/.gitignore: -------------------------------------------------------------------------------- 1 | actual/ -------------------------------------------------------------------------------- /testdata/expected/python-django-app/myproject/DjangoApp.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-django-app/myproject/DjangoApp.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-django-app/myproject/DjangoApp.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-django-app/myproject/DjangoApp.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-django-app/myproject/DjangoApp.unit.json -------------------------------------------------------------------------------- /testdata/expected/python-link-tests/python-link-tests/PipPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-link-tests/python-link-tests/PipPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-link-tests/python-link-tests/PipPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-link-tests/python-link-tests/PipPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-link-tests/python-link-tests/PipPackage.unit.json -------------------------------------------------------------------------------- /testdata/expected/python-link-tests/python-link-tests/PythonTestPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-link-tests/python-link-tests/PythonTestPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-link-tests/python-link-tests/PythonTestPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-link-tests/python-link-tests/PythonTestPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-link-tests/python-link-tests/PythonTestPackage.unit.json -------------------------------------------------------------------------------- /testdata/expected/python-mock-stdlib/Python/PipPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-mock-stdlib/Python/PipPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-mock-stdlib/Python/PipPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-mock-stdlib/Python/PipPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-mock-stdlib/Python/PipPackage.unit.json -------------------------------------------------------------------------------- /testdata/expected/python-mock-stdlib/__builtin__/PipPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-mock-stdlib/__builtin__/PipPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-mock-stdlib/__builtin__/PipPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-mock-stdlib/__builtin__/PipPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-mock-stdlib/__builtin__/PipPackage.unit.json -------------------------------------------------------------------------------- /testdata/expected/python-no-url/python-no-uri/PipPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-no-url/python-no-uri/PipPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-no-url/python-no-uri/PipPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-no-url/python-no-uri/PipPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-no-url/python-no-uri/PipPackage.unit.json -------------------------------------------------------------------------------- /testdata/expected/python-reqstxt-setuppy/python-reqstxt-setuppy/PipPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-reqstxt-setuppy/python-reqstxt-setuppy/PipPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-reqstxt-setuppy/python-reqstxt-setuppy/PipPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-reqstxt-setuppy/python-reqstxt-setuppy/PipPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-reqstxt-setuppy/python-reqstxt-setuppy/PipPackage.unit.json -------------------------------------------------------------------------------- /testdata/expected/python-sample-0/python-sample-0/PipPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-sample-0/python-sample-0/PipPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-sample-0/python-sample-0/PipPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-sample-0/python-sample-0/PipPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-sample-0/python-sample-0/PipPackage.unit.json -------------------------------------------------------------------------------- /testdata/expected/python-sample-1/python-sample-1/PipPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-sample-1/python-sample-1/PipPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-sample-1/python-sample-1/PipPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-sample-1/python-sample-1/PipPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-sample-1/python-sample-1/PipPackage.unit.json -------------------------------------------------------------------------------- /testdata/expected/python-sample-2/python-sample-2/PipPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-sample-2/python-sample-2/PipPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-sample-2/python-sample-2/PipPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-sample-2/python-sample-2/PipPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-sample-2/python-sample-2/PipPackage.unit.json -------------------------------------------------------------------------------- /testdata/expected/python-single-module-dependent/single-module-dependent/PipPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-single-module-dependent/single-module-dependent/PipPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-single-module-dependent/single-module-dependent/PipPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-single-module-dependent/single-module-dependent/PipPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-single-module-dependent/single-module-dependent/PipPackage.unit.json -------------------------------------------------------------------------------- /testdata/expected/python-single-module-lib/single-module-lib/PipPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-single-module-lib/single-module-lib/PipPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-single-module-lib/single-module-lib/PipPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-single-module-lib/single-module-lib/PipPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-single-module-lib/single-module-lib/PipPackage.unit.json -------------------------------------------------------------------------------- /testdata/expected/python-stdlib-refs/python-stdlib-refs/PipPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-stdlib-refs/python-stdlib-refs/PipPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-stdlib-refs/python-stdlib-refs/PipPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-stdlib-refs/python-stdlib-refs/PipPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-stdlib-refs/python-stdlib-refs/PipPackage.unit.json -------------------------------------------------------------------------------- /testdata/expected/python-unresolved-reqstxt/python-unresolved-reqstxt/PipPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python-unresolved-reqstxt/python-unresolved-reqstxt/PipPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-unresolved-reqstxt/python-unresolved-reqstxt/PipPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python-unresolved-reqstxt/python-unresolved-reqstxt/PipPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python-unresolved-reqstxt/python-unresolved-reqstxt/PipPackage.unit.json -------------------------------------------------------------------------------- /testdata/expected/python27-syntax/PipPackage.depresolve.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /testdata/expected/python27-syntax/PipPackage.graph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python27-syntax/PipPackage.graph.json -------------------------------------------------------------------------------- /testdata/expected/python27-syntax/PipPackage.unit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sourcegraph/srclib-python/HEAD/testdata/expected/python27-syntax/PipPackage.unit.json --------------------------------------------------------------------------------