Skip to content

Commit 99efb69

Browse files
committed
Rename project from LogWard to LogTide
1 parent c796a6e commit 99efb69

20 files changed

Lines changed: 175 additions & 175 deletions

README.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# LogWard Python SDK
1+
# LogTide Python SDK
22

3-
Official Python SDK for LogWard with advanced features: automatic batching, retry logic, circuit breaker, query API, live streaming, and middleware support.
3+
Official Python SDK for LogTide with advanced features: automatic batching, retry logic, circuit breaker, query API, live streaming, and middleware support.
44

55
## Features
66

@@ -25,34 +25,34 @@ Official Python SDK for LogWard with advanced features: automatic batching, retr
2525
## Installation
2626

2727
```bash
28-
pip install logward-sdk
28+
pip install logtide-sdk
2929
```
3030

3131
### Optional dependencies
3232

3333
```bash
3434
# For async support
35-
pip install logward-sdk[async]
35+
pip install logtide-sdk[async]
3636

3737
# For Flask middleware
38-
pip install logward-sdk[flask]
38+
pip install logtide-sdk[flask]
3939

4040
# For Django middleware
41-
pip install logward-sdk[django]
41+
pip install logtide-sdk[django]
4242

4343
# For FastAPI middleware
44-
pip install logward-sdk[fastapi]
44+
pip install logtide-sdk[fastapi]
4545

4646
# Install all extras
47-
pip install logward-sdk[async,flask,django,fastapi]
47+
pip install logtide-sdk[async,flask,django,fastapi]
4848
```
4949

5050
## Quick Start
5151

5252
```python
53-
from logward_sdk import LogWardClient, ClientOptions
53+
from logtide_sdk import LogTideClient, ClientOptions
5454

55-
client = LogWardClient(
55+
client = LogTideClient(
5656
ClientOptions(
5757
api_url='http://localhost:8080',
5858
api_key='lp_your_api_key_here',
@@ -75,7 +75,7 @@ client.close()
7575

7676
| Option | Type | Default | Description |
7777
|--------|------|---------|-------------|
78-
| `api_url` | `str` | **required** | Base URL of your LogWard instance |
78+
| `api_url` | `str` | **required** | Base URL of your LogTide instance |
7979
| `api_key` | `str` | **required** | Project API key (starts with `lp_`) |
8080
| `batch_size` | `int` | `100` | Number of logs to batch before sending |
8181
| `flush_interval` | `int` | `5000` | Interval in ms to auto-flush logs |
@@ -99,7 +99,7 @@ client.close()
9999
```python
100100
import os
101101

