Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement about z-hub.io

    Getting started using Python. What are the installation requirements to run the examples from the documentation? Are there full, working examples?

    General Discussion
    3
    3
    244
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mborus
      mborus last edited by

      I’m trying to get started using Python3.7 on Windows 64bit to access a remote Kopano server.

      My aim is to access on user’s email and calendar and to act for that user, so I will not have special server rights or server certificates.

      The docs at https://documentation.kopano.io/kopano_python_kopano/ do not specify, what the requirements are and what imports are needed.

      The examples include imports like

      import kopano
      from MAPI.Tags import PR_SUBJECT_W # python-mapi
      

      Trying to pip install kopano or MAPI doesn’t work.

      Is there a “Getting started” example for Python that explains the installation requirements?

      Since the documentation only shows parts of the process, is there a git that has some small, workings examples on how to work with Kopano from Python?

      1 Reply Last reply Reply Quote 0
      • fbartels
        fbartels Kopano last edited by

        Hi @mborus ,

        unfortunately python-kopano is not that easy to use in Windows, since it requires also some more dependencies for which we are building packages for our supported platforms.

        I would recommend to pick one of our supported (Linux) distributions as a base and make your scripting projects from this system, rather than trying to use Windows as a base.

        If you do not have access to a “pure” Linux system you could also use wsl.

        Regards Felix

        Resources:
        https://kopano.com/blog/how-to-get-kopano/
        https://documentation.kopano.io/
        https://kb.kopano.io/

        Support overview:
        https://kopano.com/support/

        1 Reply Last reply Reply Quote 0
        • deisenlord
          deisenlord last edited by

          The python-kopano api is fully available in source and forms a fantastic reference. For instance under linux /usr/lib/python2.7/site-packages/kopano. Also the source of some standard tools such as kopano-cli are on the system and are a great reference.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post