semvec/pypi-packages huggingface dataset:
realestate-tvm 0.2.0
Time value of money helpers for real estate, complementing numpy_financial.
License: MIT
Requires Python: >=3.8

# realestate-tvm

Time value of money helper functions that complement `numpy_financial`,
designed for real estate and finance courses.

Provides:

- `compound(pv, i, n)`: multi-period compounding, FV of a lump sum
- `eay(fv, pv, n)`: effective annual yield from PV and FV
- `enar_from_eay(eay, m)`: convert Effective Annual Yield to an Equivalent Nominal Annual Rate with m compounds per year
- `eay_from_enar(enar, m)`: convert a nominal annual rate with m compounds per year to an Effective Annual Yield
- `annuity_value(pmt, i, n)`: FV of an ordinary annuity
py-notifier2 0.5.0
Python push-notifications.
License: MIT
Requires Python: >=3.6.0


# Python Notifications

[![CI](https://github.com/YuriyLisovskiy/pynotifier/actions/workflows/ci.yml/badge.svg)](https://github.com/YuriyLisovskiy/pynotifier/actions/workflows/ci.yml)
[![Deploy](https://github.com/YuriyLisovskiy/pynotifier/actions/workflows/deploy.yml/badge.svg?branch=master)](https://github.com/YuriyLisovskiy/pynotifier/actions/workflows/deploy.yml)
[![PyPi Version](https://img.shields.io/pypi/v/py-notifier.svg)](https://pypi.python.org/pypi/py-notifier)
[![# of Downloads](https://img.shields.io/pypi/dm/py-notifier.svg)](https://pypi.python.org/pypi/py-notifier)
[![Supported Python Versions](https://img.shields.io/pypi/pyversions/py-notifier.svg?logo=python&logoColor=FFE873)](https://pypi.org/project/py-notifier)
[![License](https://img.shields.io/github/license/YuriyLisovskiy/pynotifier.svg)](LICENSE)

Python3 module for sending notifications.

The list of available backends:
* Platform (`pynotifier.backends.platform.Backend`):
  * Android (Termux)
  * Linux
  * macOS
  * Windows
* Email (`pynotifier.backends.smtp.Backend`)

## Platform notifications requirements
### Android:
[`termux-api`](https://f-droid.org/en/packages/com.termux.api/) - Android application for Termux
### Linux:
`libnotify-bin` CLI tool (manual installation is required). For Ubuntu run:
```bash
sudo apt-get install libnotify-bin
```
### Windows:
[`WinToaster`](https://github.com/MaliciousFiles/WinToaster) - Python module

## Installation
Install using pip:
```bash
pip install py-notifier
```

## Example
```python
import ssl
import smtplib

from pynotifier import NotificationClient, Notification
from pynotifier.backends import platform, smtp

smtp_server = smtplib.SMTP_SSL('smtp.gmail.com', 465, context=ssl.create_default_context())

c = NotificationClient()

c.register_backend(platform.Backend())
c.register_backend(smtp.Backend(server=smtp_server,
                                name='My Organization',
                                email='sender@organization.com',
                                password='super_password'))

filenames = [
  'path/to/file1.json',
  'path/to/file2.txt',
  # ...
]

attachments = []
for filename in filenames:
	attachments.append(smtp.Attachment(open(filename, 'rb'), filename))

smtp_config = smtp.NotificationConfig(emails=['receiver_1@email.com', 'receiver_2@email.com'],
                                      attachments=attachments)
notification = Notification(title='Hello', message='World', smtp=smtp_config)

c.notify_all(notification)
```

## License
The project is licensed under the terms of the [MIT License](https://opensource.org/licenses/mit),
see the [LICENSE](LICENSE) file for more information.