fortimail-0.1.0
توضیحات
Fortimail Rest API Client
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fortimail-0.1.0 |
| نام | fortimail |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | surfer190 |
| ایمیل نویسنده | stephenh@startmail.com |
| آدرس صفحه اصلی | https://github.com/surfer190/fortimail.git |
| آدرس اینترنتی | https://pypi.org/project/fortimail/ |
| مجوز | - |
# Fortimail Rest API Client
This package is used to communicate with the fortimail rest api
## Install
pip install fortimail
## Usage
from fortimail.client import FortiMailClient
client = FortiMailClient(
baseurl='myfortimail.com',
username='hello',
password='world'
)
domains = client.get_domains()
## Developing
As per the [pytest best practices](https://docs.pytest.org/en/latest/goodpractices.html#test-discovery)
Create your environment
python3.7 -m venv env
pip install -r requirements/dev.txt
# Install the package in editable mode
pip install -e .
this is similar to running: `python setup.py develop`
## Run Tests
We use pytest, To run tests do: `pytest -s`
Soon to bring in tox - test automation - for different python versions
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl fortimail-0.1.0:
pip install fortimail-0.1.0.whl
نصب پکیج tar.gz fortimail-0.1.0:
pip install fortimail-0.1.0.tar.gz