Thanks to visit codestin.com
Credit goes to github.com

Skip to content

text.py #397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 56 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
2cbf145
[Librarian] Regenerated @ 61e059e9694883693c4919778c1e37947fdb3168
Jul 27, 2017
65577d1
Adding Beta and Preview products to main artifact
Jul 27, 2017
f28bb59
Update CHANGES.md
Jul 27, 2017
f6d68b9
Release 6.5.0
Jul 27, 2017
f6af212
Add Recent Update section to README.md
Jul 27, 2017
9321baf
PyJWT >= 1.5.1 exception fixed (#377)
sharkykh Aug 10, 2017
d9b12a4
Add ChatGrant, deprecate IpMessagingGrant (#379)
jingming Aug 10, 2017
5f9a86e
[Librarian] Regenerated @ ea1da67304a17bf797eb8df684e25821d493a4ad
jmctwilio Aug 10, 2017
f4788c0
Update CHANGES.md for release.
jmctwilio Aug 10, 2017
da7a6b2
Release 6.5.1
jmctwilio Aug 10, 2017
d75a66b
Remove shipped certs (#376)
jingming Aug 18, 2017
c6e75bc
Create dummy clients which will throw an exception when instantiated …
tmconnors Aug 18, 2017
c510654
Fix spacing
Aug 18, 2017
35317d4
[Librarian] Regenerated @ a61ffef2698621af92e36a6887a9c79e2de2acc1
Aug 18, 2017
499c32f
Add DeployedDevices
Aug 18, 2017
1bf8807
Fix spacing
Aug 18, 2017
bf62c62
Release 6.5.2
Aug 18, 2017
4f6a3a0
Update CHANGES.md
Aug 18, 2017
c832931
Fix changelog
codejudas Aug 21, 2017
df3bbc2
Allow generating Jwt without nbf (#390)
codejudas Aug 25, 2017
e93b8a8
[Librarian] Regenerated @ 4b299c041980aa815254cd2ba767e17f2bf4465e
codejudas Aug 25, 2017
ac7b6a1
Update changelog
codejudas Aug 25, 2017
3fad1d8
Release 6.6.0
codejudas Aug 25, 2017
a84d6e2
[Librarian] Regenerated @ aaf708d9232410ef8a9d658c984080732b5470ff
tmconnors Sep 1, 2017
b29200a
Added Streams and DataSessions
tmconnors Sep 1, 2017
823a60b
Release 6.6.1
tmconnors Sep 1, 2017
b3257ce
[DEVX-5241] Add last_request and last_response to client. (#382)
jmctwilio Sep 8, 2017
19b5c4d
[Librarian] Regenerated @ 2234149bb54e48292171ddb19debc48b783816c5
Sep 9, 2017
8879636
Changelog for Release 6.6.2
Sep 9, 2017
62cd8fc
Release 6.6.2
tmconnors Sep 9, 2017
a88912f
[Librarian] Regenerated @ e42fae993485a0f5327f8e60b73fde425c7b814f
Sep 15, 2017
e848779
Release 6.6.3
Sep 15, 2017
4effa9c
[Librarian] Regenerated @ b70e5f40745f109d0ece448d02da75bee6d40eb0
codejudas Sep 28, 2017
d1c7804
Add new generated files
codejudas Sep 28, 2017
0b1d9b0
Update changelog and upgrade guide for 6.7.0
codejudas Sep 28, 2017
5eb38fc
Release 6.7.0
codejudas Sep 28, 2017
df0b500
Add twine dev dependency to fix uploading
Sep 29, 2017
ff193a1
[Librarian] Regenerated @ 9312385acce99defa656f2c1842eb038bf0823ad
Oct 6, 2017
895941a
6.7.1 Release
Oct 6, 2017
a77bfe5
Release 6.7.1
tmconnors Oct 6, 2017
96a35dd
[Librarian] Regenerated @ 075f0c561354c80a55d6973850c0404c6b218e94
Oct 13, 2017
10bf594
Regenerate
Oct 13, 2017
b3d9ae2
Release 6.8.0
Oct 13, 2017
9f3a32f
update request validator to remove port numbers from https urls (#394)
Brodan Oct 20, 2017
31bf309
add request logging and hooking (#385)
tysonholub Oct 20, 2017
f1c82f8
[Librarian] Regenerated @ c1a7d536285c92cf710a2947929f704a27409602
codejudas Oct 20, 2017
48e6a5b
Update changelog and authors for 6.8.1
codejudas Oct 20, 2017
a212539
Correctly add twine as dev dependency
codejudas Oct 20, 2017
9e997f1
Release 6.8.1
codejudas Oct 20, 2017
05644c6
Fix flake error
Oct 23, 2017
f2e58ee
Flake8 ignore generated files
Oct 23, 2017
0c82d14
[Librarian] Regenerated @ 7a7839b47231760a343c1db31f805001d48237b2
jmctwilio Oct 27, 2017
1062be8
Release 6.8.2
jmctwilio Oct 27, 2017
6df979e
Add serializer for list types (#396)
codejudas Nov 1, 2017
c0e534c
[Librarian] Regenerated @ cd74051ce77dd603b6a6c5f89423ba5d7e41e838
codejudas Nov 3, 2017
a686e4b
Release 6.8.3
codejudas Nov 3, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ We'd like to thank the following people who have contributed to the
- Dan Yang <[email protected]>
- Dennis Pilarinos <[email protected]>
- Doug Black <[email protected]>
- Evan Fossier <[email protected]>
- Fabian Topfstedt <[email protected]>
- Florian Le Goff <[email protected]>
- Frank Tobia <[email protected]>
Expand All @@ -35,3 +36,5 @@ We'd like to thank the following people who have contributed to the
- isbo <[email protected]>
- negeorge <[email protected]>
- Evan Cooke
- tysonholub
- Brodan
191 changes: 191 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,197 @@ twilio-python Changelog

Here you can see the full list of changes between each twilio-python release.

[2017-11-03] Version 6.8.3
---------------------------
**Api**
- Add programmable video keys

**Video**
- Add `Participants`


[2017-10-27] Version 6.8.2
---------------------------
**Chat**
- Add Binding resource
- Add UserBinding resource


[2017-10-20] Version 6.8.1
---------------------------
**Library**
- #394 Update request validator to remove port numbers from https urls. Thanks @Brodan!
- #385 Add request logging and hooking. Thanks @tysonholub!

**Api**
- Add `address_sid` param to IncomingPhoneNumbers create and update
- Add 'fax_enabled' option for Phone Number Search


[2017-10-13] Version 6.8.0
---------------------------
**Api**
- Add `smart_encoded` param for Messages
- Add `identity_sid` param to IncomingPhoneNumbers create and update

**Preview**
- Make 'address_sid' and 'email' optional fields when creating a HostedNumberOrder
- Add AuthorizationDocuments preview API.

**Proxy**
- Initial Release

**Wireless**
- Added `ip_address` to sim resource

**Twiml**
- Rename `number` to `phone_number` in Voice Number TwiML. *(breaking change)*
- Rename `message` to `body` in Messaging TwiML. *(breaking change)*


[2017-10-06] Version 6.7.1
---------------------------
**Preview**
- Add `acc_security` (authy-phone-verification) initial api-definitions

**Taskrouter**
- [bi] Less verbose naming of cumulative and real time statistics


[2017-09-28] Version 6.7.0
---------------------------
**Chat**
- Make member accessible through identity
- Make channel subresources accessible by channel unique name
- Set get list 'max_page_size' parameter to 100
- Add service instance webhook retry configuration
- Add media message capability
- Make `body` an optional parameter on Message creation. *(breaking change)*

**Notify**
- `data`, `apn`, `gcm`, `fcm`, `sms` parameters in `Notifications` create resource are dicts/objects instead of strings. Passing manually stringified json will continue to work.

**Taskrouter**
- Add new query ability by TaskChannelSid or TaskChannelUniqueName
- Move Events, Worker, Workers endpoint over to CPR
- Add new RealTime and Cumulative Statistics endpoints

**Video**
- Create should allow an array of video_codecs.
- Add video_codecs as a property of room to make it externally visible.


[2017-09-15] Version 6.6.3
---------------------------
**Api**
- Add `sip_registration` property on SIP Domains
- Add new video and market usage category keys


[2017-09-01] Version 6.6.2
---------------------------
- Added last_response and last_request to http_client

[2017-09-01] Version 6.6.1
---------------------------
**Sync**
- Add support for Streams

**Wireless**
- Added DataSessions sub-resource to Sims.


[2017-08-25] Version 6.6.0
---------------------------
**Library**
- Allow creating AccessTokens/Jwts without generating `nbf`. Passing `None` in the constructor will remove `nbf` from jwt payload.

**Api**
- Update `status` enum for Recordings to include 'failed'
- Add `error_code` property on Recordings

**Chat**
- Add mutable parameters for channel, members and messages

**Video**
- New `media_region` parameter when creating a room, which controls which region media will be served out of.

**Twiml**
- Add support for `speech_timeout`, `max_speech_time`, and `profanity_filter` attributes on Gather verb.


[2017-08-18] Version 6.5.2
---------------------------
**Library**
- Remove bundled certificates, use `certifi` package via `requests`.
- Add option to use connection pooling. This is enabled by default and will use one Session for all requests
in Client.
- To disable this, pass `pool_connections` parameter when creating your Twilio client.
```python
from twilio.rest import Client
from twilio.http.http_client import TwilioHttpClient

client = Client(
username,
password,
http_client=TwilioHttpClient(pool_connections=False)
)
```

**Api**
- Add VoiceReceiveMode {'voice', 'fax'} option to IncomingPhoneNumber UPDATE requests

**Chat**
- Add channel message media information
- Add service instance message media information

**Preview**
- Removed 'email' from bulk_exports configuration api [bi]. No migration plan needed because api has not been used yet.
- Add DeployedDevices.

**Sync**
- Add support for Service Instance unique names

[2017-08-10] Version 6.5.1
---------------------------
Fixed PyJWT >= 1.5.1 exception


**Api**
- Add New wireless usage keys added
- Add `auto_correct_address` param for Addresses create and update
- Add ChatGrant grant and deprecate IpMessagingGrant

**Video**
- Add `video_codec` enum and `video_codecs` parameter, which can be set to either `VP8` or `H264` during room creation.
- Restrict recordings page size to 100

[2017-07-27] Version 6.5.0
---------------------------
This release adds Beta and Preview products to main artifact.

Previously, Beta and Preview products were only included in the `alpha`
artifact. They are now being included in the main artifact to ease product
discoverability and the collective operational overhead of maintaining multiple
artifacts per library.

**Api**
- Remove unused `encryption_type` property on Recordings *(breaking change)*
- Update `status` enum for Messages to include 'accepted'

**Messaging**
- Fix incorrectly typed capabilities property for PhoneNumbers.

**Notify**
- Add `ToBinding` optional parameter on Notifications resource creation. Accepted values are json strings.

**Preview**
- Add `sms_application_sid` to HostedNumberOrders.

**Taskrouter**
- Fully support conference functionality in reservations.


[2017-07-12] Version 6.4.3
---------------------------
**Api**
Expand Down
159 changes: 159 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
# Contributing to `twilio-python`

We'd love for you to contribute to our source code and to make `twilio-python`
even better than it is today! Here are the guidelines we'd like you to follow:

- [Code of Conduct](#coc)
- [Question or Problem?](#question)
- [Issues and Bugs](#issue)
- [Feature Requests](#feature)
- [Documentation fixes](#docs)
- [Submission Guidelines](#submit)
- [Coding Rules](#rules)

## <a name="coc"></a> Code of Conduct

Help us keep `twilio-python` open and inclusive. Please be kind to and considerate
of other developers, as we all have the same goal: make `twilio-python` as good as
it can be.

## <a name="question"></a> Got an API/Product Question or Problem?

If you have questions about how to use `twilio-python`, please see our
[docs][docs-link], and if you don't find the answer there, please contact
[[email protected]](mailto:[email protected]) with any issues you have.

## <a name="issue"></a> Found an Issue?

If you find a bug in the source code or a mistake in the documentation, you can
help us by submitting [an issue][issue-link]. If the file in which the error
exists has this header:
```
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
```
then it is a generated file and the change will need to be made by us, but
submitting an issue will help us track it and keep you up-to-date. If the file
isn't generated, you can help us out even more by submitting a Pull Request with
a fix.

**Please see the [Submission Guidelines](#submit) below.**

## <a name="feature"></a> Want a Feature?

You can request a new feature by submitting an issue to our
[GitHub Repository][github]. If you would like to implement a new feature then
consider what kind of change it is:

* **Major Changes** that you wish to contribute to the project should be
discussed first with `twilio-python` contributors in an issue or pull request so
that we can develop a proper solution and better coordinate our efforts,
prevent duplication of work, and help you to craft the change so that it is
successfully accepted into the project.
* **Small Changes** can be crafted and submitted to the
[GitHub Repository][github] as a Pull Request.

## <a name="docs"></a> Want a Doc Fix?

If you want to help improve the docs in the helper library, it's a good idea to
let others know what you're working on to minimize duplication of effort. Create
a new issue (or comment on a related existing one) to let others know what
you're working on.

For large fixes, please build and test the documentation before submitting the
PR to be sure you haven't accidentally introduced layout or formatting issues.

If you want to help improve the docs at
[https://www.twilio.com/docs/libraries/python][docs-link], please contact
[[email protected]](mailto:[email protected]).

## <a name="submit"></a> Submission Guidelines

### Submitting an Issue
Before you submit your issue search the archive, maybe your question was already
answered.

If your issue appears to be a bug, and hasn't been reported, open a new issue.
Help us to maximize the effort we can spend fixing issues and adding new
features by not reporting duplicate issues. Providing the following information
will increase the chances of your issue being dealt with quickly:

* **Overview of the Issue** - if an error is being thrown a non-minified stack
trace helps
* **Motivation for or Use Case** - explain why this is a bug for you
* **`twilio-python` Version(s)** - is it a regression?
* **Operating System (if relevant)** - is this a problem with all systems or
only specific ones?
* **Reproduce the Error** - provide an isolated code snippet or an unambiguous
set of steps.
* **Related Issues** - has a similar issue been reported before?
* **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point
to what might be causing the problem (line of code or commit)

**If you get help, help others. Good karma rules!**

### Submitting a Pull Request
Before you submit your pull request consider the following guidelines:

* Search [GitHub][github] for an open or closed Pull Request that relates to
your submission. You don't want to duplicate effort.
* Make your changes in a new git branch:

```shell
git checkout -b my-fix-branch master
```

* Create your patch, **including appropriate test cases**.
* Follow our [Coding Rules](#rules).
* Run the full `twilio-python` test suite (aliased by `make test`), and ensure
that all tests pass.
* Commit your changes using a descriptive commit message.

```shell
git commit -a
```
Note: the optional commit `-a` command line option will automatically "add"
and "rm" edited files.

* Build your changes locally to ensure all the tests pass:

```shell
make test
```

* Push your branch to GitHub:

```shell
git push origin my-fix-branch
```

In GitHub, send a pull request to `twilio-python:master`.
If we suggest changes, then:

* Make the required updates.
* Re-run the `twilio-python` test suite to ensure tests are still passing.
* Commit your changes to your branch (e.g. `my-fix-branch`).
* Push the changes to your GitHub repository (this will update your Pull Request).

That's it! Thank you for your contribution!

#### After your pull request is merged

After your pull request is merged, you can safely delete your branch and pull
the changes from the main (upstream) repository.

## <a name="rules"></a> Coding Rules

To ensure consistency throughout the source code, keep these rules in mind as
you are working:

* All features or bug fixes **must be tested** by one or more tests.
* All classes and methods **must be documented**.

[docs-link]: https://www.twilio.com/docs/libraries/python
[issue-link]: https://github.com/twilio/twilio-python/issues/new
[github]: https://github.com/twilio/twilio-python
Loading