Skip to main content

gweasysoap

A small, pythonic helper library on top of the auto-generated gwsoap GroupWise SOAP client. It hides the request/context boilerplate and gives you simple methods for logging in, reading folders and items, sending mail, and creating appointments.

Installation

pip install gweasysoap

This pulls in gwsoap>=1.0.3.

Quick start

from gweasysoap import GWEasySoap

# Use it as a context manager so the session is always logged out.
with GWEasySoap.connect_trusted_app(
    "https://gw.example.com:7191/soap", "jdoe", "MyApp", "trusted-key"
) as gw:
    print("Logged in as", gw.user_name, gw.user_email)

    mailbox = gw.get_mailbox()
    for item in gw.get_folder_items(mailbox.id, count=20):
        print(item.subject)

    gw.send_mail(
        subject="Hello",
        body_text="Sent from gweasysoap",
        recipients=[{"display_name": "Jane", "email": "jane@example.com"}],
    )

Logging in

# Username / password
gw = GWEasySoap.connect(endpoint, "jdoe", "secret")

# Trusted application key (impersonate a specific user)
gw = GWEasySoap.connect_trusted_app(endpoint, "jdoe", "MyApp", "trusted-key")

# Trusted application key, first usable mailbox on the post office
gw = GWEasySoap.connect_any_user(endpoint, "MyApp", "trusted-key")

Each connect* factory raises GWEasySoapError on failure. The matching instance methods (login, login_trusted_app, login_with_any_user) return a boolean instead, if you prefer to manage the instance yourself.

Constructor options: application (the name reported to GroupWise), debug, and verify_ssl.

What you can do

  • Users / mailboxes – get_user_list, get_user_mailboxes
  • Proxies – get_proxy_list, get_proxy_access_list, create_proxy_access
  • Address book – get_system_address_book, get_address_book_entries
  • Folders – get_mailbox, get_trash_folder, get_calendar, get_system_folder, get_folder_list, get_shared_folder_by_name
  • Items – get_items, get_folder_items, get_calendar_items, get_item, get_full_item, get_body, remove_item
  • Mail – send_mail
  • Appointments – create_appointment, create_appointment_in_folder, add_category
  • Session – whoami, user_name, user_email, logout

License

MIT

Metadata

Release files for gweasysoap 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gweasysoap 0.1.4
File Size Uploaded
gweasysoap-0.1.4.tar.gz 11.8 kB Details

Built distribution (wheel)

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

Total release size: 20.6 kB

Release files / gweasysoap-0.1.4.tar.gz

Download URL gweasysoap-0.1.4.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c93a5e46a455f18dfcf274628cbf6ef9da1a97beb8a7c89f6f1eb2cd1da0c84f
BLAKE2b-256 checksum
How to use checksums
2eb0cb240b50533d034dce2538d7cce6dfa081148b7671e0ebca67f21636e20c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / gweasysoap-0.1.4-py3-none-any.whl

Download URL gweasysoap-0.1.4-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c0c1812aac31e78395dc3bf4e398055af3c3b8599f653d02b7c6d6a8719af95
BLAKE2b-256 checksum
How to use checksums
4241cf2bdc314cf539bb1c9aadc4e2f292c056ec57a374972141c9d33ed00994
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.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