Helper library for working with tests
Project description
Supported Python Versions
This library supports the following Python implementations:
- Python 3.11
Installation
Install from PyPi using pip, a package manager for Python.
pip3 install plasgate
Test your installation
Try sending yourself an SMS message. Save the following code sample to your computer with a text editor. Be sure to update the account_sid, and auth_token from your Plasgate account.
from twilio.rest import Client
# Your Account private_key and x-secret_key from plasgate
account_sid = "your_private_key"
auth_token = "your_X_secret_key"
client = Client(account_sid, auth_token)
message = client.messages.create(
to="+85558675309",
sender="text_your_sender_name",
content="text_your_message")
print(message.sid)
After a brief delay, you will receive the text message on your phone.
Warning It's okay to hardcode your credentials when testing locally, but you should use environment variables to keep them secret before committing any code or deploying to production. Check out How to Set Environment Variables for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plasgate-1.0.0.tar.gz.
File metadata
- Download URL: plasgate-1.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d942b9f6a46432f301f6a38789d91dd866d8ae99778db839ac91506d7031578
|
|
| MD5 |
a57782f94ee88087c93ecf0998e148a7
|
|
| BLAKE2b-256 |
c4c24e7ee7dad6a546558e8c134a8a2b058571f0cb85869b6d13a87123ec192e
|
File details
Details for the file plasgate-1.0.0-py3-none-any.whl.
File metadata
- Download URL: plasgate-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d68d6c42cd6c7be89c5bcaa4ed9a4009914f5c40c2b42010387a1d2616dc0a54
|
|
| MD5 |
da24b7885e192c4bbf4c8a05239d3993
|
|
| BLAKE2b-256 |
77c13ea9322952896193abb1e08fcdb31637c06a9877bb03003f3d4b2c52de6b
|