semvec/pypi-packages huggingface dataset:
drf-temptoken 0.0.3
DRF temporary token authentication
Requires Python: >=3.8
Keywords: python,python3,django,drf,djangorestframework,django rest framework,token,temptoken,temporary


# drf-temptoken

DRF temporary authentication token

## Installation 
```bash
pip install drf-temptoken
```

## Usage
Include drf_temptoken in INSTALLED_APPS

```python
INSTALLED_APPS = [
    ...,
    'drf_temptoken'
]
```
Add drf_temptoken.auth.TempTokenAuthentication into your authentication classes 
```python
REST_FRAMEWORK = {
    'DEFAULT_AUTHENTICATION_CLASSES': (
        'drf_temptoken.auth.TempTokenAuthentication',
    )
}
```

Create token for user 

```python
from django.contrib.auth import get_user_model
from drf_temptoken.utils import create_token, get_user_tokens

User = get_user_model()

user = User.objects.first()

token = create_token(user)

# Sets token's expiration date to current
token = token.expire()

key = token.key # Used in authentication process

tokens = get_user_tokens(user) # Returns a queryset of TempTokens belonging to the user

```

Default settings (can be overriden in Django's settings)

```python
TMP_TOKEN_HEADER_PREFIX = 'TMP'

TMP_TOKEN_AUTH_HEADER = 'Authorization'

# Set any value in order to get the token from query
TMP_TOKEN_QUERY_PARAM = None



# Python's timedelta kwargs passed in order to set token's expiration date
TMP_TOKEN_TIME_DELTA_KWARGS = {
    'days': 7 # Token will be expired in 7 days by default
}
```

Auth backend will check for HTTP_AUTHORIZATION: TMP {token} by default

Assuming your token (token.key) is equal to "123", your request should look like this:

```python
import requests

headers = {
    'Authorization': 'TMP 123'
}

response = requests.get(url, headers=headers)
```

Or like this if you set query param to _api_key:

```python
import requests

url = 'https://example.com?_api_key=123'

response = requests.get(url)

```
lupo 0.0.3.4
A Python Framework for creating Cross-Platform Desktop Applications
Requires Python: >=3.7

<div align="center">
  <a>
    <img src="https://raw.githubusercontent.com/anthonyhfm/Lupo/master/lupo.svg">
  </a>
</div>

## Introduction
**Lupo** is an easy way to make good looking **Cross-Platform** User Interfaces for using Python.

## Support

- ✅ &nbsp; MacOS _is Supported_ **(more work in progress)**
- ✅️ &nbsp; Windows _is Supported_ **(more work in progress)**
- ❌️ &nbsp; Linux ***is not Supported yet***

## Installation

````
pip install lupo
````

## Simple Window using Lupo

```python
from lupo import *

window = Window()
window.set_size(300, 300)
window.set_title("Hello World!")
window.set_resizable(False) # Proper window resizing is not implemented in the current Version of Lupo (disable it for good)

window.body = View(children=[ # This is the Body of the Window with Views and Children
    
    Row(style=Style(gap=px(10)), children=[ # Creates a Row of Buttons with a 10 pixel Gap in between
        Button("Hello", Style(width=px(100), height=px(100))),
        Button("World", Style(width=px(100), height=px(100))),
    ]),
    
])
```

If you want to help me building this Library, feel free to ***fork*** the repo and _contribute_
Pacote-processamento-de-imagens 0.0.1
Pacote de processamento de imagens
Requires Python: >=3.8

# processador_imagens_Palmiere

Description. 
The package processador_imagens_Palmiere is used to:
	Processing
	- Histogram matching
	- Structural similarity
	- Resize image

	Utils:
	- Raed image
	- Save image
	- Plot image
	- Plot result
	- Plot histogram

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install package_name

```bash
pip install processador_imagens_Palmiere
```

## Usage

```python
from processador_imagens_Palmiere import processing_images
processing.combination
processing.combinnation
utils.io
utils.plot
```

## Author
Sérgio E. Palmiere

## License
[MIT](https://choosealicense.com/licenses/mit/)