Skip to main content

BLE Beacon scanner

Project description

BLE Scanner Library

Build and Publish to PyPI

Description

This is a Python library for scanning BLE beacon devices. It is built on top of the Bleak library and provides an easy-to-use API for BLE scanning.

Installation

You can install the package directly from the source code:

python setup.py install

Or, you can use pip for installation:

pip install ble_scanner

Usage

Here's a quick example:

import asyncio
from ble_scanner.BLEScanner import BLEScanner

def main():
   # Create a BLEScanner instance
    scanner = BLEScanner(target_mac="E2:15")  # Replace the MAC
    scanner.initialize()

if __name__ == "__main__":
    main()

For more advanced usage, refer to the documentation.

Requirements

  • Python 3.7+
  • Bleak

License

MIT License

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ble_scanner-1.0.7.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

ble_scanner-1.0.7-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page