Skip to main content

DGLAB-python-driver

PyPI - Python Version GitHub Release PyPI - Version GitHub last commit CodeFactor PyPI - License

PyDGLAB - A Third-party DGLAB Python Driver

一个第三方的郊狼驱动器。

特性

  • 采用蓝牙直接连接郊狼设备
  • 采用asyncio实现
  • 易上手,相比于去看官方文档那真是简简又单单啊

开始之前

⚠️ CAUTION

本模块的使用可能伴随着人身安全风险,请确保您在使用前知道自己在做什么。作者对使用本模块造成的一切损失概不负责。

The use of this module may be accompanied by personal safety risks, please make sure you know what you're doing before using it. The author is not responsible for any losses caused by the use of this module.

快速上手

注意:郊狼2.0与3.0的使用方式并不相同!!!

安装

pip install pydglab

实例化并开启连接

对于郊狼2.0

import asyncio
import pydglab
from pydglab import model_v2

async def _():
    dglab_instance = pydglab.dglab()
    await dglab_instance.create()
    # Do whatever u want here

asyncio.run(_())

对于郊狼3.0

import asyncio
import pydglab
from pydglab import model_v3

async def _():
    dglab_instance = pydglab.dglab_v3()
    await dglab_instance.create()
    # Do whatever u want here

asyncio.run(_())

文档

请查阅demo_v2.py或demo_v3.py(取决于你所连接的设备是郊狼2.0还是3.0)来获取更多信息。

由于作者懒得写独立的文档了,因此关于模块的调用问题,请查阅内嵌的文档字符串(DocStrings)。

目前已支持郊狼2.0与3.0!

Release files for pydglab 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydglab 1.0.0
File Size Uploaded
pydglab-1.0.0.tar.gz 21.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydglab 1.0.0
File Interpreter ABI Platform
pydglab-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size:44.2 kB

Release files / pydglab-1.0.0.tar.gz

Download URL pydglab-1.0.0.tar.gz
Size 21.1 kB
Tags Source
SHA-256 checksum
How to use checksums
db57a23830458546f536c98e6e3d8c7ea2d4602a12acf0cb36b5ba4610124281
BLAKE2b-256 checksum
How to use checksums
7731e4bfc155d8d0733ce3f68679da897751ef1aa05782f657bf73f97f7cd707
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.6 Windows/10

Release files / pydglab-1.0.0-py3-none-any.whl

Download URL pydglab-1.0.0-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db1e959e012f15a616a9258273b9d8c6a47b0ab41d5eaa577110ba9c3b95a38b
BLAKE2b-256 checksum
How to use checksums
9d4608fcab06b497eb6bdb439d889081b7cda756899fa3ca448700a69017e509
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.6 Windows/10

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page