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_NOWmaps to internalalphatransport behaviorTHERE_AND_THENmaps to internalbetatransport behaviorWHEN_AND_WHEREmaps to internalgammatransport 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, setNSIGII_SMTP_HOSTfirst.
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.orgis only a documentation placeholder, not a real mail server.- For Gmail, use
smtp.gmail.comwith port587and 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da6b8d7b29ddaf188bc815ce5938b88cbbc4181e4cc58b01512479cf20a30ad2
|
|
| MD5 |
586ed80e8a38830a40cf46f342dc5438
|
|
| BLAKE2b-256 |
bd4ea31a1227ce596f40db2bad9226da9d92c8ec5b339e641a177a8e67e2edd2
|
Provenance
The following attestation bundles were made for nsigii_smtp-0.1.0.tar.gz:
Publisher:
publish.yml on obinexusmk2/nsigii-smtp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nsigii_smtp-0.1.0.tar.gz -
Subject digest:
da6b8d7b29ddaf188bc815ce5938b88cbbc4181e4cc58b01512479cf20a30ad2 - Sigstore transparency entry: 1692115204
- Sigstore integration time:
-
Permalink:
obinexusmk2/nsigii-smtp@65d11b6c4e1300c9c2fa0e60abf9ddce0e02bf1b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/obinexusmk2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@65d11b6c4e1300c9c2fa0e60abf9ddce0e02bf1b -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
314f5ef1b63d5add6fa21108ca447d09332787d853008e987be5366843a4a5cf
|
|
| MD5 |
49ad890cd988acab94d43f43b6ee0bd6
|
|
| BLAKE2b-256 |
ce77fc4ba962ef7aa92db63057372f38a698f3cfe0536f0231adac98f90f2cdd
|
Provenance
The following attestation bundles were made for nsigii_smtp-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on obinexusmk2/nsigii-smtp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nsigii_smtp-0.1.0-py3-none-any.whl -
Subject digest:
314f5ef1b63d5add6fa21108ca447d09332787d853008e987be5366843a4a5cf - Sigstore transparency entry: 1692115334
- Sigstore integration time:
-
Permalink:
obinexusmk2/nsigii-smtp@65d11b6c4e1300c9c2fa0e60abf9ddce0e02bf1b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/obinexusmk2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@65d11b6c4e1300c9c2fa0e60abf9ddce0e02bf1b -
Trigger Event:
push
-
Statement type: