Metadata-Version: 2.4
Name: analytics-ingest
Version: 0.1.3
Summary: Python client for ingesting signals and GPS data to a GraphQL backend
Author-email: Haseeb Saif Ullah <hsaif@intrepidcs.com>
License: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.0
Requires-Dist: graphql-core>=3.2
Requires-Dist: faker>=19.0

# Analytics Ingest Client

A lightweight Python library to batch and push signals, DTCs, GPS data, and network stats to a GraphQL backend, with optional JWT or certificate-based auth.

---

## 🔧 Features

- Supports Python 3.11+
- Clean, single-class interface: `AnalyticsIngestClient`
- In-memory caching for resolved IDs (signals, messages, ECUs, etc.)
- Batching support (by interval, count, or signal limit)
- Async-safe request queuing (only 1 request at a time)
- JWT (`SEC_AUTH_TOKEN`) or cert-based authentication
- Minimal dependency footprint
- Easy to test and integrate

---

## 🚀 Installation

```bash
pip install analytics-ingest
```

## Run Test Cases
```
PYTHONPATH=src python3 -m unittest tests.test_add_signal
```
