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

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.6
File Size Uploaded Provenance Actions
gweasysoap-0.1.6.tar.gz 11.9 kB Without provenance Details for gweasysoap-0.1.6.tar.gz

Built distribution (wheel)

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

Total release size: 20.7 kB

Release files / gweasysoap-0.1.6.tar.gz

Download URL gweasysoap-0.1.6.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f07f353c8efd8d3ffe080e7b2a63b0a2d34d5ef34157da9daf818cb4d3a3748a
BLAKE2b-256 checksum
How to use checksums
4a9fe04fb556afc236a828aa4e68804a3a07a2446e86d3f8f4800b6c54f9d84c
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.6-py3-none-any.whl

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

Security for gweasysoap 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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