semvec/pypi-packages huggingface dataset:
musa-auth 1.1.0
Python Musa Auth helper
Requires Python: >=3.7

# Python Musa Auth

The "Python Musa Auth" is simple way to integrate to bia authentication system.

## Install:

##### 1.1 Install ssh way

```
    pip install git+ssh://git@github.com/Musatech/python-musa-auth.git#egg=musa-auth
```

##### 1.2 Install https way

```
    pip install git+https://github.com/Musatech/python-musa-auth.git#egg=musa-auth
```

##### 1.3 Install a old version

```
    pip install [...]/Musatech/python-musa-auth.git@{TAG_VERSION_HERE}#egg=musa-auth
```

## Using

1. Put this VAR in your `settings`

```
    PROJECT_KEY = 'bia'  # same of registered in bia
```

1. Put this APP in `settings.INSTALLED_APPS`

```
    INSTALLED_APPS = [
        ...
        'musa_auth.django',
        ...
    ]
```

1. Put this middleware in `settings.MIDDLEWARE`

```
    MIDDLEWARE = [
        ...
        'django.contrib.auth.middleware.AuthenticationMiddleware',
        'musa_auth.django.middleware.CookieUserMiddleware',
        ...
    ]
```

1. Put this code bellow in your `settings`

```
    ...
    AUTHENTICATION_BACKENDS = [
        # 'musa_auth.django.backends.MusaUserBackend',  # use if you NEED to save user in database
        # 'musa_auth.django.backends.MusaVirtualUserBackend',  # use if you DON`T need to save user in database
    ]
```

1. Put this code bellow in your `settings.REST_FRAMEWORK`

```
    ...
    REST_FRAMEWORK = {
        'UNAUTHENTICATED_USER': None,
        'DEFAULT_AUTHENTICATION_CLASSES': [
            'musa_auth.django.authentication.TokenAuthentication',
            'musa_auth.django.authentication.CookieAuthentication',
        ],
        'DEFAULT_PERMISSION_CLASSES': [
            # 'musa_auth.django.permission.ModelPermission',  # if you need model permissions
            # 'musa_auth.django.permission.GroupRequired',  # if you need manual groups required
            # 'musa_auth.django.permission.PermissionRequired',  # if you need manual permissions required
        ],
        ...
    }
```
bunting 0.1.4
SDK for geospatial APIs like OpenStreetMap and Census
Requires Python: >=3.4,<4.0

# Bunting Python SDK

Bunting Lab's Python SDK allows you to use the [Bunting Labs geospatial APIs](https://docs.buntinglabs.com/introduction) in your own libraries.

### Installation

```sh
$ pip install bunting
```

### Example

```py
import BuntingClient from bunting

# Get your API key from https://buntinglabs.com/account/register
bc = BuntingClient('gK6vkrFQXiU9')

# Download from openstreetmap
highways = bc.osm.extract('leisure=park', bbox=(5.976563,52.449314,6.245728,52.562995))

# Get as GeoDataFrame
highways.as_gdf()
```