Skip to content

Commit 09bbcf2

Browse files
committed
name updated
Signed-off-by: aritroCoder <ogcodinggod@gmail.com>
1 parent 1480e6a commit 09bbcf2

31 files changed

Lines changed: 171 additions & 197 deletions

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 PromptLayer Contributors
3+
Copyright (c) 2025 PromptShift Contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# PromptLayer
1+
# PromptShift
22

3-
[![CI Status](https://github.com/aritroCoder/promptlayer/workflows/test/badge.svg)](https://github.com/aritroCoder/promptlayer/actions)
3+
[![CI Status](https://github.com/aritroCoder/PromptShift/workflows/test/badge.svg)](https://github.com/aritroCoder/PromptShift/actions)
44
[![Coverage](https://img.shields.io/badge/coverage-95%25-brightgreen.svg)](htmlcov/index.html)
5-
[![PyPI version](https://img.shields.io/badge/pypi-1.0.0-blue.svg)](https://pypi.org/project/promptlayer/)
5+
[![PyPI version](https://img.shields.io/badge/pypi-1.0.0-blue.svg)](https://pypi.org/project/PromptShift/)
66
[![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
77
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
88

99
**Reliable structured output from LLMs with deterministic generation**
1010

11-
PromptLayer is a Python library that provides a simple, reliable way to get structured outputs from Large Language Models (LLMs). Built on top of Pydantic for schema validation and designed for deterministic, production-ready results.
11+
PromptShift is a Python library that provides a simple, reliable way to get structured outputs from Large Language Models (LLMs). Built on top of Pydantic for schema validation and designed for deterministic, production-ready results.
1212

1313
## Features
1414

@@ -25,15 +25,15 @@ PromptLayer is a Python library that provides a simple, reliable way to get stru
2525
Coming soon - will be available via pip:
2626

2727
```bash
28-
pip install promptlayer
28+
pip install PromptShift
2929
```
3030

3131
For detailed installation instructions and development setup, see the [full documentation](docs/index.md).
3232

3333
## Quick Start
3434

3535
```python
36-
from promptlayer import Client
36+
from PromptShift import Client
3737
from pydantic import BaseModel
3838

3939
# Define your output schema
@@ -57,11 +57,11 @@ print(f"{result.name} is {result.age} years old and works as a {result.occupatio
5757

5858
## Logging
5959

60-
PromptLayer provides detailed logging to help you debug and monitor LLM interactions. Retry attempts are logged at **INFO** level by default, making them visible without additional configuration.
60+
PromptShift provides detailed logging to help you debug and monitor LLM interactions. Retry attempts are logged at **INFO** level by default, making them visible without additional configuration.
6161

6262
### Default Logging Behavior
6363

64-
When retry attempts occur, PromptLayer logs the following information at INFO level:
64+
When retry attempts occur, PromptShift logs the following information at INFO level:
6565

6666
**Successful attempt example:**
6767
```
@@ -115,19 +115,19 @@ logging.basicConfig(level=logging.CRITICAL)
115115

116116
### Library-Specific Logger
117117

118-
To configure only PromptLayer logs without affecting other libraries:
118+
To configure only PromptShift logs without affecting other libraries:
119119

120120
```python
121121
import logging
122122

123-
# Get PromptLayer logger
124-
pl_logger = logging.getLogger("promptlayer")
123+
# Get PromptShift logger
124+
pl_logger = logging.getLogger("PromptShift")
125125

126-
# Set level for PromptLayer only
126+
# Set level for PromptShift only
127127
pl_logger.setLevel(logging.DEBUG)
128128

129129
# Add custom handler
130-
handler = logging.FileHandler("promptlayer.log")
130+
handler = logging.FileHandler("PromptShift.log")
131131
handler.setFormatter(logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s"))
132132
pl_logger.addHandler(handler)
133133
```
@@ -144,7 +144,7 @@ pl_logger.addHandler(handler)
144144

145145
```python
146146
import logging
147-
from promptlayer import Client
147+
from PromptShift import Client
148148

149149
# Production configuration - only errors and critical issues
150150
logging.basicConfig(
@@ -165,7 +165,7 @@ result = client.generate("Generate data", MySchema)
165165

166166
```python
167167
import logging
168-
from promptlayer import Client
168+
from PromptShift import Client
169169

170170
# Development configuration - see everything
171171
logging.basicConfig(
@@ -180,7 +180,7 @@ result = client.generate("Generate data", MySchema)
180180

181181
## Deterministic Generation
182182

183-
PromptLayer is designed for **100% reproducible outputs** to enable reliable testing, debugging, and production deployments. Every generation is deterministic by default.
183+
PromptShift is designed for **100% reproducible outputs** to enable reliable testing, debugging, and production deployments. Every generation is deterministic by default.
184184

185185
### Why Determinism Matters
186186

@@ -191,7 +191,7 @@ PromptLayer is designed for **100% reproducible outputs** to enable reliable tes
191191

192192
### How Determinism Works
193193

194-
PromptLayer achieves deterministic outputs through three mechanisms:
194+
PromptShift achieves deterministic outputs through three mechanisms:
195195

196196
1. **Temperature = 0.0**: Always uses temperature 0.0 for deterministic sampling
197197
2. **Automatic Seed Generation**: Creates deterministic seed from hash(prompt + JSON schema)
@@ -200,7 +200,7 @@ PromptLayer achieves deterministic outputs through three mechanisms:
200200
### Basic Deterministic Usage
201201

202202
```python
203-
from promptlayer import Client
203+
from PromptShift import Client
204204
from pydantic import BaseModel
205205

206206
class Person(BaseModel):
@@ -257,13 +257,13 @@ def test_person_generation():
257257

258258
### API Documentation
259259

260-
For more details on seed parameter and determinism options, see the [API Reference](https://promptlayer.readthedocs.io/api/client/).
260+
For more details on seed parameter and determinism options, see the [API Reference](https://PromptShift.readthedocs.io/api/client/).
261261

262262
**Groq API Seed Documentation**: [Groq API Docs](https://console.groq.com/docs/api-reference#seed)
263263

264264
## Performance
265265

266-
PromptLayer is designed for **minimal overhead** - the library adds less than 1ms to your requests (excluding the actual LLM API call).
266+
PromptShift is designed for **minimal overhead** - the library adds less than 1ms to your requests (excluding the actual LLM API call).
267267

268268
### Performance Characteristics
269269

@@ -282,7 +282,7 @@ PromptLayer is designed for **minimal overhead** - the library adds less than 1m
282282
### Performance Example
283283

284284
```python
285-
from promptlayer import Client
285+
from PromptShift import Client
286286
from pydantic import BaseModel
287287
import time
288288

@@ -349,8 +349,8 @@ For detailed performance analysis, see [docs/performance.md](docs/performance.md
349349

350350
1. Clone the repository:
351351
```bash
352-
git clone https://github.com/aritroCoder/promptlayer.git
353-
cd promptlayer
352+
git clone https://github.com/aritroCoder/PromptShift.git
353+
cd PromptShift
354354
```
355355

356356
2. Install uv (if not already installed):
@@ -385,7 +385,7 @@ uv run pytest
385385
uv run pytest tests/unit/
386386

387387
# Run tests with coverage
388-
uv run pytest --cov=src/promptlayer --cov-report=html
388+
uv run pytest --cov=src/PromptShift --cov-report=html
389389

390390
# Format code
391391
uv run black src/ tests/
@@ -470,5 +470,5 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
470470

471471
## Support
472472

473-
- 📫 Issues: [GitHub Issues](https://github.com/aritroCoder/promptlayer/issues)
474-
- 💬 Discussions: [GitHub Discussions](https://github.com/aritroCoder/promptlayer/discussions)
473+
- 📫 Issues: [GitHub Issues](https://github.com/aritroCoder/PromptShift/issues)
474+
- 💬 Discussions: [GitHub Discussions](https://github.com/aritroCoder/PromptShift/discussions)

pyproject.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[project]
2-
name = "promptlayer"
2+
name = "PromptShift"
33
version = "1.0.0"
44
description = "Reliable structured output from LLMs with deterministic generation"
55
authors = [
6-
{name = "PromptLayer Contributors", email = "contributors@promptlayer.dev"}
6+
{name = "PromptShift Contributors", email = "contributors@PromptShift.dev"}
77
]
88
readme = "README.md"
99
license = {text = "MIT"}
@@ -47,17 +47,17 @@ docs = [
4747
]
4848

4949
[project.urls]
50-
Homepage = "https://github.com/aritroCoder/promptlayer"
51-
Documentation = "https://promptlayer.readthedocs.io"
52-
Repository = "https://github.com/aritroCoder/promptlayer"
53-
Issues = "https://github.com/aritroCoder/promptlayer/issues"
50+
Homepage = "https://github.com/aritroCoder/PromptShift"
51+
Documentation = "https://PromptShift.readthedocs.io"
52+
Repository = "https://github.com/aritroCoder/PromptShift"
53+
Issues = "https://github.com/aritroCoder/PromptShift/issues"
5454

5555
[build-system]
5656
requires = ["hatchling"]
5757
build-backend = "hatchling.build"
5858

5959
[tool.hatch.build.targets.wheel]
60-
packages = ["src/promptlayer"]
60+
packages = ["src/PromptShift"]
6161

6262
[tool.black]
6363
line-length = 100
@@ -113,7 +113,7 @@ exclude = [
113113
]
114114

115115
[tool.ruff.isort]
116-
known-first-party = ["promptlayer"]
116+
known-first-party = ["PromptShift"]
117117

118118
[tool.mypy]
119119
python_version = "3.9"
@@ -145,7 +145,7 @@ python_functions = ["test_*"]
145145
addopts = [
146146
"-v",
147147
"--strict-markers",
148-
"--cov=src/promptlayer",
148+
"--cov=src/PromptShift",
149149
"--cov-report=html",
150150
"--cov-report=term-missing",
151151
]
@@ -155,7 +155,7 @@ markers = [
155155
]
156156

157157
[tool.coverage.run]
158-
source = ["src/promptlayer"]
158+
source = ["src/PromptShift"]
159159
omit = ["tests/*", "**/__pycache__/*"]
160160
branch = true
161161

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""PromptLayer: Reliable structured output from LLMs with deterministic generation."""
1+
"""PromptShift: Reliable structured output from LLMs with deterministic generation."""
22

33
from __future__ import annotations
44

@@ -8,7 +8,7 @@
88
AuthenticationError,
99
CacheError,
1010
ModelCapabilityError,
11-
PromptLayerError,
11+
PromptShiftError,
1212
ProviderError,
1313
RateLimitError,
1414
RetryExhaustedError,
@@ -27,7 +27,7 @@
2727
"CacheKeyGenerator",
2828
"Client",
2929
"ModelCapabilityError",
30-
"PromptLayerError",
30+
"PromptShiftError",
3131
"ProviderError",
3232
"RateLimitError",
3333
"ResponseCache",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
from pydantic import BaseModel
2929

30-
from promptlayer.utils import pydantic_to_json_schema
30+
from promptshift.utils import pydantic_to_json_schema
3131

3232
logger = logging.getLogger(__name__)
3333

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Core client class for PromptLayer library.
1+
"""Core client class for PromptShift library.
22
33
This module provides the Client class, which is the primary user-facing API
44
for generating structured output from LLMs.
@@ -71,7 +71,7 @@ class Client:
7171
Use separate Client instances for multi-threaded applications.
7272
7373
Example:
74-
>>> from promptlayer import Client
74+
>>> from PromptShift import Client
7575
>>> from pydantic import BaseModel
7676
>>>
7777
>>> class Person(BaseModel):

0 commit comments

Comments
 (0)