Skip to content

meta-PR#4

Open
pschmitt wants to merge 6 commits into
cogniteev:masterfrom
pschmitt:dev
Open

meta-PR#4
pschmitt wants to merge 6 commits into
cogniteev:masterfrom
pschmitt:dev

Conversation

@pschmitt

@pschmitt pschmitt commented Feb 7, 2017

Copy link
Copy Markdown

This PR encompasses all my work I have doing on pymailgun.

It includes the changes from #1 #2 and #3, plus a few extras:

  • some exceptions fixes (8f59374)
  • determine the domain name if none is provided ( d64d420)
  • a version bump (be99786) to 1.3

- Implement a guess_domain function that will return the first custom
domain (or the first sandboxed one if sanbox is set to True).
- MailgunCredentialsError is now raised by the __request function.
- The domain name, if provided, is now checked against the list of
available domain. If it is invalid a MailgunDomainError is raised.
- A caching system has been implemented. If use_cache is set to True,
any call to __request will first check if the same request has already
been issued and return its results without making an actual API call,
thus preventing multiple calls to the GET /domains endpoint when
initializing the client.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant