SMTP Faker -- smtp server for development
Project description
==========
SMTP Faker
==========
SMTP server for development.
------------
Installation
------------
Just PIP:
.. code:: bash
$ pip install smtp-faker
$ smtp-faker --http=localhost:8080 --smtp=0.0.0.0:8025
Or Docker:
.. code:: bash
$ docker run --rm -it -p 8080:80 -p 8025:25 --name smtp-faker zzzsochi/smtp-faker
------------------
Send test messages
------------------
.. code:: bash
$ python3 -m smtp_faker.test N
$ python3 -m smtp_faker.test HOST:PORT N
.. code:: bash
$ python3 -m smtp_faker.test localhost:8025 10
.. code:: bash
$ docker exec -it smtp-faker python3 -m smtp_faker.test 10
---
API
---
URLs
----
* `GET /messages`
* `GET /messages/:id`
* `GET /messages/:id/plain`
* `GET /messages/:id/html`
* `GET /messages/:id/raw`
* `/ws`
.. * `POST /messages/:id/forward`
Message object
--------------
:id: str
:ts: ISO-date timestamp
:size: int, size in bytes
:headers: message headers
:From: sender address
:To: recievers
:Subject: message subject
...and other headers.
SMTP Faker
==========
SMTP server for development.
------------
Installation
------------
Just PIP:
.. code:: bash
$ pip install smtp-faker
$ smtp-faker --http=localhost:8080 --smtp=0.0.0.0:8025
Or Docker:
.. code:: bash
$ docker run --rm -it -p 8080:80 -p 8025:25 --name smtp-faker zzzsochi/smtp-faker
------------------
Send test messages
------------------
.. code:: bash
$ python3 -m smtp_faker.test N
$ python3 -m smtp_faker.test HOST:PORT N
.. code:: bash
$ python3 -m smtp_faker.test localhost:8025 10
.. code:: bash
$ docker exec -it smtp-faker python3 -m smtp_faker.test 10
---
API
---
URLs
----
* `GET /messages`
* `GET /messages/:id`
* `GET /messages/:id/plain`
* `GET /messages/:id/html`
* `GET /messages/:id/raw`
* `/ws`
.. * `POST /messages/:id/forward`
Message object
--------------
:id: str
:ts: ISO-date timestamp
:size: int, size in bytes
:headers: message headers
:From: sender address
:To: recievers
:Subject: message subject
...and other headers.
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
smtp_faker-0.1.1.tar.gz
(8.1 kB
view details)
Built Distribution
File details
Details for the file smtp_faker-0.1.1.tar.gz
.
File metadata
- Download URL: smtp_faker-0.1.1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78fa055fc429bff1a531159e7a35478b141081440e504e3acb6dfeb19b1bb71b |
|
MD5 | 71341e7b63088e626ba8943890bf5ff7 |
|
BLAKE2b-256 | 95d36030fd518fcbd3cfe6faee9324df5cf066a14e610881dcafff46af49aea6 |
File details
Details for the file smtp_faker-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: smtp_faker-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29648710aa171d04a6c437a00f404c0bd9df053cf3715ab11b04ce6928ca88f0 |
|
MD5 | b298cd138dc68d982d79a6fa9ae90159 |
|
BLAKE2b-256 | 441f48ebea371b71e45ce00a3349bcc7d8731a7c1c79e0967d16ffc1e6d56be5 |