Skip to main content

Aspose.Email Cloud SDK for Python

PYPI License tests

This repository contains Aspose.Email Cloud SDK for Python source code. This SDK allows you to work with Aspose.Email Cloud REST APIs in your Python applications quickly and easily, with zero initial cost.

Aspose.Email Cloud home
API Reference

Key features

Aspose.Email Cloud is a REST API for creating email applications that work with standard email file formats. This SDK:

  • Lets developers manipulate different emails’ formats such as Outlook MSG, EML, VCard, and iCalendar files
  • Lets developers manipulate different emails' formats such as Outlook MSG, EML, VCard, and iCalendar files
  • Supports AI functions:
    • The Business card recognition
    • The Name API for parsing and handling personal names
  • Has a built-in email client. This client provides:
    • Unified REST API for different email protocols: IMAP, POP3, SMTP, EWS, WebDav
    • Virtual multi-account
    • Message threads (POP3 accounts are also supported)
  • Email configuration discovery
  • Disposable email address detection

New features in version 20.7

  • New MAPI message files API with models:
    • MapiMessageDto - represents the Microsoft Outlook message.
    • MapiCalendarDto - represents the Microsoft Outlook calendar object.
    • MapiContactDto - represents the Microsoft Outlook contact information.
  • Improved Recurrence pattern support for CalendarDto.

See Release notes

How to use the SDK?

The complete source code is available in the GIT repository.

Use SDK tutorials:

SDK reference documentation is available in this README

Prerequisites

To use this SDK, you need an App SID and an App Key; they can be looked up at Aspose Cloud Dashboard (it requires free registration in Aspose Cloud for this).

Installation

You can use it directly in your project via the source code or get a PYPI Package:

pip install aspose-email-cloud

See more details about SDK installation in this tutorial: SDK setup

Usage examples

To use the API, you should create an EmailApi object:

from AsposeEmailCloudSdk import api #EmailApi class is here
from AsposeEmailCloudSdk import models #REST API models are here
from AsposeEmailCloudSdk.models import requests #Request models are here (all API calls use corresponding request model class)

#...
app_sid = 'Your App SID'
app_key = 'Your App Key'
email_api = api.EmailApi(app_key, app_sid)

Business cards recognition API

Use AiBcrParseModel method to parse business card image to VCard DTO:

image_data = None
with open('/tmp/alex.png', 'rb') as f:
    filedata = f.read()
    image_data = str(base64.b64encode(filedata), 'utf-8')
result = email_api.ai_bcr_parse_model(requests.AiBcrParseModelRequest(
    models.AiBcrBase64Rq(images=[models.AiBcrBase64Image(True, image_data)])))
contact = result.value[0]

See more details here and here

Licensing

All Aspose.Email Cloud SDKs, helper scripts and templates are licensed under MIT License.

Resources

Metadata

Release files for aspose-email-cloud 20.7.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 aspose-email-cloud 20.7.0
File Size Uploaded
aspose-email-cloud-20.7.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aspose-email-cloud 20.7.0
File Interpreter ABI Platform
aspose_email_cloud-20.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / aspose-email-cloud-20.7.0.tar.gz

Download URL aspose-email-cloud-20.7.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
90aa709326719e6e168242ff67df1c25e57566b78f82980d4b7fa520f3d4cfc9
BLAKE2b-256 checksum
How to use checksums
260e67682bbdbdf6a19c2df1b0b1a920f1bf12a2b7a47e46976fd996768cd584
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

Release files / aspose_email_cloud-20.7.0-py3-none-any.whl

Download URL aspose_email_cloud-20.7.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
677568163623d67ac14c5cc2ab0dc89eee984c81082a9fd9f278839c4110c417
BLAKE2b-256 checksum
How to use checksums
bafd23fb7bae0a10d48d4f528ca185b90d9c288fba607ebc8f1bfdc14a851ec9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

Release history Release notifications | RSS feed

21.9.0

2 release files

21.4.0

2 release files

This release

20.7.0 This release

2 release files

20.5.0

2 release files

20.3.0

2 release files

20.2.0

2 release files

20.1.0

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