Skip to content

Commit

Permalink
chore: rc release prep
Browse files Browse the repository at this point in the history
  • Loading branch information
sbansla committed Oct 4, 2024
1 parent aeb9888 commit 058bb90
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Change Log
All notable changes to this project will be documented in this file.

[2024-10-04] Version 7.0.0-rc.1
---------------------------
- Releasing autogenerated code for python from sendgrid open api specification.

[2024-10-04] Version 7.0.0-rc.0
---------------------------
- Release Candidate preparation.


[2023-12-01] Version 6.11.0
---------------------------
**Library - Feature**
Expand Down
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,30 @@ pip install sendgrid

The following is the minimum needed code to send an email with the [/mail/send Helper](sendgrid/helpers/mail) ([here](examples/helpers/mail_example.py#L9) is a full example):

### Send Email using Auto generated code
```python
from sendgrid.client import Client

from sendgrid.rest.api.mail.v3.send_mail import SendMail
from sendgrid.rest.api.mail.v3.models import (MailTo, MailFrom, SendMailRequestPersonalizationsInner,
SendMailRequestContentInner, SendMailRequest)


client = Client(api_key='api_key')

mail_to_list = [MailTo(email="to_email", name="to_name")]
personalization = [SendMailRequestPersonalizationsInner(to=mail_to_list, subject="Message")]

send_mail_request = SendMailRequest(
personalizations=personalization,
var_from=MailFrom(email="from_email", name="from_name"),
content=[SendMailRequestContentInner(type="text/plain", value="Body")])

send_mail = SendMail(client)
response = send_mail.send(send_mail_request=send_mail_request)
print(response)
```

### With Mail Helper Class

```python
Expand Down
11 changes: 11 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Upgrade Guide

_`MAJOR` version bumps will have upgrade notes posted here._

[2024-10-XX] 6.x.x to 7.x.x-rc.x
--------------------------------
### Overview

#### Sendgrid Python Helper Library’s version 7.0.0-rc.x is now available.

Behind the scenes Python Helper is now auto-generated via OpenAPI with this release. This enables us to rapidly add new features and enhance consistency across versions and languages.
2 changes: 1 addition & 1 deletion sendgrid/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '6.11.0'
__version__ = '7.0.0-rc.1'

0 comments on commit 058bb90

Please sign in to comment.