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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file fortimail-0.1.0.tar.gz
.
File metadata
- Download URL: fortimail-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d704e7079c1b3b10177f343552d0ce6f7b4ae180b3bd3e7f90fed24a2b4cd03 |
|
MD5 | fa0201c4e8c68e533a1c02248686e7aa |
|
BLAKE2b-256 | 473e96469978274c696e72fea96397b2644e5db850947fa2fd4bbd08abb60d37 |
File details
Details for the file fortimail-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: fortimail-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f35bbb56faefc54397073432b9e46ae13ed3c4ff0a94d46ebd74180abfeaa08d |
|
MD5 | 3707031bc1135166c891e81a34e31554 |
|
BLAKE2b-256 | f239aaaaff0950b9c749d7089d145df2ea12f5ea9e8d5154f1d0673b7e41a938 |