semvec/pypi-packages huggingface dataset:
try-except-ai 0.1.1
A Python package to handle exceptions and suggest resolutions using OpenAI
License: MIT
Requires Python: >=3.9,<4.0
Keywords: openai,exceptions,ai

# TryExceptAI

A Python package to handle exceptions and suggest resolutions using OpenAI.

## Installation

Install the package using [Poetry](https://python-poetry.org/):

```bash
poetry add try-except-ai
```

## Usage
Add `export OPENAI_API_KEY={your openai api key here}` to your .zshrc or .bash_profile file.

Then test it with the following

```python
from try_except_ai import TryExceptAI

def test_function():
    try:
        # Code that might raise an exception
        result = 1 / 0
        print(result)
    except Exception as e:
        TryExceptAI().handle_exception(e)

if __name__ == "__main__":
    test_function()

```

## License
This project is licensed under the MIT License. See the LICENSE file for details.
deterrersapi 0.2
Python API client for DETERRERS
License: MIT

# Python API client for DETERRERS

This library makes it easy to interact with the DETERRERS perimeter firewall
portal to automate registration, and configuration of IP addresses and firewall
profiles.

## Installation

Use pip to install the latest version:

```
pip install deterrersapi
```

## Example

```python
import deterrersapi


deterrers = deterrersapi.Deterrers('https://deterrers.example.com', '<api-token>')

# get information about ip address
deterrers.get('192.0.0.1')

# delete ip address
deterrers.delete('192.0.0.1')

# add a new ip address with `virtUOS` as admin
deterrers.add('192.0.0.1', ['virtUOS'])

# update ip with firewall profile `Multipurpose`
deterrers.update('192.0.0.1', 'Multipurpose', '')

# activate firewall profile
deterrers.action('192.0.0.1', 'register')
```