def-con-badge蓝牙库
badgebtle的Python项目详细描述
def con badge蓝牙库
一个基于bluepy的库,它对def-con徽章执行蓝牙扫描。
用法
基本
from badgebtle import BadgeBTLE
b = BadgeBTLE()
neighbors = b.scan()
print(neighbors)
开发
设置
$ git clone https://github.com/dczia/python-badgebtle.git
$ virtualenv-3 v
$ source ./v/bin/activate
$ pip install -r requirements.txt
构建并上传到pypi存储库
$ python setup.py sdist bdist_wheel
$ pip install twine
$ twine upload dist/badgebtle-x.x.x* #<-- Requires credentials.
$ python setup.py sdist bdist_wheel
$ pip install twine
$ twine upload dist/badgebtle-x.x.x* #<-- Requires credentials.