Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

API Sender

Sends messages to various APIs for email or discord

from apisender import Apisender
Supported APIs:

- Discord
- Mailjet
- SMTP2GO

Todo:
- Mailgun
- Twillo (sms)
- Telnyx (sms)
Examples:

    fromname = "fromname"
    fromid = "from@test.com"
    subject = "test subject"
    toid = "to@test.com"
    toname = "toname"
    bodytext = "test text"
    bodyhtml = "<h1>test html</h1>"
    subject = "test subject"

    print(Apisender(fromname=fromname,
                    bodytext=bodytext).discord().text)

    print(Apisender(fromname=fromname,
                    fromid=fromid,
                    toname=toname,
                    toid=toid,
                    subject=subject,
                    bodytext=bodytext,
                    bodyhtml=bodyhtml).mailjet().text)

    print(Apisender(fromid=fromid,
                    toid=toid,
                    subject=subject,
                    bodytext=bodytext).smtp2go().text)
Notes:
    - No except checks are done for failed sending.
    - Check is done if password file is missing.
    - Requires requests to work.
    - Returns requests responses.
    - apisender.json is where you keep your passwords

Download files

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

Source Distribution

apisender-1.0.0b0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

apisender-1.0.0b0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file apisender-1.0.0b0.tar.gz.

File metadata

  • Download URL: apisender-1.0.0b0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for apisender-1.0.0b0.tar.gz
Algorithm Hash digest
SHA256 4e2dfcb080bde9da6222b66ebce7395e1a13c7aa4dbfbadc47bb97f698624f46
MD5 858662f1e36df3e85e0480e96b8d9f45
BLAKE2b-256 5206e1551f166a2251e16be9e8f43677585021817b1d608a1d2ae9aab8adc753

See more details on using hashes here.

File details

Details for the file apisender-1.0.0b0-py3-none-any.whl.

File metadata

  • Download URL: apisender-1.0.0b0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for apisender-1.0.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 f86c5dd70d10093ef31bc723daf62808b31867d4bf15cdd175da32217c4a02ba
MD5 37383e825d761184a5e583c7c304a8ae
BLAKE2b-256 2329efa166e3d59aa6cfb3c8d6bb59cc3ee2114632b32d0a4bd45a6553e6e6dd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0b0 This release

2 files

Supported by

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