No project description provided
Project description
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
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:
- First activate the virtual environment, this command must always be run before using the python SDK:
source idun_env/bin/activate
- After the environment is activated, install the Python SDK using the following command:
pip install idun-guardian-sdk
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file idun_guardian_sdk-0.1.22.tar.gz.
File metadata
- Download URL: idun_guardian_sdk-0.1.22.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.10.19 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
347d11fb614b03ac60853e863ddded447132725e2821e251e6b76ceb242b388e
|
|
| MD5 |
d019b9750956f3d27a27fe01ea00f1c2
|
|
| BLAKE2b-256 |
4b92dd92d9510de1613bd2b147519b02ee3ce66d8c48fa7070b271597ed8890f
|
File details
Details for the file idun_guardian_sdk-0.1.22-py3-none-any.whl.
File metadata
- Download URL: idun_guardian_sdk-0.1.22-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.10.19 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48664c30c7b3d529c262905e936d336bcfadb4f873e68b2dd623ded3d9ba2180
|
|
| MD5 |
e6473d1819db12c1eec1a77a00c75e5a
|
|
| BLAKE2b-256 |
f863c59183be6dcbd6fb3b5b70b1ea69d47a968e5f9bfdb0a4d24ec4468b060a
|