<commit_before>pili-sdk-python
=============

Pili server-side library for Python.

Installation
-------------
Install it from pip

    $ pip install pili

Usage:
-------------
### Init Setup
```python
from pili import *

clt = Client(access_key, secret_key, hub_name)
```

### Create Stream

```python
clt.create_stream()
```
or you can specify some arguments like

```python
clt.create_stream(title="test", publishSecurity="static")
```

### Get Stream
```python
clt.stream = get_stream(stream_id=id)
```

### Update Stream
```python
stream.update(publishSecurity="dynamic")
```
...or
```python
stream.update(publishKey = key)
```
...or
```python
stream.update(publishKey = key, publishSecurity="dynamic")<commit_msg>fix document<commit_after>pili-sdk-python
=============

Pili server-side library for Python.

Installation
-------------
Install it from pip

    $ pip install pili

Usage:
-------------
### Init Setup
```python
from pili import *

clt = Client(access_key, secret_key, hub_name)
```

### Create Stream

```python
clt.create_stream()
```
or you can specify some arguments like

```python
clt.create_stream(title="test", publishSecurity="static")
```

### Get Stream
```python
stream = clt.get_stream(stream_id=id)
```

### Update Stream
```python
stream.update(publishSecurity="dynamic")
```
...or
```python
stream.update(publishKey = key)
```
...or
```python
stream.update(publishKey = key, publishSecurity="dynamic")
{'fraction_non_alphanumeric': 0.2045929018789144, 'fraction_numerical': 0.0, 'mean_word_length': 4.446969696969697, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3968198', 'n_tokens_mistral': 472, 'n_tokens_neox': 441, 'n_words': 114}