smsuz


Namesmsuz JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://abexlab.uz
SummaryThis is the API SMS Gateway Sayqal.uz
upload_time2024-10-21 18:38:05
maintainerNone
docs_urlNone
authorIMOWWW
requires_python>=3.6
licenseMIT
keywords sms gateway django api smsuz sms uz
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# smsuz

A Python library for sending SMS via the [Sayqal.uz](https://sayqal.uz) SMS gateway. This library allows you to send SMS messages from your Django application easily.

## Installation

Install the package via `pip`:

```bash
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:

   ```python
   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](https://sayqal.uz):

   ```python
   # settings.py

   SAYQAL_USERNAME = 'your_username_here'
   SAYQAL_SECRETKEY = 'your_secretkey_here'
   ```

3. Run the database migrations to apply any necessary changes:

   ```bash
   python manage.py migrate
   ```

## Usage

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

```python
from sms.utils import sendSms

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

### Example

```python
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](LICENSE) file for details.

---

by AbexLab

            

Raw data

            {
    "_id": null,
    "home_page": "https://abexlab.uz",
    "name": "smsuz",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "sms gateway, django, api, smsuz, sms, uz",
    "author": "IMOWWW",
    "author_email": "imowww@yandex.ru",
    "download_url": "https://files.pythonhosted.org/packages/2b/21/1f982f33578f77263c93d09065eeccf8c7ad8f7501bdd0413957af1efa9b/smsuz-0.0.1.tar.gz",
    "platform": null,
    "description": "\n# smsuz\n\nA Python library for sending SMS via the [Sayqal.uz](https://sayqal.uz) SMS gateway. This library allows you to send SMS messages from your Django application easily.\n\n## Installation\n\nInstall the package via `pip`:\n\n```bash\npip install smsuz\n```\n\n## Setup\n\n1. Add the `sms` application to your Django project's installed apps. Open your `settings.py` file and update as follows:\n\n   ```python\n   INSTALLED_APPS = [\n       ...\n       'sms',\n   ]\n   ```\n\n2. Add the `SAYQAL_USERNAME` and `SAYQAL_SECRETKEY` constants to your project settings, which you can obtain after registering on [Sayqal.uz](https://sayqal.uz):\n\n   ```python\n   # settings.py\n\n   SAYQAL_USERNAME = 'your_username_here'\n   SAYQAL_SECRETKEY = 'your_secretkey_here'\n   ```\n\n3. Run the database migrations to apply any necessary changes:\n\n   ```bash\n   python manage.py migrate\n   ```\n\n## Usage\n\nImport the `sendSms` function and use it to send SMS messages:\n\n```python\nfrom sms.utils import sendSms\n\n# Example of sending an SMS\nsendSms('+998971234567', 'Your SMS message text')\n```\n\n### Example\n\n```python\nfrom sms.utils import sendSms\n\n# Send an SMS to the specified phone number\nphone_number = '+998971234567'\nmessage = 'Your confirmation code: 123456'\nsendSms(phone_number, message)\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\nby AbexLab\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "This is the API SMS Gateway Sayqal.uz",
    "version": "0.0.1",
    "project_urls": {
        "GitHub": "https://github.com/IMOWWW/smsuz.git",
        "Homepage": "https://abexlab.uz"
    },
    "split_keywords": [
        "sms gateway",
        " django",
        " api",
        " smsuz",
        " sms",
        " uz"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fb37dc5eb42141d808ec42256236be6a8fef2b0883bb1231f3104e263610587e",
                "md5": "f8abae697079a0e3b834dda8b06373e5",
                "sha256": "916c0ae39fbaa972deda80ca0496a28e78cd96a59229f096640d621cc7fc821d"
            },
            "downloads": -1,
            "filename": "smsuz-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f8abae697079a0e3b834dda8b06373e5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 8222,
            "upload_time": "2024-10-21T18:38:01",
            "upload_time_iso_8601": "2024-10-21T18:38:01.315259Z",
            "url": "https://files.pythonhosted.org/packages/fb/37/dc5eb42141d808ec42256236be6a8fef2b0883bb1231f3104e263610587e/smsuz-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2b211f982f33578f77263c93d09065eeccf8c7ad8f7501bdd0413957af1efa9b",
                "md5": "5f2c2a8ac896b8854acdd82f08256a91",
                "sha256": "cfe62c085e71dda0a6b56d2cf90bec7bc679cc3de5f4bf7f85619c055890c934"
            },
            "downloads": -1,
            "filename": "smsuz-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "5f2c2a8ac896b8854acdd82f08256a91",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6674,
            "upload_time": "2024-10-21T18:38:05",
            "upload_time_iso_8601": "2024-10-21T18:38:05.219954Z",
            "url": "https://files.pythonhosted.org/packages/2b/21/1f982f33578f77263c93d09065eeccf8c7ad8f7501bdd0413957af1efa9b/smsuz-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-21 18:38:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "IMOWWW",
    "github_project": "smsuz",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "smsuz"
}
        
Elapsed time: 1.16994s