semvec/pypi-packages huggingface dataset:
pushnotifier 1.3.0
A python package for easy interaction with https://pushnotifier.de/

# PushNotifier (V2) for Python

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pushnotifier.svg)
![PyPI version](https://badge.fury.io/py/pushnotifier.svg)
![build](https://img.shields.io/github/actions/workflow/status/tomg404/pushnotifier-python/python-package.yml?branch=master)
![Documentation Status](https://readthedocs.org/projects/pushnotifier-python/badge/?version=latest)
![GitHub](https://img.shields.io/github/license/tomg404/pushnotifier-python.svg)
![GitHub repo size](https://img.shields.io/github/repo-size/tomg404/pushnotifier-python.svg)

A python module to easily use the service of [PushNotifier](https://pushnotifier.de) in your python projects.

You can find the documentation [here](https://pushnotifier-python.readthedocs.io/en/latest/).

## About
Easily send

-   messages ✉️
-   urls 🌎
-   images 🖼️

via python to all your devices. For more info visit [pushnotifier.de](https://pushnotifier.de)

## Installation
-   Install PushNotifier via pip
    ```console
    $ pip install pushnotifier
    ```

-   Install PushNotifier manually
    ```console
    $ git clone https://github.com/tomg404/pushnotifier-python
    $ cd /path/to/repository/
    $ python setup.py install
    ```

## Usage
```python
from pushnotifier import PushNotifier

pn = PushNotifier('username', 'password', 'package_name', 'api_key')
```

### Sending messages
```python
>>> pn.send_text('hello world', silent=False, devices=['abcd', 'efgh'])
>>> pn.send_url('https://www.example.com', silent=False, devices=['abcd', 'efgh'])
>>> pn.send_notification('hello world', 'https://www.example.com', silent=False, devices=['abcd', 'efgh'])

>>> # Note on send_image: currently you can't send images to android/ios devices
>>> pn.send_image('path/to/image.png', silent=False, devices=['abcd', 'efgh'])
```

### Get Basic information
```python
>>> password = 'XXXXX'
>>> pn.login(password)
{'username': 'username', 'avatar': 'https://gravatar.com/avatar/XXXXX', 'app_token': 'XXXXX', 'expires_at': XXXXX}

>>> pn.get_all_devices()
['abcd', 'efgh', 'ijkl']
```

### Refresh app token
```python
>> > pn.refresh_token()
'new_token'
```

### More detailed help
See the [documentation](https://pushnotifier-python.readthedocs.io/en/latest/) or
```python
>>> help(pn.some_method_you_need_help_on)
```
data-quest-client 0.1.3
This is a client package that is used to send queries to Dataquest API.
Requires Python: >=3.7

## This is a python module. It is used to make authenticated queries to Dataquest API.

**Installation**:
`pip install dataquest-client`

### Get Started

```Python
from data_quest_client import DataQuestClient

# define query
query = 'query sqlDataSources{\
                   sqlProvider {\
                     dataSources{\
                       definition {\
                         name\
                       }\
                     }\
                   }\
                }'

# instantiate client with authentication.
dq_client = DataQuestClient(self.dq_url).with_application_authentication("<client-id>", ["<scopes>"], "<authority>",
                                                                         "<client secret>")

# make a query.
response = dq_client.query(query)
```


### Authentication

Authentication of DQ calls made from this client is either added through the .WithApplicationAuthenticaion() method, or by passing a token to the Query methods.

- If you are making DQ calls on behalf of the application making the call, you can use .with_applicatin_authentication() to authenticate the application. This is the called the 'client credentials flow' in MSAL. https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow.
- If you are making DQ calls on behalf of an entity in Azure Active Directory, you must first retrieve a token on their behalf and then pass said token as a parameter to query().

If both of the above are utilized, preference is given to the identity of the token passed in the query method.

*Acquiring tokens on behalf of a user, not applications, is not a function currently supported by this client. But can be with user request.*