semvec/pypi-packages huggingface dataset:
btsnoop 1.1.0
Parser for btsnoop file
Keywords: btsnoop bluetooth bt

# Parser for btsnoop

A project that analyzes btsnoop file. 

# example 1:
Display btsnoop pakcet info

>from btsnoop.btsnoop import *  
>btsnp = btsnoop('btsnoop_hci.log')  
>print(btsnp.parsed[0:10])  

# example 2:
Get remote / local device information in a list of dictionaries:

>[{'peer_addr': '90:3A:E6:2A:08:15',  
>  'name': 'MyLink Malibu',  
>  'oui': 'PARROT SA,174 Quai de Jemmapes Paris  FR 75010 ',  
>  'lmp_manufacture': 'Texas_Instruments',  
>  'lmp_version': 'V4_0',  
>  'lmp_subversion': 7002,  
>  'profiles': [(<service_class_t.AdvancedAudioDistribution: 4365>, '1.2'),  
>               (<service_class_t.Handsfree: 4382>, '1.6'),  
>               (<service_class_t.AV_RemoteControl: 4366>, '1.4')  
>               ]  
>  },  
>]  


>btsnp = btsnoop('btsnoop_hci.log')  
>remote_info = btsnp.get_remote_info()   
>print(remote_info)   


# example 3:
Find ACL connections which are sucessful or failed due to some kind of error

>btsnp = btsnoop('btsnoop_hci.log')  
>conns = btsnp.get_acl_connections(status=8)   
>print(conns)  

----

This is the README file for the project.

The file should use UTF-8 encoding and can be written using
[reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md
use]. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.

Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.

[packaging guide]: https://packaging.python.org
[distribution tutorial]: https://packaging.python.org/en/latest/distributing.html
[src]: svn://39.107.88.113/pytools/btsnoop
[rst]: https://zuolongjun.top:8888
[md]: https://tools.ietf.org/html/rfc7764#section-3.5 "CommonMark variant"
[md use]: https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
nftl-ed-lms-tools 0.1.5
Tool 4 partial Ed LMS API handling

# Library: nftl-ed-lms-tools

This is a tool for Ed LMS API handling.

Source documentation of api is available [here](http://developer.edapp.com/)

[PyPI project page](https://pypi.org/project/nftl-ed-lms-tools/)


# Installation

```sh
pip install nftl-ed-lms-tools
```

# Usage

```python
    from nftl_ed_lms_tools.client import EdClient

    ed = EdClient(token='xoxp-...')
    users = ed.get_users_api().get_users()

    if users:
        print('Yupi!')
```

# Interface

## Users
```python
    from nftl_ed_lms_tools.client import EdClient

    ed = EdClient(token='xoxp-...')
    users = ed.get_users_api().get_users()

    if users:
        print('Yupi!')
```

### Available methods
#### get_users()

Get a list of users.

[API reference](http://developer.edapp.com/#users_get)

```
Args:
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or users info as :py:class:`typing.List`
    when success
```

#### create_or_update_user()

Create or update a user.

[API reference](http://developer.edapp.com/#users_post)

```
Args:
    user_data: user data to create or update
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or users info as :py:class:`typing.List`
    when success
```

#### get_external_token()

Get users authentication token by externalId.

[API reference](http://developer.edapp.com/#users_external__id__token_get)

```
Args:
    external_id: users external identifier
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or users info as :py:class:`typing.List`
    when success
```

#### get_token()

Get users authentication token by user id.

[API reference](http://developer.edapp.com/#users__id__token_get)

```
Args:
    user_id: users external identifier
    token: optional auth token that will overwrite EdApi token    
Returns:
    None if data is invalid or users info as :py:class:`typing.List`
    when success
```

## User groups
```python
    from nftl_ed_lms_tools.client import EdClient

    ed = EdClient(token='xoxp-...')
    groups = ed.get_usersgroups_api().get()

    if groups:
        print('Yupi!')
```

### Available methods
#### get()

Get a list of user groups.

[API reference](http://developer.edapp.com/#usergroups_get)

```
Args:
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or user groups info as
    :py:class:`typing.List` when success
```

#### create_or_update_group()

Create or update a user group.

[API reference](http://developer.edapp.com/#usergroups_post)

```
Args:
    group_data: group data to create or update
    token: optional auth token that will overwrite EdApi token
Returns:
    None if data is invalid or group info as :py:class:`typing.Dict`
    when success
```

# Deployment how to

Available [here](https://packaging.python.org/tutorials/packaging-projects/)