semvec/pypi-packages huggingface dataset:
django-clerk 0.1.15
Django Integration for Clerk Auth Platform
Requires Python: >=3.8

# django-clerk

django-clerk is a Django library that integrates with the Clerk authentication platform. It provides seamless integration with Clerk's user authentication and authorization features, allowing you to easily authenticate and manage users in your Django application.

(or at least that's the goal - currently very alpha - thar be dragons)

[![PyPI - Version](https://img.shields.io/pypi/v/django-clerk.svg)](https://pypi.org/project/django-clerk)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-clerk.svg)](https://pypi.org/project/django-clerk)

---

**Table of Contents**

- [Installation](#installation)
- [License](#license)

## Installation

```console
pip install django-clerk
```

Add to apps

```python
INSTALLED_APPS = [
    # other apps...
    'django_clerk',
]
```

Add Middleware which sets request.user

```python
MIDDLEWARE = [

# other middleware...

'django_clerk.middleware.ClerkMiddleware',
]
```

The following setting is required.
CLERK_JWT_PEM_PUBLIC_KEY = "your_public_key_here"

## License

`django-clerk` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
textlink 0.0.1
Python library that helps you send SMS using TextLink API
Requires Python: >=3.6
Keywords: api,api-client,bulk-sms,simple-sms,sms,sms-api,sms-gateway,sms-verification,text-message,user-verification

# TextLink python client

[![PyPI](https://img.shields.io/pypi/v/textlink.svg)](https://pypi.python.org/pypi/textlink)
[![PyPI](https://img.shields.io/pypi/pyversions/textlink.svg)](https://pypi.python.org/pypi/textlink)

### Supported Python Versions

This library supports the following Python implementations:

* Python 3.6
* Python 3.7
* Python 3.8
* Python 3.9
* Python 3.10
* Python 3.11
* Python 3.12

## Installation
`pip install textlink`

## Sending an SMS

To send an SMS, you have to create an API key using the [TextLink dashboard](https://textlinksms.com/dashboard/api). When you register an account, you automatically get an API key with one free SMS which you can send anywhere.

### Just send a message

```python
import textlinksms as tl
tl.useKey("YOUR_API_KEY")

tl.sendSMS("+381611231234", "Dummy message text...")
```

### Handle response

```python
result = tl.sendSMS("+381611231234", "Dummy message text...")
if(result.ok):
  print(result.data)
else:
  print(result.message)
```

### Example result object of the successfully sent message

```json
{
    "ok": true
}
```

### Example result object of the unsuccessfully sent message

```json
{
    "ok": false,
    "message": "API key not found"
}
```

## Verifying a phone number

You can also use our service to easily verify a phone number, without storing data about the phones that you are about to verify, because we can do it for you.

### Example usage

```python
# User has sent his phone number for verification
resultSMS = tl.sendVerificationSMS ("+11234567890", service_name, expiration_time, source_country)

# Show him the code submission form
# We will handle the verification code ourselves

# The user has submitted the code
resultCode = tl.verifyCode("+11234567890", user_entered_code)
# if `resultCode.valid` is True, then the phone number is verified. 
```

#### Verification options (Optional)

`service_name` is what the user will see in the verification message, e. g. `"Your verification code for Guest is: CODE"`

`expiration_time` is how many miliseconds the code is valid. Default is 10 minutes.

`source_country` is the ISO-2 code of the sender's phone number country.

## Getting help

If you need help installing or using the library, please check the [FAQ](https://textlinksms.com) first, and contact us at [help@textlinksms.com](mailto://help@textlinksms.com) if you don't find an answer to your question.

If you've found a bug in the API, package or would like new features added, you are also free to contact us!