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, auth_token, and from_ phone number with values from your Twilio account. The to phone number will be your own mobile phone.

from twilio.rest import Client

# Your Account SID and Auth Token from console.twilio.com
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token  = "your_auth_token"

client = Client(account_sid, auth_token)

message = client.messages.create(
    to="+15558675309",
    from_="+15017250604",
    body="Hello from Python!")

print(message.sid)

Save the file as send_sms.py. In the terminal, cd to the directory containing the file you just saved then run:

python3 send_sms.py

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.1.tar.gz (2.0 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.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mom_test_py-1.0.1.tar.gz
  • Upload date:
  • Size: 2.0 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.1.tar.gz
Algorithm Hash digest
SHA256 a1727dc9db5952cb93fdf5026ca186d836c7563d07374f42b6063e2b6082a44f
MD5 5a1ca8459bb249cf389de4095ed1f9e2
BLAKE2b-256 c5e718928e0b012657b92e0839eaf324cc983c1a4909e593cda10d5a2fb04cf4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mom_test_py-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c864d75037cacc7b05098a9e58dc3c31f89a486b2b5db49d75154e3898c51c5a
MD5 017ec4fe1b58d31953de5a932225d5f7
BLAKE2b-256 e6d92465d4510a51612d228d67dc9801169d351fe454720e879171b894017437

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