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.6.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.6-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mom_test_py-1.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 c3dbdf98ab33b56939fea10e8f6b39a72d580295b719aee164335c0ff3762675
MD5 53e25013cc212416a404f35417eec2bd
BLAKE2b-256 4db6432350a651825368bf7040c7c5e061e09fbb2972895a2fc7a81f2075a2cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mom_test_py-1.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 96f4a46ead0aeb92ae3e0532290fb6361bf1c9f82f14c0a369a93b6577ca9d00
MD5 067d2f2bee5ef35fc6f061ffa74254c3
BLAKE2b-256 593da517d53f5e21547a3a747e9f40a751b5811ccb36f44f42529f0064a4cd56

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