Skip to main content

NSIGII SMTP SDK and CLI for humanitarian message dispatch.

Project description

nsigii-smtp

nsigii-smtp is a Python SDK and CLI for NSIGII humanitarian message dispatch. It is designed for structured SMTP delivery of requests involving food, water, shelter, medical supplies, and related urgent needs.

The package follows the NSIGII trilateral model:

  • HERE_AND_NOW maps to internal alpha transport behavior
  • THERE_AND_THEN maps to internal beta transport behavior
  • WHEN_AND_WHERE maps to internal gamma transport behavior

Features

  • Structured NSIGII message envelope
  • Humanitarian payload validation
  • SMTP transport with environment-variable configuration support
  • Artifact packaging for text and zip attachments
  • CLI for immediate send and future scheduling

Quick Start

python -m pip install -e .[dev]

Immediate send:

nsigii-smtp send --from sender@example.org --to aid@example.org --subject "Need food and water" --body "Urgent request for food, water, and shelter." --need food --need water --need shelter --state HERE_AND_NOW

Scheduled send:

nsigii-smtp schedule --from sender@example.org --to aid@example.org --subject "Follow-up request" --body "Please check availability tomorrow." --need food --state WHEN_AND_WHERE --send-at 2026-06-01T09:30:00+01:00

PowerShell note:

  • Prefer a single-line command, or use the PowerShell continuation character ` instead of ^.
  • If you do not pass --smtp-host, set NSIGII_SMTP_HOST first.

Example:

$env:NSIGII_SMTP_HOST = "smtp.gmail.com"
nsigii-smtp send --from sender@example.org --to aid@example.org --subject "Need food and water" --body "Urgent request for food, water, and shelter." --need food --state HERE_AND_NOW

Important:

  • smtp.example.org is only a documentation placeholder, not a real mail server.
  • For Gmail, use smtp.gmail.com with port 587 and an app password if account security requires it.

Pizza API Note

pizzaapi is not used by the runtime package. It is treated only as a teaching example of API abstraction in Python: just as a pizza-ordering wrapper models an order before sending it to a transport boundary, nsigii-smtp models a humanitarian aid request before sending it through SMTP.

See docs/examples/pizzaapi_example.md. ![https://github.com/RIAEvangelist/node-dominos-pizza-api]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nsigii_smtp-0.1.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nsigii_smtp-0.1.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file nsigii_smtp-0.1.0.tar.gz.

File metadata

  • Download URL: nsigii_smtp-0.1.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nsigii_smtp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 da6b8d7b29ddaf188bc815ce5938b88cbbc4181e4cc58b01512479cf20a30ad2
MD5 586ed80e8a38830a40cf46f342dc5438
BLAKE2b-256 bd4ea31a1227ce596f40db2bad9226da9d92c8ec5b339e641a177a8e67e2edd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for nsigii_smtp-0.1.0.tar.gz:

Publisher: publish.yml on obinexusmk2/nsigii-smtp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nsigii_smtp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nsigii_smtp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nsigii_smtp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 314f5ef1b63d5add6fa21108ca447d09332787d853008e987be5366843a4a5cf
MD5 49ad890cd988acab94d43f43b6ee0bd6
BLAKE2b-256 ce77fc4ba962ef7aa92db63057372f38a698f3cfe0536f0231adac98f90f2cdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for nsigii_smtp-0.1.0-py3-none-any.whl:

Publisher: publish.yml on obinexusmk2/nsigii-smtp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page