<commit_before>Dailymotion API SDK for Python.

Installation
------------

```
$ git clone <EMAIL>:dailymotion/dailymotion-sdk-python.git
$ cd dailymotion-sdk-python
$ python setup.py install
```


Examples
--------

Public API call:

```python
d = dailymotion.Dailymotion()
d.get('/videos')
```

Authenticated call:

```python
d = dailymotion.Dailymotion()
d.set_grant_type('password', api_key=API_KEY, api_secret=API_SECRET,
    scope=['userinfo'], info={'username': USERNAME, 'password': PASSWORD})
d.get('/me', {'fields': 'id,fullname'})<commit_msg>Add pip install to Readme<commit_after>Dailymotion API SDK for Python.

Installation
------------

```
$ pip install dailymotion
```

Or

```
$ git clone <EMAIL>:dailymotion/dailymotion-sdk-python.git
$ cd dailymotion-sdk-python
$ python setup.py install
```


Examples
--------

Public API call:

```python
d = dailymotion.Dailymotion()
d.get('/videos')
```

Authenticated call:

```python
d = dailymotion.Dailymotion()
d.set_grant_type('password', api_key=API_KEY, api_secret=API_SECRET,
    scope=['userinfo'], info={'username': USERNAME, 'password': PASSWORD})
d.get('/me', {'fields': 'id,fullname'})
{'fraction_non_alphanumeric': 0.1944684528954192, 'fraction_numerical': 0.0, 'mean_word_length': 4.732673267326732, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2690335', 'n_tokens_mistral': 444, 'n_tokens_neox': 423, 'n_words': 83}