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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mom_test_py-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 83e3802ac489fa5d84f26c0b5e27d8c3d2046539af586c7b7d34a5462ce395fb
MD5 0cdd1707ec43dfdbdbf2da4ada7b044a
BLAKE2b-256 0cc2e28117596eb2880ac18856095958f0a548d805076ca518c1dd437c45702b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mom_test_py-1.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5694690335f69bc6adc453896fb7f175d30838d148fd72a16ab4dbfe491daaa0
MD5 923954d2c1988cec4dca361c95b4ccbe
BLAKE2b-256 8d624db7e2377372ce128b1ea2850a8645322a35e94e28236c9ff6ee3c5c6547

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