Skip to main content

Python bindings for deltachat-core using CFFI

Project description

This package provides bindings to the deltachat-core C-library which provides imap/smtp/crypto handling as well as chat/group/messages handling to Android, Desktop and IO user interfaces.

Install

  1. First you need to install the delta-core C-library.

  2. Install virtualenv if you don’t have it, then create and use a fresh clean python environment:

    virtualenv -p python3 venv
    source venv/bin/activate

    Afterwards invoking python or pip install will only modify files in your venv directory.

  3. Install the bindings with pip:

    pip install deltachat

    Afterwards you should be able to successfully import the bindings:

    python -c "import deltachat"

You may now look at examples.

Running tests

Get a checkout of the deltachat-core github repository and type:

cd python
pip install tox
tox

If you want to run functional tests that run against real e-mail accounts, generate a “liveconfig” file where each lines contains account settings, for example:

# 'liveconfig' file specifying imap/smtp accounts
addr=some-email@example.org mail_pw=password
addr=other-email@example.org mail_pw=otherpassword

And then run the tests with this live-accounts config file:

tox -- --liveconfig liveconfig

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deltachat-0.8.0.tar.gz (18.0 kB view details)

Uploaded Source

File details

Details for the file deltachat-0.8.0.tar.gz.

File metadata

  • Download URL: deltachat-0.8.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: devpi-server/4.7.1 (py2.7.13; linux2)

File hashes

Hashes for deltachat-0.8.0.tar.gz
Algorithm Hash digest
SHA256 cc388842612fcf21c79063011d4109d7ba5cb61f1768b9cbd7e228d6d43611a2
MD5 e11aafb5076cad64b7b65ad31f40222f
BLAKE2b-256 e18266c919970d8cac4de659a8550ca5d4036df73a5a46443273bbf7d419c52b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page