1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-04 02:09:17 +02:00

major rehault of docs at root and python level,

preparing a deltachat-0.6 release
This commit is contained in:
holger krekel 2018-09-27 15:50:52 +02:00
parent 87e1537cb2
commit 031058ebd2
10 changed files with 132 additions and 47 deletions

View file

@ -3,17 +3,36 @@
examples
========
::
Playing around on the commandline
----------------------------------
Once you have :doc:`installed deltachat bindings <install>`
you can start playing from the python interpreter commandline::
For example you can type ``python`` and then::
# instantiate and configure deltachat account
import deltachat
ac1 = deltachat.Account("/tmp/db")
ac.set_config(addr="test2@hq5.merlinux.eu", mail_pw="********")
ac = deltachat.Account("/tmp/db")
# start configuration activity and smtp/imap threads
ac.start()
ac.start_threads()
ac.configure(addr="test2@hq5.merlinux.eu", mail_pw="********")
# create a contact and send a message
contact = ac.create_contact("test3@hq5.merlinux.eu")
contact = ac.create_contact("someother@email.address")
chat = ac.create_chat_by_contact(contact)
chat.send_text_message("hi from the python interpreter command line")
Checkout our :doc:`api` for the various high-level things you can do
to send/receive messages, create contacts and chats.
Looking at a real example
-------------------------
The `deltabot repository <https://github.com/deltachat/deltabot#deltachat-example-bot>`_
contains a real-life example of Python bindings usage.
...