Skip to main content

Fortimail Rest API Client

Project description

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fortimail-0.1.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

fortimail-0.1.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page