Package: pepipost
Python SDK Client library :snake: forPepipostThis SDK contain methods for easily interacting with the Pepipost Email Sending API to send emails within few seconds.We are trying to make our libraries a Community Driven. To help us building right things in proper order we would request you to help us by sharing comments, creating newissuesorpull requests. We welcome any sort of contribution to this library.The latest 5.0 version of this library provides is fully compatible with the latest Pepipost v5 API.
For any update of this library checkReleasesTable of ContentInstallationSample ExampleAnnouncementsRoadmapAboutLicenseInstallationPrerequisitesPython (2 >=2.7.9 or 3 >= 3.4)Python IDE (we are usingPycharm)Python packagesnosejsonpicklerequestscachecontrolpython-dateutilInstallation of PIP can be done fromhere.We recommend using PIP Dependency manager in order to install all the dependencies which we had mentioned inrequirements.txtfiles that comes in SDK.Install PackageInstall directly from GitHubYou can install the library directly from GitHub also using the below command:git clone https://github.com/pepipost/pepipost-sdk-python.git pepipost_pythonNote: If you are installing directly from GitHub, then you need to install the dependecies separately which are mentioned in our requirements.txt file.For IDE based installationReferhereto install and use this SDK in a IDE environment.Sample Examplefrompepipost.pepipost_clientimportPepipostClientfrompepipost.configurationimportConfigurationfrompepipost.models.sendimportSendfrompepipost.models.mfromimportFromfrompepipost.models.contentimportContentfrompepipost.models.type_enumimportTypeEnumfrompepipost.models.attachmentsimportAttachmentsfrompepipost.models.personalizationsimportPersonalizationsfrompepipost.models.email_structimportEmailStructfrompepipost.models.settingsimportSettingsfrompepipost.exceptions.api_exceptionimportAPIExceptionimportjsonpickleapi_key='your api_key here'client=PepipostClient(api_key)mail_send_controller=client.mail_sendbody=Send()body.reply_to='you-reply-to-id-address@mydomain.name'body.mfrom=From()body.mfrom.email='hello@your-register-domain-with-pepipost'body.mfrom.name='Example Pepi'body.subject='Emailing with Pepipost is easy'body.content=[]body.content.append(Content())body.content[0].mtype=TypeEnum.HTMLbody.content[0].value='<html><body>Hey,<br><br>Do you know integration is even simpler in Pepipost, <br>with Python <br> Happy Mailing ! <br><br>Pepipost </body></html>'body.personalizations=[]body.personalizations.append(Personalizations())body.personalizations[0].to=[]body.personalizations[0].to.append(EmailStruct())body.personalizations[0].to[0].name='random'body.personalizations[0].to[0].email='random@mydomain.name'body.tags=['Campaign']try:result=mail_send_controller.create_generatethemailsendrequest(body)print(result)exceptAPIExceptionase:print(e)Announcementsv5.0 has been released! Please see therelease notesfor details.All updates to this library are documented in ourreleases. For any queries, feel free to reach out us atdx@pepipost.comRoadmapIf you are interested in the future direction of this project, please take a look at our openissuesandpull requests. We would love to hear your feedback.Aboutpepipost-sdk-python library is guided and supported by thePepipost Developer Experience Team.
This pepipost-sdk-python library is maintained and funded by Pepipost Ltd. The names and logos for pepipost-php-sdk are trademarks of Pepipost Ltd.LicenseThis code library was semi-automatically generated by APIMATIC v2.0 and licensed under The MIT License (MIT).