Metadata-Version: 2.1
Name: gnvext
Version: 1.1.1
Summary: Wrapper for converting environment variables to any python type
Author: DouleLove
License: The MIT License (MIT)
        
        Copyright (c) 2024-present DouleLove
        
        Permission is hereby granted, free of charge, to any person obtaining a
        copy of this software and associated documentation files (the "Software"),
        to deal in the Software without restriction, including without limitation
        the rights to use, copy, modify, merge, publish, distribute, sublicense,
        and/or sell copies of the Software, and to permit persons to whom the
        Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in
        all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
        OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
        FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
        DEALINGS IN THE SOFTWARE.
        
Project-URL: Homepage, https://github.com/DouleLove/getenv_ext
Project-URL: Issues, https://github.com/DouleLove/getenv_ext/issues
Project-URL: Repository, https://github.com/DouleLove/getenv_ext
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Utilities
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: lint
Requires-Dist: black==24.10.0; extra == "lint"
Requires-Dist: flake8==7.1.1; extra == "lint"
Requires-Dist: flake8-isort==6.1.1; extra == "lint"
Requires-Dist: Flake8-pyproject==1.2.3; extra == "lint"

# gnvext
Wrapper for converting environment variables to any python type

<br>

## Installing
**Python 3.10+ is required**

> [!NOTE]
> It's recommended to activate
> <a href="https://docs.python.org/3/library/venv.html">Virtual Environment</a>
> before installing gnvext

To clone and install required packages use the following command:
```bash
# linux/macOS
$ python3 -m pip install gnvext

# windows
$ py -3 -m pip install gnvext
```

Also, gnvext may be cloned from GitHub:
```bash
$ git clone https://github.com/DouleLove/gnvext
```

<br>

## Usage example
```py
import gnvext
import django

# let's assume we have DJANGO_ALLOWED_HOSTS environment variable
# which we want to extract and convert to list.
# If it does not exist, ['*'] will be returned

ALLOWED_HOSTS = gnvext.CollectionEnvVariable(
    'DJANGO_ALLOWED_HOSTS',
    ['*'],
).value

...  # django project settings.py stuff here
```
