Skip to main content

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

Release files for fortimail 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fortimail 0.1.0
File Size Uploaded
fortimail-0.1.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fortimail 0.1.0
File Interpreter ABI Platform
fortimail-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / fortimail-0.1.0.tar.gz

Download URL fortimail-0.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3d704e7079c1b3b10177f343552d0ce6f7b4ae180b3bd3e7f90fed24a2b4cd03
BLAKE2b-256 checksum
How to use checksums
473e96469978274c696e72fea96397b2644e5db850947fa2fd4bbd08abb60d37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / fortimail-0.1.0-py3-none-any.whl

Download URL fortimail-0.1.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f35bbb56faefc54397073432b9e46ae13ed3c4ff0a94d46ebd74180abfeaa08d
BLAKE2b-256 checksum
How to use checksums
f239aaaaff0950b9c749d7089d145df2ea12f5ea9e8d5154f1d0673b7e41a938
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page