Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

smsuz

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smsuz

This is the API SMS Gateway Sayqal.uz

  • 0.0.1
  • PyPI
  • Socket score

Maintainers
1

smsuz

A Python library for sending SMS via the Sayqal.uz SMS gateway. This library allows you to send SMS messages from your Django application easily.

Installation

Install the package via pip:

pip install smsuz

Setup

  1. Add the sms application to your Django project's installed apps. Open your settings.py file and update as follows:

    INSTALLED_APPS = [
        ...
        'sms',
    ]
    
  2. Add the SAYQAL_USERNAME and SAYQAL_SECRETKEY constants to your project settings, which you can obtain after registering on Sayqal.uz:

    # settings.py
    
    SAYQAL_USERNAME = 'your_username_here'
    SAYQAL_SECRETKEY = 'your_secretkey_here'
    
  3. Run the database migrations to apply any necessary changes:

    python manage.py migrate
    

Usage

Import the sendSms function and use it to send SMS messages:

from sms.utils import sendSms

# Example of sending an SMS
sendSms('+998971234567', 'Your SMS message text')

Example

from sms.utils import sendSms

# Send an SMS to the specified phone number
phone_number = '+998971234567'
message = 'Your confirmation code: 123456'
sendSms(phone_number, message)

License

This project is licensed under the MIT License. See the LICENSE file for details.


by AbexLab

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc