Skip to main content

uagents-twilio

PyPI version

This uagents utlity was generated with Cookiecutter.

Features

  • uagents protocols to send SMS or Whatsapp messages using twilio

  • supports on_message and on_query methods to receive and send messages

Installation

You can install “uagents-twilio” via pip from PyPI:

$ pip install uagents-twilio

You can install “uagents_twilio” via poetry:

$ poetry add uagents-twilio

Usage

  • Create .env file in root folder of project:

    AGENT_ADDRESS=""
    ACCOUNT_SID=""
    AUTH_TOKEN=""
    FROM_NUMBER=""
    WP_FROM_NUMBER=""
    TO_NUMBER=""
  • Create a uagents in your project

  • Import uagents_twilio protocol:

    $ from uagents_twilio.protocols.messages import service_protocol
  • Include protocol in uagent:

    $ service_agent.include(service_protocol)
  • Use functions:

    from uagents_twilio.models import Message, MessageType
    
    @service_agent.on_interval(period=2.0)
    async def send_message(ctx: Context):
        await ctx.send(
            AGENT_ADDRESS,
            Message(receiver="<replace_your_number>", msg="hello there bob", type=MessageType.sms),
        )

Metadata

Release files for uagents-twilio-beta 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uagents-twilio-beta 1.0.0
File Size Uploaded Provenance Actions
uagents_twilio_beta-1.0.0.tar.gz 3.7 kB Without provenance Details for uagents_twilio_beta-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for uagents-twilio-beta 1.0.0
File Interpreter ABI Platform Actions
uagents_twilio_beta-1.0.0-py3-none-any.whl Python 3 none any Details for uagents_twilio_beta-1.0.0-py3-none-any.whl

Total release size: 8.8 kB

Release files / uagents_twilio_beta-1.0.0.tar.gz

Download URL uagents_twilio_beta-1.0.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2fb90417574466e767fe04383d17d03ece2e178854b9b03f916b2772604d302d
BLAKE2b-256 checksum
How to use checksums
1ce9e4f3f37c433336d3c802216604d56bb4a79acfc05f1940607437b54ba8cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-50-generic

Release files / uagents_twilio_beta-1.0.0-py3-none-any.whl

Download URL uagents_twilio_beta-1.0.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb06ed894e47d52b5cf34117083a4e51893419dddbab142ddb6f320f07dd506b
BLAKE2b-256 checksum
How to use checksums
ea39a902c10ac0261224d303cd0904a2a3973e01bde3c766aa9cd7d00098ca20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-50-generic

Security for uagents-twilio-beta 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page