Skip to main content

mailmock

Mailmock API

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.2.0
  • Generator version: 7.24.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.10+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/descope/mailmock.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/descope/mailmock.git)

Then import the package:

import mailmock

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import mailmock

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import mailmock
from mailmock.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to /api/trpc
# See configuration.py for a list of all supported configuration parameters.
configuration = mailmock.Configuration(
    host = "/api/trpc"
)



# Enter a context with an instance of the API client
with mailmock.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = mailmock.EmailApi(api_client)
    email_create_request = mailmock.EmailCreateRequest() # EmailCreateRequest | 

    try:
        # Create a new mailbox
        api_response = api_instance.email_create(email_create_request)
        print("The response of EmailApi->email_create:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling EmailApi->email_create: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to /api/trpc

Class Method HTTP request Description
EmailApi email_create PUT /email Create a new mailbox
EmailApi email_list GET /email List mailbox(es)
EmailApi email_read POST /email Fetch an email, optionally mark as read
SendApi send_aws POST /aws

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

Authorization

  • Type: Bearer authentication

Author

Metadata

Release files for mailmock 1.2.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 mailmock 1.2.0
File Size Uploaded Provenance Actions
mailmock-1.2.0.tar.gz 30.9 kB With provenance Details for mailmock-1.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 76.6 kB

Release files / mailmock-1.2.0.tar.gz

Download URL mailmock-1.2.0.tar.gz
Size 30.9 kB
Tags Source
SHA-256 checksum
How to use checksums
003967b9521b0b59816701572ed63d0e26bf1edc83c51261408dcb9acb48eda9
BLAKE2b-256 checksum
How to use checksums
833c072f279ea9ac52fee37ddbedbde2879bc1540a69cb0630cedcd81a7a16e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Release files / mailmock-1.2.0-py3-none-any.whl

Download URL mailmock-1.2.0-py3-none-any.whl
Size 45.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b76187e545830d3f15efb7ba110f6d83d059e57e15ff0f31dfd101da8d06cc5b
BLAKE2b-256 checksum
How to use checksums
ec5eb90f3fedc95ac97a8376700493239ef681a3bcfce39e1337c2c64580237f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Security for mailmock 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mailmock-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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