1- # CogniPy
1+ # Codegnipy
22
3- [ ![ PyPI version] ( https://img.shields.io/pypi/v/cognipy .svg )] ( https://pypi.org/project/cognipy / )
4- [ ![ Python] ( https://img.shields.io/pypi/pyversions/cognipy .svg )] ( https://pypi.org/project/cognipy / )
5- [ ![ License] ( https://img.shields.io/github/license/ChidcGithub/CogniPy )] ( LICENSE )
6- [ ![ Build Status] ( https://github.com/ChidcGithub/CogniPy /actions/workflows/ci.yml/badge.svg )] ( https://github.com/ChidcGithub/CogniPy /actions/workflows/ci.yml )
7- [ ![ Coverage] ( https://img.shields.io/codecov/c/github/ChidcGithub/CogniPy .svg )] ( https://codecov.io/gh/ChidcGithub/CogniPy )
3+ [ ![ PyPI version] ( https://img.shields.io/pypi/v/codegnipy .svg )] ( https://pypi.org/project/codegnipy / )
4+ [ ![ Python] ( https://img.shields.io/pypi/pyversions/codegnipy .svg )] ( https://pypi.org/project/codegnipy / )
5+ [ ![ License] ( https://img.shields.io/github/license/ChidcGithub/Codegnipy )] ( LICENSE )
6+ [ ![ Build Status] ( https://github.com/ChidcGithub/Codegnipy /actions/workflows/ci.yml/badge.svg )] ( https://github.com/ChidcGithub/Codegnipy /actions/workflows/ci.yml )
7+ [ ![ Coverage] ( https://img.shields.io/codecov/c/github/ChidcGithub/Codegnipy .svg )] ( https://codecov.io/gh/ChidcGithub/Codegnipy )
88
99** AI-Native Python Language Extension**
1010
11- CogniPy seamlessly integrates Large Language Models (LLMs) into Python, making non-deterministic AI capabilities a first-class citizen in your code. Write logic close to natural language while achieving production-grade performance and debuggability.
11+ Codegnipy seamlessly integrates Large Language Models (LLMs) into Python, making non-deterministic AI capabilities a first-class citizen in your code. Write logic close to natural language while achieving production-grade performance and debuggability.
1212
1313## Features
1414
@@ -22,21 +22,21 @@ CogniPy seamlessly integrates Large Language Models (LLMs) into Python, making n
2222## Installation
2323
2424``` bash
25- pip install cognipy
25+ pip install codegnipy
2626```
2727
2828For development:
2929
3030``` bash
31- pip install cognipy [dev]
31+ pip install codegnipy [dev]
3232```
3333
3434## Quick Start
3535
3636### The ` ~ ` Operator
3737
3838``` python
39- from cognipy import CognitiveContext, cognitive_call
39+ from codegnipy import CognitiveContext, cognitive_call
4040
4141with CognitiveContext(api_key = " your-api-key" ):
4242 # Natural language prompts directly in code
@@ -47,7 +47,7 @@ with CognitiveContext(api_key="your-api-key"):
4747### The ` @cognitive ` Decorator
4848
4949``` python
50- from cognipy import cognitive, CognitiveContext
50+ from codegnipy import cognitive, CognitiveContext
5151
5252@cognitive
5353def summarize (text : str ) -> str :
@@ -62,7 +62,7 @@ with CognitiveContext(api_key="your-api-key"):
6262
6363``` python
6464import asyncio
65- from cognipy import batch_call, CognitiveContext
65+ from codegnipy import batch_call, CognitiveContext
6666
6767async def main ():
6868 prompts = [
@@ -79,7 +79,7 @@ asyncio.run(main())
7979### With Memory Persistence
8080
8181``` python
82- from cognipy import CognitiveContext, FileStore
82+ from codegnipy import CognitiveContext, FileStore
8383
8484with CognitiveContext(
8585 api_key = " your-api-key" ,
@@ -93,7 +93,7 @@ with CognitiveContext(
9393### With Type Constraints
9494
9595``` python
96- from cognipy import PrimitiveConstraint, deterministic_call
96+ from codegnipy import PrimitiveConstraint, deterministic_call
9797
9898# Ensure LLM output is a valid integer between 0-100
9999constraint = PrimitiveConstraint(
@@ -114,7 +114,7 @@ if result.status == "valid":
114114### With Reflection
115115
116116``` python
117- from cognipy import CognitiveContext, with_reflection
117+ from codegnipy import CognitiveContext, with_reflection
118118
119119with CognitiveContext(api_key = " your-api-key" ) as ctx:
120120 result = with_reflection(
@@ -203,7 +203,7 @@ CognitiveContext(
203203### Scheduler
204204
205205``` python
206- from cognipy import CognitiveScheduler, Priority
206+ from codegnipy import CognitiveScheduler, Priority
207207
208208scheduler = CognitiveScheduler(
209209 max_concurrent = 5 ,
@@ -225,7 +225,7 @@ result = await scheduler.get_result(task_id, timeout=10.0)
225225### Hallucination Detection
226226
227227``` python
228- from cognipy import HallucinationDetector
228+ from codegnipy import HallucinationDetector
229229
230230detector = HallucinationDetector()
231231check = detector.detect(llm_response)
@@ -241,14 +241,14 @@ print(check.issues) # List of detected issues
241241| Variable | Description |
242242| ----------| -------------|
243243| ` OPENAI_API_KEY ` | OpenAI API key |
244- | ` COGNIPY_MODEL ` | Default model to use |
245- | ` COGNIPY_TEMPERATURE ` | Default temperature |
246- | ` COGNIPY_MAX_TOKENS ` | Default max tokens |
244+ | ` CODEGNIPY_MODEL ` | Default model to use |
245+ | ` CODEGNIPY_TEMPERATURE ` | Default temperature |
246+ | ` CODEGNIPY_MAX_TOKENS ` | Default max tokens |
247247
248248### Programmatic Configuration
249249
250250``` python
251- from cognipy import CognitiveContext
251+ from codegnipy import CognitiveContext
252252
253253ctx = CognitiveContext(
254254 api_key = " sk-..." ,
@@ -262,16 +262,16 @@ ctx = CognitiveContext(
262262
263263``` bash
264264# Run a script with cognitive features
265- cognipy run script.py
265+ codegnipy run script.py
266266
267267# Start interactive REPL
268- cognipy repl
268+ codegnipy repl
269269
270270# Show version
271- cognipy version
271+ codegnipy version
272272
273273# With options
274- cognipy run script.py --model gpt-4 --api-key sk-...
274+ codegnipy run script.py --model gpt-4 --api-key sk-...
275275```
276276
277277## Testing
@@ -283,15 +283,15 @@ cognipy run script.py --model gpt-4 --api-key sk-...
283283pytest tests/ -v
284284
285285# With coverage
286- pytest tests/ --cov=cognipy --cov-report=html
286+ pytest tests/ --cov=codegnipy --cov-report=html
287287```
288288
289289### Simulation Mode
290290
291291For testing without actual LLM calls:
292292
293293``` python
294- from cognipy import Simulator, SimulationMode
294+ from codegnipy import Simulator, SimulationMode
295295
296296simulator = Simulator(mode = SimulationMode.MOCK )
297297
@@ -311,8 +311,8 @@ simulator.load_recordings("recordings.json")
311311## Project Structure
312312
313313```
314- CogniPy /
315- cognipy /
314+ Codegnipy /
315+ codegnipy /
316316 __init__.py # Package exports
317317 runtime.py # Core runtime (cognitive_call, CognitiveContext)
318318 decorator.py # @cognitive decorator
@@ -345,8 +345,8 @@ CogniPy/
345345
346346``` bash
347347# Clone repository
348- git clone https://github.com/ChidcGithub/CogniPy .git
349- cd CogniPy
348+ git clone https://github.com/ChidcGithub/Codegnipy .git
349+ cd Codegnipy
350350
351351# Create virtual environment
352352python -m venv venv
@@ -359,8 +359,8 @@ pip install -e ".[dev]"
359359pytest tests/ -v
360360
361361# Run linting
362- ruff check cognipy /
363- mypy cognipy /
362+ ruff check codegnipy /
363+ mypy codegnipy /
364364```
365365
366366## Roadmap
@@ -377,10 +377,10 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
377377
378378## Acknowledgments
379379
380- CogniPy is inspired by the vision of making AI a natural part of programming, bridging the gap between deterministic code and probabilistic intelligence.
380+ Codegnipy is inspired by the vision of making AI a natural part of programming, bridging the gap between deterministic code and probabilistic intelligence.
381381
382382## Links
383383
384- - [ Documentation] ( https://github.com/ChidcGithub/CogniPy #readme )
385- - [ Issue Tracker] ( https://github.com/ChidcGithub/CogniPy /issues )
386- - [ PyPI Package] ( https://pypi.org/project/cognipy / )
384+ - [ Documentation] ( https://github.com/ChidcGithub/Codegnipy #readme )
385+ - [ Issue Tracker] ( https://github.com/ChidcGithub/Codegnipy /issues )
386+ - [ PyPI Package] ( https://pypi.org/project/codegnipy / )
0 commit comments