Skip to main content

SEDEX Messagebox Manager

Purpose

This module simplifies the management of your message boxes with asynchronous data exchange via SEDEX.

You can search your inbox for specific message types or receiving times, clean up your inbox or send messages. All this with a few simple lines of Python.

This module never interferes with the SEDEX core functionality of secure data transmission but simplifies the management of in- and outbox.

Install

pip install sedex

That's it.

Versions

Version Release Notes
1.0.0 universal package for py2 and py3
0.1.5 optional outbox parameter
0.1.4 detailed documentation
0.1.3 filter for latest message
0.1.2 publication for testing
0.1.1 initial publication

Examples

Get started

Create instance by specifying in- and outbox.

from sedex import semebo

messagebox = semebo.MessageBox(inbox=r"C:\sedex\inbox", outbox=r"C:\sedex\outbox")

Search for Messages

Scan your inbox for messages fullfilling secified criteria.

Get all messages received within the last 24h:

import datetime

for message in messagebox.scan_inbox(
    from_date=datetime.datetime.now() - datetime.timedelta(hours=24)
):
    print(message.data_file,
          message.envelope.sender_id,
          message.envelope.message_type)

Get the most recent message with message type 1819:

message = messagebox.scan_inbox(message_type=1819, latest=True):
print(message.data_file,
      message.envelope.sender_id,
      message.envelope.message_date)

Send Messages

Send the entire content of a folder:

data = r"C:\delivery\ready_to_ship"
transfer_id, envelope = messagebox.send_data(
    file_or_folder=data, 
    recipient_id="CH1848",
    sender_id="Z!1819",
    message_type=1819
)
print(transfer_id,
      envelope.message_id,
      envelope.message_date)

Clean-up Inbox

List candidates older than a week to preview cleanup:

messagebox.purge_inbox(older_than_days=7, dry_run=True)

Metadata

Release files for sedex 1.0.0

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

Built distribution (wheel)

Table of built distributions (wheels) for sedex 1.0.0
File Interpreter ABI Platform
sedex-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / sedex-1.0.0-py2.py3-none-any.whl

Download URL sedex-1.0.0-py2.py3-none-any.whl
Size 7.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8fdc6d8500c91453f2780a78c139b03f8fc257a8ca64a0c389f45878e6958662
BLAKE2b-256 checksum
How to use checksums
6bef88d68c0acfa9dcc7d552c66b6b8b74d6e35e42cccf19739a1a0573764582
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

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