Skip to main content

Enveloop API SDK

Project description

Enveloop

enveloop-py is a python wrapper for the Enveloop API. It allows easy use of the API to send messages.

Installation

Install with pip:

python3 -m pip install enveloop-py

Usage

Setup the client connection:

import os
from enveloop_py import api

enveloop = api.connect(os.environ['ENVELOOP_API_TOKEN'])

Send a message:

enveloop.send_message(
  template='welcome-email',
  to='user@email.com',
  from_address='welcome@myapp.com',
  subject='Welcome to MyApp',
  template_variables={
    "first_name": 'John',
  }
)

Get information about a template (variables and body html):

enveloop.template_info(template='welcome-email')

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/enveloophq/enveloop-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Enveloop project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

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

enveloop_py-0.2.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

enveloop_py-0.2.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file enveloop_py-0.2.0.tar.gz.

File metadata

  • Download URL: enveloop_py-0.2.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for enveloop_py-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f88e1758ac97148fbd7fb6022f739b75f799c5acd1baae00cf44dcf6a899953d
MD5 ae8ea6647eb517579ae3e7194396739f
BLAKE2b-256 b553d467d1b00b76bcc2647beec6c8d7b079556da60323f620cdaf3954677d1d

See more details on using hashes here.

File details

Details for the file enveloop_py-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: enveloop_py-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for enveloop_py-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10d763dbb50f178986d592945b4b2205f9301826b1d2cf3b79bd00fe6e9598ea
MD5 76438ac0fc2633269ec62d3ebb3c1a70
BLAKE2b-256 92495c7f2bc3ac6af71f64a30e9c6c3c393a3add13146f515509386150783869

See more details on using hashes here.

Supported by

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