semvec/pypi-packages huggingface dataset:
auth-passwordless-kavenegar 0.1.0
A Django app for passwordless authentication using Kavenegar SMS
License: MIT
Requires Python: >=3.6

# Using auth-passwordless-kavenegar Package

## Installation
First, you need to add the following model to your user model:

```python
from django.contrib.auth.models import AbstractUser
from django.db import models

class User(AbstractUser):
    username = None
    password = None
    mobile = models.CharField(
        max_length=13, 
        unique=True,
        db_index=True,
        help_text="Required. 13 characters mobile number",
        error_messages={
            "unique": ("A user with that mobile already exists."),
        },
        verbose_name='mobile'
    )

    USERNAME_FIELD = "mobile"

```

### Then add the following apps to your settings:

```python
INSTALLED_APPS = [
    ...
    'rest_framework',
    'drfpasswordless',
    'rest_framework_simplejwt',
    'auth-passwordless-kavenegar',
    ...
]
```

### Also, add the following configurations to your settings:

```python
REST_FRAMEWORK = {
    'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
    'PAGE_SIZE': 10,
    'DEFAULT_PERMISSION_CLASSES': (
        'rest_framework.permissions.IsAuthenticated',
    ),
    'DEFAULT_AUTHENTICATION_CLASSES': (
        'rest_framework_simplejwt.authentication.JWTAuthentication',
    ),
}
```

### And include the following URLs in your main urls.py:

```python

from django.urls import path, include

urlpatterns = [
    ...
    path('', include('auth-passwordless-kavenegar.urls')),
    ...
]

```

## Usage

### Endpoints
This package provides the following endpoints for authentication:

- `/auth/login/`: For user login request.
- `/auth/verify/`: For verifying the code sent to the user.
- `/auth/refresh/`: For token refreshing.

Note that if the user does not exist, they will be registered automatically, which can be adjusted from the settings.

### Installation
To use this package, first, make sure to add the following information to your Django project settings:

- `KAVENEGAR_API_KEY`: API key for Kavenegar SMS service.
- `KAVENEGAR_TEMPLATE`: Template ID for the SMS message.

Then, install the package using pip:

```bash
pip install auth-passwordless-kavenegar
qiskit-pqcee-provider 0.1.5
An 8-qubit universal quantum emulator adapted for web3 platforms, originally presented at IEEE QCE 20. This package takes Qiskit code and converts it to QuICScript, a language developed by pQCee to write quantum circuits.
License: MIT
Requires Python: <4,>=3.10

# qiskit-pqcee-provider
The Qiskit provider for pQCee blockchain quantum simulator

# Install
```
pip install qiskit-pqcee-provider
```

# Usage
```python
import qiskit
from qiskit_pqcee_provider import PqceeProvider

provider = PqceeProvider()
backend = provider.get_backend('pqcee_simulator')

qc = qiskit.QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
qc.measure_all()

job = backend.run(qc, shots=10)
result = job.result()
print(result.get_counts())
```
pushoverwrap 0.1.2
A simple Pushover API wrapper.
License: MIT
Requires Python: >=3.6

pushoverwrap is a simple [Pushover](https://pushover.net) API wrapper.

# Installation

Install pushoverwrap using pip

```bash
pip install pushoverwrap
```

## Usage

The most simple example:

```python

from pushoverwrap import Pushover

push = Pushover(
    app_token='APP_TOKEN',
    user_token='USER_TOKEN',
)

push.send_msg('message content')

```

A more complex example, with title and image

```python
push.send_msg('message content',
    title='message title',
    image='local/path/image.jpeg'
)

```