semvec/pypi-packages huggingface dataset:
down-notifier 0.1.1
Send notification when your website is down.
License: MIT
Requires Python: >=3.7,<4.0

# Down notifier

## Usage

```bash
python -m down-notifier <config.json>
```

Example json config in "examples" folder.

```python
from down_notifier import Checker, Site
from down_notifier.channel import TelegramChannel

channel = TelegramChannel(
  name="channel_name",
  message="{} - {}",
  token="token",
  chats=["chat_id_1", "chat_id_2"],
)
site = Site(
  name="site_name",
  url="http://example.com",
  status_code=200,
  timeout=60,
  channels=[channel],
)
checker = Checker([site])

checker.start_loop()
```
PrivateAttributesDecorator 0.6
Module to increase encapsulation in Python, not allowing the access to private members outside their classes
License: MIT
Keywords: Python,Python3,Encapsulation,Attributes,Private,Decorators

Module to increase encapsulation in Python, not allowing the access to private members outside their classes. We offer a decorator that we can use to decorate a class for this purpose. We only have to include the parameters we want to make private and if we want to allow for deep copies of objects of this class: @private_attributes_decorator.private_attributes_dec("arg1",allow_deep_copy=True)That way we won´t be able to get or set any our already private attributes plus the attribute arg1. However, we will allow for deep copies of objects of that class