102-
client = LogWardClient(
102+
client = LogTideClient(
103103
ClientOptions(
104104
api_url='http://localhost:8080',
105105
api_key='lp_your_api_key_here',
@@ -143,7 +143,7 @@ client = LogWardClient(
143143
### Basic Logging
144144

145145
```python
146-
from logward_sdk import LogLevel
146+
from logtide_sdk import LogLevel
147147

148148
client.debug('service-name', 'Debug message')
149149
client.info('service-name', 'Info message', {'userId': 123})
@@ -222,7 +222,7 @@ Search and retrieve logs programmatically.
222222

223223
```python
224224
from datetime import datetime, timedelta
225-
from logward_sdk import QueryOptions, LogLevel
225+
from logtide_sdk import QueryOptions, LogLevel
226226

227227
result = client.query(
228228
QueryOptions(
@@ -257,7 +257,7 @@ print(f"Trace has {len(logs)} logs")
257257

258258
```python
259259
from datetime import datetime, timedelta
260-
from logward_sdk import AggregatedStatsOptions
260+
from logtide_sdk import AggregatedStatsOptions
261261

262262
stats = client.get_aggregated_stats(
263263
AggregatedStatsOptions(
@@ -329,19 +329,19 @@ Auto-log all HTTP requests and responses.
329329

330330
```python
331331
from flask import Flask
332-
from logward_sdk import LogWardClient, ClientOptions
333-
from logward_sdk.middleware import LogWardFlaskMiddleware
332+
from logtide_sdk import LogTideClient, ClientOptions
333+
from logtide_sdk.middleware import LogTideFlaskMiddleware
334334

335335
app = Flask(__name__)
336336

337-
client = LogWardClient(
337+
client = LogTideClient(
338338
ClientOptions(
339339
api_url='http://localhost:8080',
340340
api_key='lp_your_api_key_here',
341341
)
342342
)
343343

344-
LogWardFlaskMiddleware(
344+
LogTideFlaskMiddleware(
345345
app,
346346
client=client,
347347
service_name='flask-api',
@@ -361,38 +361,38 @@ LogWardFlaskMiddleware(
361361
```python
362362
# settings.py
363363
MIDDLEWARE = [
364-
'logward_sdk.middleware.LogWardDjangoMiddleware',
364+
'logtide_sdk.middleware.LogTideDjangoMiddleware',
365365
]
366366

367-
from logward_sdk import LogWardClient, ClientOptions
367+
from logtide_sdk import LogTideClient, ClientOptions
368368

369-
LOGWARD_CLIENT = LogWardClient(
369+
LOGTIDE_CLIENT = LogTideClient(
370370
ClientOptions(
371371
api_url='http://localhost:8080',
372372
api_key='lp_your_api_key_here',
373373
)
374374
)
375-
LOGWARD_SERVICE_NAME = 'django-api'
375+
LOGTIDE_SERVICE_NAME = 'django-api'
376376
```
377377

378378
### FastAPI Middleware
379379

380380
```python
381381
from fastapi import FastAPI
382-
from logward_sdk import LogWardClient, ClientOptions
383-
from logward_sdk.middleware import LogWardFastAPIMiddleware
382+
from logtide_sdk import LogTideClient, ClientOptions
383+
from logtide_sdk.middleware import LogTideFastAPIMiddleware
384384

385385
app = FastAPI()
386386

387-
client = LogWardClient(
387+
client = LogTideClient(
388388
ClientOptions(
389389
api_url='http://localhost:8080',
390390
api_key='lp_your_api_key_here',
391391
)
392392
)
393393

394394
app.add_middleware(
395-
LogWardFastAPIMiddleware,
395+
LogTideFastAPIMiddleware,
396396
client=client,
397397
service_name='fastapi-api',
398398
)
@@ -413,11 +413,11 @@ See the [examples/](./examples) directory for complete working examples:
413413

414414
## API Reference
415415

416-
### LogWardClient
416+
### LogTideClient
417417

418418
#### Constructor
419419
```python
420-
client = LogWardClient(options: ClientOptions)
420+
client = LogTideClient(options: ClientOptions)
421421
```
422422

423423
#### Logging Methods
@@ -468,7 +468,7 @@ atexit.register(client.close)
468468
### 2. Use Global Metadata
469469

470470
```python
471-
client = LogWardClient(
471+
client = LogTideClient(
472472
ClientOptions(
473473
api_url='http://localhost:8080',
474474
api_key='lp_your_api_key_here',
@@ -484,7 +484,7 @@ client = LogWardClient(
484484
### 3. Enable Debug Mode in Development
485485

486486
```python
487-
client = LogWardClient(
487+
client = LogTideClient(
488488
ClientOptions(
489489
api_url='http://localhost:8080',
490490
api_key='lp_your_api_key_here',
@@ -524,8 +524,8 @@ monitor_thread.start()
524524

525525
```bash
526526
# Clone repository
527-
git clone https://github.com/logward-dev/logward-sdk-python.git
528-
cd logward-sdk-python
527+
git clone https://github.com/logtide/python-sdk.git
528+
cd logtide-sdk-python
529529

530530
# Create virtual environment
531531
python -m venv venv
@@ -542,13 +542,13 @@ pip install -e ".[dev]"
542542
pytest tests/
543543

544544
# Type checking
545-
mypy logward_sdk/
545+
mypy logtide_sdk/
546546

547547
# Code formatting
548-
black logward_sdk/ tests/ examples/
548+
black logtide_sdk/ tests/ examples/
549549

550550
# Linting
551-
ruff check logward_sdk/
551+
ruff check logtide_sdk/
552552
```
553553

554554
---
@@ -561,11 +561,11 @@ MIT
561561

562562
## Contributing
563563

564-
Contributions are welcome! Please open an issue or PR on [GitHub](https://github.com/logward-dev/logward-sdk-python).
564+
Contributions are welcome! Please open an issue or PR on [GitHub](https://github.com/logtide/python-sdk).
565565

566566
---
567567

568568
## Support
569569

570-
- **Documentation**: [https://logward.dev/docs](https://logward.dev/docs)
571-
- **Issues**: [GitHub Issues](https://github.com/logward-dev/logward-sdk-python/issues)
570+
- **Documentation**: [https://logtide.dev/docs](https://logtide.dev/docs)
571+
- **Issues**: [GitHub Issues](https://github.com/logtide/python-sdk/issues)

examples/advanced.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
"""Advanced features example for LogWard Python SDK."""
1+
"""Advanced features example for LogTide Python SDK."""
22

33
from datetime import datetime, timedelta
44

5-
from logward_sdk import (
5+
from logtide_sdk import (
66
AggregatedStatsOptions,
77
ClientOptions,
88
LogLevel,
9-
LogWardClient,
9+
LogTideClient,
1010
QueryOptions,
1111
)
1212

1313
# Full configuration
14-
client = LogWardClient(
14+
client = LogTideClient(
1515
ClientOptions(
1616
api_url="http://localhost:8080",
1717
api_key="lp_your_api_key_here",

examples/basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
"""Basic usage example for LogWard Python SDK."""
1+
"""Basic usage example for LogTide Python SDK."""
22

3-
from logward_sdk import ClientOptions, LogWardClient
3+
from logtide_sdk import ClientOptions, LogTideClient
44

55
# Initialize client
6-
client = LogWardClient(
6+
client = LogTideClient(
77
ClientOptions(
88
api_url="http://localhost:8080",
99
api_key="lp_your_api_key_here",

examples/fastapi_example.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
"""FastAPI middleware example for LogWard Python SDK."""
1+
"""FastAPI middleware example for LogTide Python SDK."""
22

33
from fastapi import FastAPI
44

5-
from logward_sdk import ClientOptions, LogWardClient
6-
from logward_sdk.middleware import LogWardFastAPIMiddleware
5+
from logtide_sdk import ClientOptions, LogTideClient
6+
from logtide_sdk.middleware import LogTideFastAPIMiddleware
77

88
app = FastAPI()
99

10-
# Initialize LogWard client
11-
client = LogWardClient(
10+
# Initialize LogTide client
11+
client = LogTideClient(
1212
ClientOptions(
1313
api_url="http://localhost:8080",
1414
api_key="lp_your_api_key_here",
@@ -17,7 +17,7 @@
1717

1818
# Add middleware
1919
app.add_middleware(
20-
LogWardFastAPIMiddleware,
20+
LogTideFastAPIMiddleware,
2121
client=client,
2222
service_name="fastapi-api",
2323
log_requests=True,

examples/flask_example.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
"""Flask middleware example for LogWard Python SDK."""
1+
"""Flask middleware example for LogTide Python SDK."""
22

33
from flask import Flask
44

5-
from logward_sdk import ClientOptions, LogWardClient
6-
from logward_sdk.middleware import LogWardFlaskMiddleware
5+
from logtide_sdk import ClientOptions, LogTideClient
6+
from logtide_sdk.middleware import LogTideFlaskMiddleware
77

88
app = Flask(__name__)
99

10-
# Initialize LogWard client
11-
client = LogWardClient(
10+
# Initialize LogTide client
11+
client = LogTideClient(
1212
ClientOptions(
1313
api_url="http://localhost:8080",
1414
api_key="lp_your_api_key_here",
1515
)
1616
)
1717

1818
# Add middleware
19-
LogWardFlaskMiddleware(
19+
LogTideFlaskMiddleware(
2020
app,
2121
client=client,
2222
service_name="flask-api",
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
"""LogWard SDK - Official Python SDK for LogWard."""
1+
"""LogTide SDK - Official Python SDK for LogTide."""
22

3-
from .client import LogWardClient
3+
from .client import LogTideClient
44
from .enums import CircuitState, LogLevel
5-
from .exceptions import BufferFullError, CircuitBreakerOpenError, LogWardError
5+
from .exceptions import BufferFullError, CircuitBreakerOpenError, LogTideError
66
from .models import (
77
AggregatedStatsOptions,
88
AggregatedStatsResponse,
@@ -17,7 +17,7 @@
1717

1818
__all__ = [
1919
# Client
20-
"LogWardClient",
20+
"LogTideClient",
2121
# Models
2222
"LogEntry",
2323
"ClientOptions",
@@ -30,7 +30,7 @@
3030
"LogLevel",
3131
"CircuitState",
3232
# Exceptions
33-
"LogWardError",
33+
"LogTideError",
3434
"CircuitBreakerOpenError",
3535
"BufferFullError",
3636
]

0 commit comments

Comments
 (0)