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.5.tar.gz (4.2 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.5-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mom_test_py-1.0.5.tar.gz
  • Upload date:
  • Size: 4.2 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.5.tar.gz
Algorithm Hash digest
SHA256 80e89b5244a23a48931c1d5abe95fcc14044b59469fcedb4ccf6f9cb675e1060
MD5 f5b99e496074942cb8fe53f5c9c5e864
BLAKE2b-256 df309efd681e3aaaf6aa4ac126c0d29d4796a8325a477f460e9b4aa4dfe63733

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mom_test_py-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 1.7 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 29c9580b5e739791e603ebff614a35bf49d0503d0bd7f3696b5cfaeb1591c497
MD5 13b9bdf5aae9def3bec199a119f0076d
BLAKE2b-256 96707a2d3528cf94eb43a6668530e25698865558fbc5a8065914270769aee5c9

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