Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mom_test_py-1.0.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mom_test_py-1.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file mom_test_py-1.0.2.tar.gz.

File metadata

  • Download URL: mom_test_py-1.0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for mom_test_py-1.0.2.tar.gz
Algorithm Hash digest
SHA256 cd641e54a50901ea09bfe2eab483d5c38d897e4ba1285bb1b25973d3fc575c36
MD5 2e47d38c85febb7579769b1cfa66eca3
BLAKE2b-256 90ce8a13cad71966b0b7b041294661ebcdee9992790619e9a0fd0d2a773f626f

See more details on using hashes here.

File details

Details for the file mom_test_py-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: mom_test_py-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for mom_test_py-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 897bc4f358fa9740fa96829ef9eaca088058a34c4f5690a592100417b23f970a
MD5 7cb76fed1478b5c83d6e0d9d3bb4effd
BLAKE2b-256 618aafadc643d5b4ef15c3fa8c34fdd2b84a03c976a3ae9b1e971bdc3e92dc82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page