semvec/pypi-packages huggingface dataset:
envzy 0.3.1
A library that explores dependencies from a given module or namespace in a local Python environment, then classifies these dependencies.
License: Apache-2.0
Requires Python: <4.0,>=3.8

[![Tests](https://github.com/lambdazy/envzy/actions/workflows/tests.yaml/badge.svg)](https://github.com/lambdazy/envzy/actions/workflows/tests.yaml)
[![Coverage](https://gist.githubusercontent.com/vhaldemar/54fb52d30437eae6999d3485976453ed/raw/0b98be31e7a371919c9296bd60f9cf71aca58fbf/master-coverage.svg)](https://github.com/lambdazy/envzy/tree/master/tests)

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](https://github.com/lambdazy/lzy)'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

```python
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.