Skip to main content

A library that explores dependencies from a given module or namespace in a local Python environment, then classifies these dependencies.

Project description

Tests Coverage

A library that explores dependencies from a given namespace in a local Python environment, then classifies these dependencies.

The library was isolated from the LZY project's codebase to ensure reusability and reduce the difficulty of dependency management.

If you are interested in using our library, please contact us via Github Issues.

Brief example

In [1]: from envzy import AutoExplorer

In [2]: explorer = AutoExplorer(pypi_index_url='https://pypi.org/simple', additional_pypi_packages={}, target_python=(3, 9))

In [3]: namespace = {'foo': AutoExplorer}

In [4]: explorer.get_local_module_paths(namespace)
Out[4]: ['/home/lipkin/repos/envzy/envzy']

In [5]: explorer.get_pypi_packages(namespace)
Out[5]:
{'mailbits': '0.2.1',
 'urllib3': '2.0.7',
 'charset-normalizer': '3.3.1',
 'certifi': '2023.7.22',
 'pydantic_core': '2.10.1',
 'packaging': '23.2',
 'soupsieve': '2.5',
 'importlib-metadata': '6.8.0',
 'pypi-simple': '1.2.0',
 'annotated-types': '0.6.0',
 'idna': '3.4',
 'zipp': '3.17.0',
 'attrs': '23.1.0',
 'beautifulsoup4': '4.12.2',
 'pydantic': '2.4.2',
 'typing_extensions': '4.8.0',
 'requests': '2.31.0'}

Development

  • poetry install for installing project in dev-mode with all of it dependencies.
  • poetry publish --build for publishing package to PyPI.
  • tox for run tests.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

envzy-0.3.1.tar.gz (17.0 kB view hashes)

Uploaded Source

Built Distribution

envzy-0.3.1-py3-none-any.whl (20.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page