Skip to main content

No project description provided

Project description

Company Logo

Python Versions

Idun Guardian SDK

Idun Guardian SDK is a Python package for interacting with the Guardian Earbud. It enables device search, battery monitoring, impedance streaming, real-time data collection, and report generation.

📖 Read the full documentation here

🎧 Have a look at the user manual here

🔗 Learn more about us here


Main features

  • 🔍 Search for Device: Locate the Guardian Earbud.
  • 🔋 Check Battery: Monitor battery levels.
  • 📡 Stream Impedance: Analyze impedance in real-time.
  • 🎧 Connect & Record Data:
    • Real-time insights (raw & filtered EEG)
    • Real-time predictions (FFT, jaw clench, eye movements, quality score)
  • 💾 Download & Manage Data:
    • Retrieve recorded sessions
    • Delete unwanted recordings
  • 📊 Generate Reports:
    • Sleep report
    • Daytime report

Python version

3.9 - 3.13


Installation

It is advised to create a new Python Virtual Environment:

  python -m venv idun_env
  source idun_env/bin/activate

Alternatively you can use third party tools such as Conda or Pipenv:

  1. First activate the virtual environment, this command must always be run before using the python SDK:
  source idun_env/bin/activate
  1. After the environment is activated, install the Python SDK using the following command:
  pip install idun-guardian-sdk
  1. After installing the package, make sure that the dependencies are correctly installed by running the following command and inspecting the packages installed in the terminal output:
  pip list

You should see as output a package named idun-guardian-sdk


Quick Start

📖 Read the full documentation here

Authentication

To use the API, set your token:

export IDUN_API_TOKEN=my-api-token

Or initialize the client in Python:

from idun_guardian_sdk import GuardianClient
client = GuardianClient(api_token="my-api-token")

Search for Device

import asyncio
from idun_guardian_sdk import GuardianClient

client = GuardianClient()
device_address = asyncio.run(client.search_device())

Check Battery Level

battery_level = asyncio.run(client.check_battery())
print(f"Battery Level: {battery_level}%")

Stream Impedance

asyncio.run(client.stream_impedance(mains_freq_60hz=False))

Start a Recording

RECORDING_TIMER = 600  # 10 minutes
asyncio.run(client.start_recording(recording_timer=RECORDING_TIMER))

Retrieve & Download Recording

recordings = client.get_recordings(status="COMPLETED", limit=10)
recording_id = recordings[0]['id']
client.download_file(recording_id=recording_id)

Generate Reports

client.generate_and_download_sleep_report(recording_id=recording_id)

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

idun_guardian_sdk-0.1.23.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

idun_guardian_sdk-0.1.23-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file idun_guardian_sdk-0.1.23.tar.gz.

File metadata

  • Download URL: idun_guardian_sdk-0.1.23.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.10.20 Linux/6.17.0-1008-azure

File hashes

Hashes for idun_guardian_sdk-0.1.23.tar.gz
Algorithm Hash digest
SHA256 b35757d23de379d00bad69249350e7c9cc250305e51bfcfcc5437ad9ceec9dcc
MD5 a4af8d71e4dcd15434b141c6b3b2ed78
BLAKE2b-256 f20469271b0e3a68f5ef50390f45d63a27c65f7c70758903b96afabe066d73d3

See more details on using hashes here.

File details

Details for the file idun_guardian_sdk-0.1.23-py3-none-any.whl.

File metadata

  • Download URL: idun_guardian_sdk-0.1.23-py3-none-any.whl
  • Upload date:
  • Size: 28.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.10.20 Linux/6.17.0-1008-azure

File hashes

Hashes for idun_guardian_sdk-0.1.23-py3-none-any.whl
Algorithm Hash digest
SHA256 2e2c6d0a7c7f21dbdc4644882b5d57ef8266bb1685193acd54b5fdd5d9e17e0b
MD5 6c9d19786105a9d68646a2d9bc9189be
BLAKE2b-256 eded26c68b82d4105287e2449d3812b98ea2cab13142053bf376890f66d641c0

See more details on using hashes here.

Supported by

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