pinetext 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pinetext might be problematic. Click here for more details.
- pinetext-0.1.1/.devcontainer/Dockerfilei +1 -0
- pinetext-0.1.1/.devcontainer/devcontainer.json +5 -0
- pinetext-0.1.1/.dockerignore +7 -0
- pinetext-0.1.1/.env.example +4 -0
- pinetext-0.1.1/.github/workflows/prod.yml +38 -0
- {pinetext-0.1.0 → pinetext-0.1.1}/.github/workflows/test.yml +1 -1
- pinetext-0.1.1/Dockerfile +20 -0
- pinetext-0.1.1/PKG-INFO +86 -0
- pinetext-0.1.1/README.md +74 -0
- pinetext-0.1.1/docker-compose.yml +16 -0
- pinetext-0.1.1/docs/docs.json +32 -0
- pinetext-0.1.1/docs/pinetext/installation.mdx +53 -0
- pinetext-0.1.1/docs/pinetext/introduction.mdx +6 -0
- {pinetext-0.1.0 → pinetext-0.1.1}/pyproject.toml +2 -1
- pinetext-0.1.1/src/pinetext/client.py +52 -0
- pinetext-0.1.1/src/pinetext/settings.py +19 -0
- pinetext-0.1.1/tests/client_test.py +25 -0
- pinetext-0.1.1/tests/conftest.py +60 -0
- {pinetext-0.1.0 → pinetext-0.1.1}/uv.lock +76 -52
- pinetext-0.1.0/.env.example +0 -1
- pinetext-0.1.0/PKG-INFO +0 -15
- pinetext-0.1.0/README.md +0 -4
- pinetext-0.1.0/src/pinetext/client.py +0 -12
- pinetext-0.1.0/src/pinetext/settings.py +0 -10
- pinetext-0.1.0/tests/conftest.py +0 -12
- {pinetext-0.1.0 → pinetext-0.1.1}/.github/workflows/codeql.yml +0 -0
- {pinetext-0.1.0 → pinetext-0.1.1}/.github/workflows/pypi.yml +0 -0
- {pinetext-0.1.0 → pinetext-0.1.1}/.gitignore +0 -0
- {pinetext-0.1.0 → pinetext-0.1.1}/.pre-commit-config.yaml +0 -0
- {pinetext-0.1.0 → pinetext-0.1.1}/.python-version +0 -0
- {pinetext-0.1.0 → pinetext-0.1.1}/LICENSE +0 -0
- {pinetext-0.1.0 → pinetext-0.1.1}/codecov.yml +0 -0
- {pinetext-0.1.0 → pinetext-0.1.1}/src/pinetext/__init__.py +0 -0
- {pinetext-0.1.0 → pinetext-0.1.1}/src/pinetext/cli.py +0 -0
- {pinetext-0.1.0 → pinetext-0.1.1}/tests/cli_test.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# prod.yml
|
|
2
|
+
|
|
3
|
+
name: prod
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
release:
|
|
7
|
+
types: [created]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
publish:
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
packages: write
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: docker/login-action@v3
|
|
19
|
+
with:
|
|
20
|
+
registry: ghcr.io
|
|
21
|
+
username: ${{ github.actor }}
|
|
22
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
23
|
+
- name: Metadata
|
|
24
|
+
id: meta
|
|
25
|
+
uses: docker/metadata-action@v5
|
|
26
|
+
with:
|
|
27
|
+
images: ghcr.io/ezhuk/pinetext
|
|
28
|
+
tags: |
|
|
29
|
+
type=semver,pattern={{version}}
|
|
30
|
+
type=semver,pattern=latest
|
|
31
|
+
- uses: docker/setup-buildx-action@v3
|
|
32
|
+
- uses: docker/build-push-action@v6
|
|
33
|
+
with:
|
|
34
|
+
cache-from: type=gha
|
|
35
|
+
cache-to: type=gha,mode=max
|
|
36
|
+
context: .
|
|
37
|
+
push: true
|
|
38
|
+
tags: ${{ steps.meta.outputs.tags }}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
|
|
2
|
+
|
|
3
|
+
WORKDIR /app
|
|
4
|
+
|
|
5
|
+
ENV UV_COMPILE_BYTECODE=1 \
|
|
6
|
+
UV_LINK_MODE=copy
|
|
7
|
+
|
|
8
|
+
COPY pyproject.toml README.md uv.lock ./
|
|
9
|
+
|
|
10
|
+
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
11
|
+
uv sync --locked --no-install-project --no-dev
|
|
12
|
+
|
|
13
|
+
COPY src /app/src
|
|
14
|
+
|
|
15
|
+
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
16
|
+
uv sync --locked --no-dev
|
|
17
|
+
|
|
18
|
+
ENV PATH="/app/.venv/bin:$PATH"
|
|
19
|
+
|
|
20
|
+
ENTRYPOINT ["pinetext"]
|
pinetext-0.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pinetext
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: PineText
|
|
5
|
+
License-File: LICENSE
|
|
6
|
+
Requires-Python: >=3.13
|
|
7
|
+
Requires-Dist: pinecone-plugin-assistant>=1.7.0
|
|
8
|
+
Requires-Dist: pinecone>=7.3.0
|
|
9
|
+
Requires-Dist: pydantic-settings>=2.10.1
|
|
10
|
+
Requires-Dist: typer>=0.16.0
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
## PineText
|
|
14
|
+
|
|
15
|
+
[](https://github.com/ezhuk/pinetext/actions/workflows/test.yml)
|
|
16
|
+
[](https://codecov.io/github/ezhuk/pinetext)
|
|
17
|
+
[](https://pypi.org/p/pinetext)
|
|
18
|
+
|
|
19
|
+
A lightweight assistant built using [Pinecone](https://docs.pinecone.io/guides/assistant/overview) that helps create RAG-based chat applications for reasoning over documents, retrieving relevant context, and providing grounded answers.
|
|
20
|
+
|
|
21
|
+
## Getting Started
|
|
22
|
+
|
|
23
|
+
Use [uv](https://github.com/astral-sh/uv) to add and manage PineText as a dependency in your project, or install it directly via `uv pip install` or `pip install`. See the [Installation](https://github.com/ezhuk/modbus-mcp/blob/main/docs/modbus-mcp/installation.mdx) section of the documentation for full installation instructions and more details.
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
uv add pinetext
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
It can be embedded in and run directly from your application.
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
# app.py
|
|
33
|
+
from pinetext import PineText
|
|
34
|
+
|
|
35
|
+
def main():
|
|
36
|
+
pt = PineText()
|
|
37
|
+
pt.run()
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
It can also be launched from the command line using the provided `CLI` without modifying the source code.
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
pinetext
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Or in an ephemeral, isolated environment using `uvx`. Check out the [Using tools](https://docs.astral.sh/uv/guides/tools/) guide for more details.
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
uvx pinetext
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Configuration
|
|
53
|
+
|
|
54
|
+
Place documents in the `data` folder and make sure to set `PINECONE_API_KEY` and the assistant name before starting PineText.
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
export PINETEXT_PINECONE__API_KEY=your-api-key
|
|
58
|
+
export PINETEXT_PINECONE__ASSISTANT=assistant-name
|
|
59
|
+
export PINETEXT_PINECONE__DATA_DIR=data
|
|
60
|
+
export PINETEXT_PINECONE__MODEL=o4-mini
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
These settings can also be specified in a `.env` file in the working directory.
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
pinetext_pinecone__api_key=your-api-key
|
|
67
|
+
pinetext_pinecone__assistant=assistant-name
|
|
68
|
+
pinetext_pinecone__data_dir=data
|
|
69
|
+
pinetext_pinecone__model=o4-mini
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Docker
|
|
73
|
+
|
|
74
|
+
The PineText CLI can be deployed as a Docker container as follows:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
docker run -it \
|
|
78
|
+
--name pinetext \
|
|
79
|
+
--env-file .env \
|
|
80
|
+
-v $(pwd)/data:/app/data
|
|
81
|
+
ghcr.io/ezhuk/pinetext:latest
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## License
|
|
85
|
+
|
|
86
|
+
The server is licensed under the [MIT License](https://github.com/ezhuk/pinetext?tab=MIT-1-ov-file).
|
pinetext-0.1.1/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
## PineText
|
|
2
|
+
|
|
3
|
+
[](https://github.com/ezhuk/pinetext/actions/workflows/test.yml)
|
|
4
|
+
[](https://codecov.io/github/ezhuk/pinetext)
|
|
5
|
+
[](https://pypi.org/p/pinetext)
|
|
6
|
+
|
|
7
|
+
A lightweight assistant built using [Pinecone](https://docs.pinecone.io/guides/assistant/overview) that helps create RAG-based chat applications for reasoning over documents, retrieving relevant context, and providing grounded answers.
|
|
8
|
+
|
|
9
|
+
## Getting Started
|
|
10
|
+
|
|
11
|
+
Use [uv](https://github.com/astral-sh/uv) to add and manage PineText as a dependency in your project, or install it directly via `uv pip install` or `pip install`. See the [Installation](https://github.com/ezhuk/modbus-mcp/blob/main/docs/modbus-mcp/installation.mdx) section of the documentation for full installation instructions and more details.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
uv add pinetext
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
It can be embedded in and run directly from your application.
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
# app.py
|
|
21
|
+
from pinetext import PineText
|
|
22
|
+
|
|
23
|
+
def main():
|
|
24
|
+
pt = PineText()
|
|
25
|
+
pt.run()
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
It can also be launched from the command line using the provided `CLI` without modifying the source code.
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
pinetext
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Or in an ephemeral, isolated environment using `uvx`. Check out the [Using tools](https://docs.astral.sh/uv/guides/tools/) guide for more details.
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
uvx pinetext
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Configuration
|
|
41
|
+
|
|
42
|
+
Place documents in the `data` folder and make sure to set `PINECONE_API_KEY` and the assistant name before starting PineText.
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
export PINETEXT_PINECONE__API_KEY=your-api-key
|
|
46
|
+
export PINETEXT_PINECONE__ASSISTANT=assistant-name
|
|
47
|
+
export PINETEXT_PINECONE__DATA_DIR=data
|
|
48
|
+
export PINETEXT_PINECONE__MODEL=o4-mini
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
These settings can also be specified in a `.env` file in the working directory.
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
pinetext_pinecone__api_key=your-api-key
|
|
55
|
+
pinetext_pinecone__assistant=assistant-name
|
|
56
|
+
pinetext_pinecone__data_dir=data
|
|
57
|
+
pinetext_pinecone__model=o4-mini
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Docker
|
|
61
|
+
|
|
62
|
+
The PineText CLI can be deployed as a Docker container as follows:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
docker run -it \
|
|
66
|
+
--name pinetext \
|
|
67
|
+
--env-file .env \
|
|
68
|
+
-v $(pwd)/data:/app/data
|
|
69
|
+
ghcr.io/ezhuk/pinetext:latest
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
|
|
74
|
+
The server is licensed under the [MIT License](https://github.com/ezhuk/pinetext?tab=MIT-1-ov-file).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
services:
|
|
2
|
+
pinetext:
|
|
3
|
+
build: .
|
|
4
|
+
container_name: pinetext
|
|
5
|
+
restart: unless-stopped
|
|
6
|
+
env_file:
|
|
7
|
+
- .env
|
|
8
|
+
environment:
|
|
9
|
+
- pinetext_pinecone__api_key=${pinetext_pinecone__api_key:-}
|
|
10
|
+
- pinetext_pinecone__assistant=${pinetext_pinecone__assistant:-assistant-name}
|
|
11
|
+
- pinetext_pinecone__model=${pinetext_pinecone__model:-o4-mini}
|
|
12
|
+
- pinetext_pinecone__data_dir=/app/data
|
|
13
|
+
volumes:
|
|
14
|
+
- ${pinetext_pinecone__data_dir:-./data}:/app/data
|
|
15
|
+
stdin_open: true
|
|
16
|
+
tty: true
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://mintlify.com/docs.json",
|
|
3
|
+
"colors": {
|
|
4
|
+
"primary": "#16A34A",
|
|
5
|
+
"light": "#07C983",
|
|
6
|
+
"dark": "#15803D"
|
|
7
|
+
},
|
|
8
|
+
"description": "",
|
|
9
|
+
"icons": {
|
|
10
|
+
"library": "lucide"
|
|
11
|
+
},
|
|
12
|
+
"name": "Docs",
|
|
13
|
+
"navigation": {
|
|
14
|
+
"dropdowns": [
|
|
15
|
+
{
|
|
16
|
+
"dropdown": "PineText Assistant",
|
|
17
|
+
"description": "Reason over documents",
|
|
18
|
+
"icon": "file-search",
|
|
19
|
+
"groups": [
|
|
20
|
+
{
|
|
21
|
+
"group": "Getting Started",
|
|
22
|
+
"pages": [
|
|
23
|
+
"pinetext/introduction",
|
|
24
|
+
"pinetext/installation"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"theme": "maple"
|
|
32
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Installation
|
|
3
|
+
icon: terminal
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Use [uv](https://github.com/astral-sh/uv) to add and manage PineText as a dependency in your project, or install it directly via `uv pip install` or `pip install`. See the [Installation](https://github.com/ezhuk/modbus-mcp/blob/main/docs/modbus-mcp/installation.mdx) section of the documentation for full installation instructions and more details.
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
uv add pinetext
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
It can be embedded in and run directly from your application.
|
|
13
|
+
|
|
14
|
+
```python
|
|
15
|
+
# app.py
|
|
16
|
+
from pinetext import PineText
|
|
17
|
+
|
|
18
|
+
def main():
|
|
19
|
+
pt = PineText()
|
|
20
|
+
pt.run()
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
It can also be launched from the command line using the provided `CLI` without modifying the source code.
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
pinetext
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Or in an ephemeral, isolated environment using `uvx`. Check out the [Using tools](https://docs.astral.sh/uv/guides/tools/) guide for more details.
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
uvx pinetext
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Configuration
|
|
36
|
+
|
|
37
|
+
Place documents in the `data` folder and make sure to set `PINECONE_API_KEY` and the assistant name before starting PineText.
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
export PINETEXT_PINECONE__API_KEY=your-api-key
|
|
41
|
+
export PINETEXT_PINECONE__ASSISTANT=assistant-name
|
|
42
|
+
export PINETEXT_PINECONE__DATA_DIR=data
|
|
43
|
+
export PINETEXT_PINECONE__MODEL=o4-mini
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
These settings can also be specified in a `.env` file in the working directory.
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
pinetext_pinecone__api_key=your-api-key
|
|
50
|
+
pinetext_pinecone__assistant=assistant-name
|
|
51
|
+
pinetext_pinecone__data_dir=data
|
|
52
|
+
pinetext_pinecone__model=o4-mini
|
|
53
|
+
```
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Introduction
|
|
3
|
+
icon: book-open
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
PineText is a lightweight assistant built using [Pinecone](https://docs.pinecone.io/guides/assistant/overview) that helps create RAG-based chat applications for reasoning over documents, retrieving relevant context, and providing grounded answers.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pinetext"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.1"
|
|
4
4
|
description = "PineText"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.13"
|
|
7
7
|
dependencies = [
|
|
8
8
|
"pinecone>=7.3.0",
|
|
9
|
+
"pinecone-plugin-assistant>=1.7.0",
|
|
9
10
|
"pydantic-settings>=2.10.1",
|
|
10
11
|
"typer>=0.16.0",
|
|
11
12
|
]
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
|
|
3
|
+
from pinecone import Pinecone
|
|
4
|
+
from pinecone_plugins.assistant.models.chat import Message
|
|
5
|
+
|
|
6
|
+
from pinetext.settings import Settings
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
settings = Settings()
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class PineText:
|
|
13
|
+
def __init__(self):
|
|
14
|
+
pass
|
|
15
|
+
|
|
16
|
+
def get_or_create_assistant(self, name: str):
|
|
17
|
+
try:
|
|
18
|
+
return self.pinecone.assistant.describe_assistant(assistant_name=name)
|
|
19
|
+
except Exception:
|
|
20
|
+
return self.pinecone.assistant.create_assistant(assistant_name=name)
|
|
21
|
+
|
|
22
|
+
def upload_files(self, path: str):
|
|
23
|
+
folder = Path(path)
|
|
24
|
+
if folder.is_dir():
|
|
25
|
+
uploaded = [x.name for x in self.assistant.list_files()]
|
|
26
|
+
for x in sorted(folder.iterdir()):
|
|
27
|
+
if x.name not in uploaded:
|
|
28
|
+
self.assistant.upload_file(
|
|
29
|
+
file_path=str(x.resolve()),
|
|
30
|
+
metadata={
|
|
31
|
+
"filename": x.name,
|
|
32
|
+
"extension": x.suffix.lower().lstrip("."),
|
|
33
|
+
},
|
|
34
|
+
timeout=None,
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
def chat(self, text: str, model: str):
|
|
38
|
+
msg = Message(role="user", content=text)
|
|
39
|
+
resp = self.assistant.chat(messages=[msg], model=model)
|
|
40
|
+
return resp.message.content
|
|
41
|
+
|
|
42
|
+
def run(self):
|
|
43
|
+
self.pinecone = Pinecone(api_key=settings.pinecone.api_key)
|
|
44
|
+
self.assistant = self.get_or_create_assistant(settings.pinecone.assistant)
|
|
45
|
+
self.upload_files(settings.pinecone.data_dir)
|
|
46
|
+
|
|
47
|
+
while True:
|
|
48
|
+
text = input("> ").strip()
|
|
49
|
+
if text.lower() in ("exit", "quit"):
|
|
50
|
+
break
|
|
51
|
+
res = self.chat(text, settings.pinecone.model)
|
|
52
|
+
print(res)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from pydantic import BaseModel
|
|
2
|
+
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Pinecone(BaseModel):
|
|
6
|
+
api_key: str | None = None
|
|
7
|
+
assistant: str | None = "test-assistant"
|
|
8
|
+
data_dir: str | None = "data"
|
|
9
|
+
model: str | None = "o4-mini"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Settings(BaseSettings):
|
|
13
|
+
pinecone: Pinecone = Pinecone()
|
|
14
|
+
model_config = SettingsConfigDict(
|
|
15
|
+
env_file=".env",
|
|
16
|
+
env_file_encoding="utf-8",
|
|
17
|
+
env_nested_delimiter="__",
|
|
18
|
+
env_prefix="PINETEXT_",
|
|
19
|
+
)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import builtins
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def test_get_or_create_assistant(pinetext):
|
|
5
|
+
assistant = pinetext.get_or_create_assistant("foo")
|
|
6
|
+
assert assistant is pinetext.pinecone.assistant
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def test_upload_files(pinetext, tmp_path):
|
|
10
|
+
data = tmp_path / "data"
|
|
11
|
+
data.mkdir()
|
|
12
|
+
(data / "test.txt").write_text("TEST")
|
|
13
|
+
pinetext.upload_files(str(data))
|
|
14
|
+
assert "test.txt" in pinetext.pinecone.assistant.list_files()
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def test_chat(pinetext):
|
|
18
|
+
resp = pinetext.chat("This is a test", model="test-model")
|
|
19
|
+
assert resp == "Test"
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def test_run(pinetext, monkeypatch):
|
|
23
|
+
monkeypatch.setattr(builtins, "input", lambda prompt="": next(iter(["exit"])))
|
|
24
|
+
res = pinetext.run()
|
|
25
|
+
assert res is None
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import pytest
|
|
2
|
+
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
import pinetext.client as client_mod
|
|
6
|
+
from pinetext.client import PineText
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@pytest.fixture
|
|
10
|
+
def cli(monkeypatch):
|
|
11
|
+
def dummy_run(self):
|
|
12
|
+
return
|
|
13
|
+
|
|
14
|
+
monkeypatch.setattr(
|
|
15
|
+
"pinetext.client.PineText.run",
|
|
16
|
+
dummy_run,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@pytest.fixture
|
|
21
|
+
def pinetext(monkeypatch):
|
|
22
|
+
class DummyAssistant:
|
|
23
|
+
def __init__(self):
|
|
24
|
+
self.files = []
|
|
25
|
+
|
|
26
|
+
def create_assistant(self, assistant_name: str, instructions: str = None):
|
|
27
|
+
return self
|
|
28
|
+
|
|
29
|
+
def describe_assistant(self, assistant_name: str):
|
|
30
|
+
return self
|
|
31
|
+
|
|
32
|
+
def list_files(self):
|
|
33
|
+
return self.files
|
|
34
|
+
|
|
35
|
+
def upload_file(self, file_path: str, metadata=None, timeout=None):
|
|
36
|
+
self.files.append(Path(file_path).name)
|
|
37
|
+
|
|
38
|
+
def chat(self, messages, model=None):
|
|
39
|
+
class Message:
|
|
40
|
+
def __init__(self, content):
|
|
41
|
+
self.content = content
|
|
42
|
+
|
|
43
|
+
class Response:
|
|
44
|
+
def __init__(self, content):
|
|
45
|
+
self.message = Message(content)
|
|
46
|
+
|
|
47
|
+
return Response("Test")
|
|
48
|
+
|
|
49
|
+
assistant = DummyAssistant()
|
|
50
|
+
|
|
51
|
+
class DummyPinecone:
|
|
52
|
+
def __init__(self, api_key):
|
|
53
|
+
self.assistant = assistant
|
|
54
|
+
|
|
55
|
+
monkeypatch.setattr(client_mod, "Pinecone", DummyPinecone)
|
|
56
|
+
|
|
57
|
+
client = PineText()
|
|
58
|
+
client.assistant = assistant
|
|
59
|
+
client.pinecone = DummyPinecone(None)
|
|
60
|
+
return client
|
|
@@ -74,33 +74,55 @@ wheels = [
|
|
|
74
74
|
|
|
75
75
|
[[package]]
|
|
76
76
|
name = "coverage"
|
|
77
|
-
version = "7.
|
|
78
|
-
source = { registry = "https://pypi.org/simple" }
|
|
79
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
80
|
-
wheels = [
|
|
81
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
82
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
83
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
84
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
85
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
86
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
87
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
88
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
89
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
90
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
91
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
92
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
93
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
94
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
95
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
96
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
97
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
98
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
99
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
100
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
101
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
102
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
103
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
77
|
+
version = "7.10.1"
|
|
78
|
+
source = { registry = "https://pypi.org/simple" }
|
|
79
|
+
sdist = { url = "https://files.pythonhosted.org/packages/87/0e/66dbd4c6a7f0758a8d18044c048779ba21fb94856e1edcf764bd5403e710/coverage-7.10.1.tar.gz", hash = "sha256:ae2b4856f29ddfe827106794f3589949a57da6f0d38ab01e24ec35107979ba57", size = 819938, upload-time = "2025-07-27T14:13:39.045Z" }
|
|
80
|
+
wheels = [
|
|
81
|
+
{ url = "https://files.pythonhosted.org/packages/ef/72/135ff5fef09b1ffe78dbe6fcf1e16b2e564cd35faeacf3d63d60d887f12d/coverage-7.10.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ebb08d0867c5a25dffa4823377292a0ffd7aaafb218b5d4e2e106378b1061e39", size = 214960, upload-time = "2025-07-27T14:11:55.959Z" },
|
|
82
|
+
{ url = "https://files.pythonhosted.org/packages/b1/aa/73a5d1a6fc08ca709a8177825616aa95ee6bf34d522517c2595484a3e6c9/coverage-7.10.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f32a95a83c2e17422f67af922a89422cd24c6fa94041f083dd0bb4f6057d0bc7", size = 215220, upload-time = "2025-07-27T14:11:57.899Z" },
|
|
83
|
+
{ url = "https://files.pythonhosted.org/packages/8d/40/3124fdd45ed3772a42fc73ca41c091699b38a2c3bd4f9cb564162378e8b6/coverage-7.10.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:c4c746d11c8aba4b9f58ca8bfc6fbfd0da4efe7960ae5540d1a1b13655ee8892", size = 245772, upload-time = "2025-07-27T14:12:00.422Z" },
|
|
84
|
+
{ url = "https://files.pythonhosted.org/packages/42/62/a77b254822efa8c12ad59e8039f2bc3df56dc162ebda55e1943e35ba31a5/coverage-7.10.1-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:7f39edd52c23e5c7ed94e0e4bf088928029edf86ef10b95413e5ea670c5e92d7", size = 248116, upload-time = "2025-07-27T14:12:03.099Z" },
|
|
85
|
+
{ url = "https://files.pythonhosted.org/packages/1d/01/8101f062f472a3a6205b458d18ef0444a63ae5d36a8a5ed5dd0f6167f4db/coverage-7.10.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ab6e19b684981d0cd968906e293d5628e89faacb27977c92f3600b201926b994", size = 249554, upload-time = "2025-07-27T14:12:04.668Z" },
|
|
86
|
+
{ url = "https://files.pythonhosted.org/packages/8f/7b/e51bc61573e71ff7275a4f167aecbd16cb010aefdf54bcd8b0a133391263/coverage-7.10.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5121d8cf0eacb16133501455d216bb5f99899ae2f52d394fe45d59229e6611d0", size = 247766, upload-time = "2025-07-27T14:12:06.234Z" },
|
|
87
|
+
{ url = "https://files.pythonhosted.org/packages/4b/71/1c96d66a51d4204a9d6d12df53c4071d87e110941a2a1fe94693192262f5/coverage-7.10.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:df1c742ca6f46a6f6cbcaef9ac694dc2cb1260d30a6a2f5c68c5f5bcfee1cfd7", size = 245735, upload-time = "2025-07-27T14:12:08.305Z" },
|
|
88
|
+
{ url = "https://files.pythonhosted.org/packages/13/d5/efbc2ac4d35ae2f22ef6df2ca084c60e13bd9378be68655e3268c80349ab/coverage-7.10.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:40f9a38676f9c073bf4b9194707aa1eb97dca0e22cc3766d83879d72500132c7", size = 247118, upload-time = "2025-07-27T14:12:09.903Z" },
|
|
89
|
+
{ url = "https://files.pythonhosted.org/packages/d1/22/073848352bec28ca65f2b6816b892fcf9a31abbef07b868487ad15dd55f1/coverage-7.10.1-cp313-cp313-win32.whl", hash = "sha256:2348631f049e884839553b9974f0821d39241c6ffb01a418efce434f7eba0fe7", size = 217381, upload-time = "2025-07-27T14:12:11.535Z" },
|
|
90
|
+
{ url = "https://files.pythonhosted.org/packages/b7/df/df6a0ff33b042f000089bd11b6bb034bab073e2ab64a56e78ed882cba55d/coverage-7.10.1-cp313-cp313-win_amd64.whl", hash = "sha256:4072b31361b0d6d23f750c524f694e1a417c1220a30d3ef02741eed28520c48e", size = 218152, upload-time = "2025-07-27T14:12:13.182Z" },
|
|
91
|
+
{ url = "https://files.pythonhosted.org/packages/30/e3/5085ca849a40ed6b47cdb8f65471c2f754e19390b5a12fa8abd25cbfaa8f/coverage-7.10.1-cp313-cp313-win_arm64.whl", hash = "sha256:3e31dfb8271937cab9425f19259b1b1d1f556790e98eb266009e7a61d337b6d4", size = 216559, upload-time = "2025-07-27T14:12:14.807Z" },
|
|
92
|
+
{ url = "https://files.pythonhosted.org/packages/cc/93/58714efbfdeb547909feaabe1d67b2bdd59f0597060271b9c548d5efb529/coverage-7.10.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:1c4f679c6b573a5257af6012f167a45be4c749c9925fd44d5178fd641ad8bf72", size = 215677, upload-time = "2025-07-27T14:12:16.68Z" },
|
|
93
|
+
{ url = "https://files.pythonhosted.org/packages/c0/0c/18eaa5897e7e8cb3f8c45e563e23e8a85686b4585e29d53cacb6bc9cb340/coverage-7.10.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:871ebe8143da284bd77b84a9136200bd638be253618765d21a1fce71006d94af", size = 215899, upload-time = "2025-07-27T14:12:18.758Z" },
|
|
94
|
+
{ url = "https://files.pythonhosted.org/packages/84/c1/9d1affacc3c75b5a184c140377701bbf14fc94619367f07a269cd9e4fed6/coverage-7.10.1-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:998c4751dabf7d29b30594af416e4bf5091f11f92a8d88eb1512c7ba136d1ed7", size = 257140, upload-time = "2025-07-27T14:12:20.357Z" },
|
|
95
|
+
{ url = "https://files.pythonhosted.org/packages/3d/0f/339bc6b8fa968c346df346068cca1f24bdea2ddfa93bb3dc2e7749730962/coverage-7.10.1-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:780f750a25e7749d0af6b3631759c2c14f45de209f3faaa2398312d1c7a22759", size = 259005, upload-time = "2025-07-27T14:12:22.007Z" },
|
|
96
|
+
{ url = "https://files.pythonhosted.org/packages/c8/22/89390864b92ea7c909079939b71baba7e5b42a76bf327c1d615bd829ba57/coverage-7.10.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:590bdba9445df4763bdbebc928d8182f094c1f3947a8dc0fc82ef014dbdd8324", size = 261143, upload-time = "2025-07-27T14:12:23.746Z" },
|
|
97
|
+
{ url = "https://files.pythonhosted.org/packages/2c/56/3d04d89017c0c41c7a71bd69b29699d919b6bbf2649b8b2091240b97dd6a/coverage-7.10.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9b2df80cb6a2af86d300e70acb82e9b79dab2c1e6971e44b78dbfc1a1e736b53", size = 258735, upload-time = "2025-07-27T14:12:25.73Z" },
|
|
98
|
+
{ url = "https://files.pythonhosted.org/packages/cb/40/312252c8afa5ca781063a09d931f4b9409dc91526cd0b5a2b84143ffafa2/coverage-7.10.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:d6a558c2725bfb6337bf57c1cd366c13798bfd3bfc9e3dd1f4a6f6fc95a4605f", size = 256871, upload-time = "2025-07-27T14:12:27.767Z" },
|
|
99
|
+
{ url = "https://files.pythonhosted.org/packages/1f/2b/564947d5dede068215aaddb9e05638aeac079685101462218229ddea9113/coverage-7.10.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:e6150d167f32f2a54690e572e0a4c90296fb000a18e9b26ab81a6489e24e78dd", size = 257692, upload-time = "2025-07-27T14:12:29.347Z" },
|
|
100
|
+
{ url = "https://files.pythonhosted.org/packages/93/1b/c8a867ade85cb26d802aea2209b9c2c80613b9c122baa8c8ecea6799648f/coverage-7.10.1-cp313-cp313t-win32.whl", hash = "sha256:d946a0c067aa88be4a593aad1236493313bafaa27e2a2080bfe88db827972f3c", size = 218059, upload-time = "2025-07-27T14:12:31.076Z" },
|
|
101
|
+
{ url = "https://files.pythonhosted.org/packages/a1/fe/cd4ab40570ae83a516bf5e754ea4388aeedd48e660e40c50b7713ed4f930/coverage-7.10.1-cp313-cp313t-win_amd64.whl", hash = "sha256:e37c72eaccdd5ed1130c67a92ad38f5b2af66eeff7b0abe29534225db2ef7b18", size = 219150, upload-time = "2025-07-27T14:12:32.746Z" },
|
|
102
|
+
{ url = "https://files.pythonhosted.org/packages/8d/16/6e5ed5854be6d70d0c39e9cb9dd2449f2c8c34455534c32c1a508c7dbdb5/coverage-7.10.1-cp313-cp313t-win_arm64.whl", hash = "sha256:89ec0ffc215c590c732918c95cd02b55c7d0f569d76b90bb1a5e78aa340618e4", size = 217014, upload-time = "2025-07-27T14:12:34.406Z" },
|
|
103
|
+
{ url = "https://files.pythonhosted.org/packages/54/8e/6d0bfe9c3d7121cf936c5f8b03e8c3da1484fb801703127dba20fb8bd3c7/coverage-7.10.1-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:166d89c57e877e93d8827dac32cedae6b0277ca684c6511497311249f35a280c", size = 214951, upload-time = "2025-07-27T14:12:36.069Z" },
|
|
104
|
+
{ url = "https://files.pythonhosted.org/packages/f2/29/e3e51a8c653cf2174c60532aafeb5065cea0911403fa144c9abe39790308/coverage-7.10.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:bed4a2341b33cd1a7d9ffc47df4a78ee61d3416d43b4adc9e18b7d266650b83e", size = 215229, upload-time = "2025-07-27T14:12:37.759Z" },
|
|
105
|
+
{ url = "https://files.pythonhosted.org/packages/e0/59/3c972080b2fa18b6c4510201f6d4dc87159d450627d062cd9ad051134062/coverage-7.10.1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:ddca1e4f5f4c67980533df01430184c19b5359900e080248bbf4ed6789584d8b", size = 245738, upload-time = "2025-07-27T14:12:39.453Z" },
|
|
106
|
+
{ url = "https://files.pythonhosted.org/packages/2e/04/fc0d99d3f809452654e958e1788454f6e27b34e43f8f8598191c8ad13537/coverage-7.10.1-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:37b69226001d8b7de7126cad7366b0778d36777e4d788c66991455ba817c5b41", size = 248045, upload-time = "2025-07-27T14:12:41.387Z" },
|
|
107
|
+
{ url = "https://files.pythonhosted.org/packages/5e/2e/afcbf599e77e0dfbf4c97197747250d13d397d27e185b93987d9eaac053d/coverage-7.10.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b2f22102197bcb1722691296f9e589f02b616f874e54a209284dd7b9294b0b7f", size = 249666, upload-time = "2025-07-27T14:12:43.056Z" },
|
|
108
|
+
{ url = "https://files.pythonhosted.org/packages/6e/ae/bc47f7f8ecb7a06cbae2bf86a6fa20f479dd902bc80f57cff7730438059d/coverage-7.10.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:1e0c768b0f9ac5839dac5cf88992a4bb459e488ee8a1f8489af4cb33b1af00f1", size = 247692, upload-time = "2025-07-27T14:12:44.83Z" },
|
|
109
|
+
{ url = "https://files.pythonhosted.org/packages/b6/26/cbfa3092d31ccba8ba7647e4d25753263e818b4547eba446b113d7d1efdf/coverage-7.10.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:991196702d5e0b120a8fef2664e1b9c333a81d36d5f6bcf6b225c0cf8b0451a2", size = 245536, upload-time = "2025-07-27T14:12:46.527Z" },
|
|
110
|
+
{ url = "https://files.pythonhosted.org/packages/56/77/9c68e92500e6a1c83d024a70eadcc9a173f21aadd73c4675fe64c9c43fdf/coverage-7.10.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ae8e59e5f4fd85d6ad34c2bb9d74037b5b11be072b8b7e9986beb11f957573d4", size = 246954, upload-time = "2025-07-27T14:12:49.279Z" },
|
|
111
|
+
{ url = "https://files.pythonhosted.org/packages/7f/a5/ba96671c5a669672aacd9877a5987c8551501b602827b4e84256da2a30a7/coverage-7.10.1-cp314-cp314-win32.whl", hash = "sha256:042125c89cf74a074984002e165d61fe0e31c7bd40ebb4bbebf07939b5924613", size = 217616, upload-time = "2025-07-27T14:12:51.214Z" },
|
|
112
|
+
{ url = "https://files.pythonhosted.org/packages/e7/3c/e1e1eb95fc1585f15a410208c4795db24a948e04d9bde818fe4eb893bc85/coverage-7.10.1-cp314-cp314-win_amd64.whl", hash = "sha256:a22c3bfe09f7a530e2c94c87ff7af867259c91bef87ed2089cd69b783af7b84e", size = 218412, upload-time = "2025-07-27T14:12:53.429Z" },
|
|
113
|
+
{ url = "https://files.pythonhosted.org/packages/b0/85/7e1e5be2cb966cba95566ba702b13a572ca744fbb3779df9888213762d67/coverage-7.10.1-cp314-cp314-win_arm64.whl", hash = "sha256:ee6be07af68d9c4fca4027c70cea0c31a0f1bc9cb464ff3c84a1f916bf82e652", size = 216776, upload-time = "2025-07-27T14:12:55.482Z" },
|
|
114
|
+
{ url = "https://files.pythonhosted.org/packages/62/0f/5bb8f29923141cca8560fe2217679caf4e0db643872c1945ac7d8748c2a7/coverage-7.10.1-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:d24fb3c0c8ff0d517c5ca5de7cf3994a4cd559cde0315201511dbfa7ab528894", size = 215698, upload-time = "2025-07-27T14:12:57.225Z" },
|
|
115
|
+
{ url = "https://files.pythonhosted.org/packages/80/29/547038ffa4e8e4d9e82f7dfc6d152f75fcdc0af146913f0ba03875211f03/coverage-7.10.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1217a54cfd79be20512a67ca81c7da3f2163f51bbfd188aab91054df012154f5", size = 215902, upload-time = "2025-07-27T14:12:59.071Z" },
|
|
116
|
+
{ url = "https://files.pythonhosted.org/packages/e1/8a/7aaa8fbfaed900147987a424e112af2e7790e1ac9cd92601e5bd4e1ba60a/coverage-7.10.1-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:51f30da7a52c009667e02f125737229d7d8044ad84b79db454308033a7808ab2", size = 257230, upload-time = "2025-07-27T14:13:01.248Z" },
|
|
117
|
+
{ url = "https://files.pythonhosted.org/packages/e5/1d/c252b5ffac44294e23a0d79dd5acf51749b39795ccc898faeabf7bee903f/coverage-7.10.1-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:ed3718c757c82d920f1c94089066225ca2ad7f00bb904cb72b1c39ebdd906ccb", size = 259194, upload-time = "2025-07-27T14:13:03.247Z" },
|
|
118
|
+
{ url = "https://files.pythonhosted.org/packages/16/ad/6c8d9f83d08f3bac2e7507534d0c48d1a4f52c18e6f94919d364edbdfa8f/coverage-7.10.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:cc452481e124a819ced0c25412ea2e144269ef2f2534b862d9f6a9dae4bda17b", size = 261316, upload-time = "2025-07-27T14:13:04.957Z" },
|
|
119
|
+
{ url = "https://files.pythonhosted.org/packages/d6/4e/f9bbf3a36c061e2e0e0f78369c006d66416561a33d2bee63345aee8ee65e/coverage-7.10.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:9d6f494c307e5cb9b1e052ec1a471060f1dea092c8116e642e7a23e79d9388ea", size = 258794, upload-time = "2025-07-27T14:13:06.715Z" },
|
|
120
|
+
{ url = "https://files.pythonhosted.org/packages/87/82/e600bbe78eb2cb0541751d03cef9314bcd0897e8eea156219c39b685f869/coverage-7.10.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:fc0e46d86905ddd16b85991f1f4919028092b4e511689bbdaff0876bd8aab3dd", size = 256869, upload-time = "2025-07-27T14:13:08.933Z" },
|
|
121
|
+
{ url = "https://files.pythonhosted.org/packages/ce/5d/2fc9a9236c5268f68ac011d97cd3a5ad16cc420535369bedbda659fdd9b7/coverage-7.10.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:80b9ccd82e30038b61fc9a692a8dc4801504689651b281ed9109f10cc9fe8b4d", size = 257765, upload-time = "2025-07-27T14:13:10.778Z" },
|
|
122
|
+
{ url = "https://files.pythonhosted.org/packages/8a/05/b4e00b2bd48a2dc8e1c7d2aea7455f40af2e36484ab2ef06deb85883e9fe/coverage-7.10.1-cp314-cp314t-win32.whl", hash = "sha256:e58991a2b213417285ec866d3cd32db17a6a88061a985dbb7e8e8f13af429c47", size = 218420, upload-time = "2025-07-27T14:13:12.882Z" },
|
|
123
|
+
{ url = "https://files.pythonhosted.org/packages/77/fb/d21d05f33ea27ece327422240e69654b5932b0b29e7fbc40fbab3cf199bf/coverage-7.10.1-cp314-cp314t-win_amd64.whl", hash = "sha256:e88dd71e4ecbc49d9d57d064117462c43f40a21a1383507811cf834a4a620651", size = 219536, upload-time = "2025-07-27T14:13:14.718Z" },
|
|
124
|
+
{ url = "https://files.pythonhosted.org/packages/a6/68/7fea94b141281ed8be3d1d5c4319a97f2befc3e487ce33657fc64db2c45e/coverage-7.10.1-cp314-cp314t-win_arm64.whl", hash = "sha256:1aadfb06a30c62c2eb82322171fe1f7c288c80ca4156d46af0ca039052814bab", size = 217190, upload-time = "2025-07-27T14:13:16.85Z" },
|
|
125
|
+
{ url = "https://files.pythonhosted.org/packages/0f/64/922899cff2c0fd3496be83fa8b81230f5a8d82a2ad30f98370b133c2c83b/coverage-7.10.1-py3-none-any.whl", hash = "sha256:fa2a258aa6bf188eb9a8948f7102a83da7c430a0dce918dbd8b60ef8fcb772d7", size = 206597, upload-time = "2025-07-27T14:13:37.221Z" },
|
|
104
126
|
]
|
|
105
127
|
|
|
106
128
|
[[package]]
|
|
@@ -228,10 +250,11 @@ wheels = [
|
|
|
228
250
|
|
|
229
251
|
[[package]]
|
|
230
252
|
name = "pinetext"
|
|
231
|
-
version = "0.1.
|
|
253
|
+
version = "0.1.1"
|
|
232
254
|
source = { editable = "." }
|
|
233
255
|
dependencies = [
|
|
234
256
|
{ name = "pinecone" },
|
|
257
|
+
{ name = "pinecone-plugin-assistant" },
|
|
235
258
|
{ name = "pydantic-settings" },
|
|
236
259
|
{ name = "typer" },
|
|
237
260
|
]
|
|
@@ -247,6 +270,7 @@ dev = [
|
|
|
247
270
|
[package.metadata]
|
|
248
271
|
requires-dist = [
|
|
249
272
|
{ name = "pinecone", specifier = ">=7.3.0" },
|
|
273
|
+
{ name = "pinecone-plugin-assistant", specifier = ">=1.7.0" },
|
|
250
274
|
{ name = "pydantic-settings", specifier = ">=2.10.1" },
|
|
251
275
|
{ name = "typer", specifier = ">=0.16.0" },
|
|
252
276
|
]
|
|
@@ -444,40 +468,40 @@ wheels = [
|
|
|
444
468
|
|
|
445
469
|
[[package]]
|
|
446
470
|
name = "rich"
|
|
447
|
-
version = "14.
|
|
471
|
+
version = "14.1.0"
|
|
448
472
|
source = { registry = "https://pypi.org/simple" }
|
|
449
473
|
dependencies = [
|
|
450
474
|
{ name = "markdown-it-py" },
|
|
451
475
|
{ name = "pygments" },
|
|
452
476
|
]
|
|
453
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
477
|
+
sdist = { url = "https://files.pythonhosted.org/packages/fe/75/af448d8e52bf1d8fa6a9d089ca6c07ff4453d86c65c145d0a300bb073b9b/rich-14.1.0.tar.gz", hash = "sha256:e497a48b844b0320d45007cdebfeaeed8db2a4f4bcf49f15e455cfc4af11eaa8", size = 224441, upload-time = "2025-07-25T07:32:58.125Z" }
|
|
454
478
|
wheels = [
|
|
455
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
479
|
+
{ url = "https://files.pythonhosted.org/packages/e3/30/3c4d035596d3cf444529e0b2953ad0466f6049528a879d27534700580395/rich-14.1.0-py3-none-any.whl", hash = "sha256:536f5f1785986d6dbdea3c75205c473f970777b4a0d6c6dd1b696aa05a3fa04f", size = 243368, upload-time = "2025-07-25T07:32:56.73Z" },
|
|
456
480
|
]
|
|
457
481
|
|
|
458
482
|
[[package]]
|
|
459
483
|
name = "ruff"
|
|
460
|
-
version = "0.12.
|
|
461
|
-
source = { registry = "https://pypi.org/simple" }
|
|
462
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
463
|
-
wheels = [
|
|
464
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
465
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
466
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
467
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
468
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
469
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
470
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
471
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
472
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
473
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
474
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
475
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
476
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
477
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
478
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
479
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
480
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
484
|
+
version = "0.12.5"
|
|
485
|
+
source = { registry = "https://pypi.org/simple" }
|
|
486
|
+
sdist = { url = "https://files.pythonhosted.org/packages/30/cd/01015eb5034605fd98d829c5839ec2c6b4582b479707f7c1c2af861e8258/ruff-0.12.5.tar.gz", hash = "sha256:b209db6102b66f13625940b7f8c7d0f18e20039bb7f6101fbdac935c9612057e", size = 5170722, upload-time = "2025-07-24T13:26:37.456Z" }
|
|
487
|
+
wheels = [
|
|
488
|
+
{ url = "https://files.pythonhosted.org/packages/d4/de/ad2f68f0798ff15dd8c0bcc2889558970d9a685b3249565a937cd820ad34/ruff-0.12.5-py3-none-linux_armv6l.whl", hash = "sha256:1de2c887e9dec6cb31fcb9948299de5b2db38144e66403b9660c9548a67abd92", size = 11819133, upload-time = "2025-07-24T13:25:56.369Z" },
|
|
489
|
+
{ url = "https://files.pythonhosted.org/packages/f8/fc/c6b65cd0e7fbe60f17e7ad619dca796aa49fbca34bb9bea5f8faf1ec2643/ruff-0.12.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:d1ab65e7d8152f519e7dea4de892317c9da7a108da1c56b6a3c1d5e7cf4c5e9a", size = 12501114, upload-time = "2025-07-24T13:25:59.471Z" },
|
|
490
|
+
{ url = "https://files.pythonhosted.org/packages/c5/de/c6bec1dce5ead9f9e6a946ea15e8d698c35f19edc508289d70a577921b30/ruff-0.12.5-py3-none-macosx_11_0_arm64.whl", hash = "sha256:962775ed5b27c7aa3fdc0d8f4d4433deae7659ef99ea20f783d666e77338b8cf", size = 11716873, upload-time = "2025-07-24T13:26:01.496Z" },
|
|
491
|
+
{ url = "https://files.pythonhosted.org/packages/a1/16/cf372d2ebe91e4eb5b82a2275c3acfa879e0566a7ac94d331ea37b765ac8/ruff-0.12.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:73b4cae449597e7195a49eb1cdca89fd9fbb16140c7579899e87f4c85bf82f73", size = 11958829, upload-time = "2025-07-24T13:26:03.721Z" },
|
|
492
|
+
{ url = "https://files.pythonhosted.org/packages/25/bf/cd07e8f6a3a6ec746c62556b4c4b79eeb9b0328b362bb8431b7b8afd3856/ruff-0.12.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8b13489c3dc50de5e2d40110c0cce371e00186b880842e245186ca862bf9a1ac", size = 11626619, upload-time = "2025-07-24T13:26:06.118Z" },
|
|
493
|
+
{ url = "https://files.pythonhosted.org/packages/d8/c9/c2ccb3b8cbb5661ffda6925f81a13edbb786e623876141b04919d1128370/ruff-0.12.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f1504fea81461cf4841778b3ef0a078757602a3b3ea4b008feb1308cb3f23e08", size = 13221894, upload-time = "2025-07-24T13:26:08.292Z" },
|
|
494
|
+
{ url = "https://files.pythonhosted.org/packages/6b/58/68a5be2c8e5590ecdad922b2bcd5583af19ba648f7648f95c51c3c1eca81/ruff-0.12.5-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:c7da4129016ae26c32dfcbd5b671fe652b5ab7fc40095d80dcff78175e7eddd4", size = 14163909, upload-time = "2025-07-24T13:26:10.474Z" },
|
|
495
|
+
{ url = "https://files.pythonhosted.org/packages/bd/d1/ef6b19622009ba8386fdb792c0743f709cf917b0b2f1400589cbe4739a33/ruff-0.12.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ca972c80f7ebcfd8af75a0f18b17c42d9f1ef203d163669150453f50ca98ab7b", size = 13583652, upload-time = "2025-07-24T13:26:13.381Z" },
|
|
496
|
+
{ url = "https://files.pythonhosted.org/packages/62/e3/1c98c566fe6809a0c83751d825a03727f242cdbe0d142c9e292725585521/ruff-0.12.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8dbbf9f25dfb501f4237ae7501d6364b76a01341c6f1b2cd6764fe449124bb2a", size = 12700451, upload-time = "2025-07-24T13:26:15.488Z" },
|
|
497
|
+
{ url = "https://files.pythonhosted.org/packages/24/ff/96058f6506aac0fbc0d0fc0d60b0d0bd746240a0594657a2d94ad28033ba/ruff-0.12.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2c47dea6ae39421851685141ba9734767f960113d51e83fd7bb9958d5be8763a", size = 12937465, upload-time = "2025-07-24T13:26:17.808Z" },
|
|
498
|
+
{ url = "https://files.pythonhosted.org/packages/eb/d3/68bc5e7ab96c94b3589d1789f2dd6dd4b27b263310019529ac9be1e8f31b/ruff-0.12.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:c5076aa0e61e30f848846f0265c873c249d4b558105b221be1828f9f79903dc5", size = 11771136, upload-time = "2025-07-24T13:26:20.422Z" },
|
|
499
|
+
{ url = "https://files.pythonhosted.org/packages/52/75/7356af30a14584981cabfefcf6106dea98cec9a7af4acb5daaf4b114845f/ruff-0.12.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:a5a4c7830dadd3d8c39b1cc85386e2c1e62344f20766be6f173c22fb5f72f293", size = 11601644, upload-time = "2025-07-24T13:26:22.928Z" },
|
|
500
|
+
{ url = "https://files.pythonhosted.org/packages/c2/67/91c71d27205871737cae11025ee2b098f512104e26ffd8656fd93d0ada0a/ruff-0.12.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:46699f73c2b5b137b9dc0fc1a190b43e35b008b398c6066ea1350cce6326adcb", size = 12478068, upload-time = "2025-07-24T13:26:26.134Z" },
|
|
501
|
+
{ url = "https://files.pythonhosted.org/packages/34/04/b6b00383cf2f48e8e78e14eb258942fdf2a9bf0287fbf5cdd398b749193a/ruff-0.12.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:5a655a0a0d396f0f072faafc18ebd59adde8ca85fb848dc1b0d9f024b9c4d3bb", size = 12991537, upload-time = "2025-07-24T13:26:28.533Z" },
|
|
502
|
+
{ url = "https://files.pythonhosted.org/packages/3e/b9/053d6445dc7544fb6594785056d8ece61daae7214859ada4a152ad56b6e0/ruff-0.12.5-py3-none-win32.whl", hash = "sha256:dfeb2627c459b0b78ca2bbdc38dd11cc9a0a88bf91db982058b26ce41714ffa9", size = 11751575, upload-time = "2025-07-24T13:26:30.835Z" },
|
|
503
|
+
{ url = "https://files.pythonhosted.org/packages/bc/0f/ab16e8259493137598b9149734fec2e06fdeda9837e6f634f5c4e35916da/ruff-0.12.5-py3-none-win_amd64.whl", hash = "sha256:ae0d90cf5f49466c954991b9d8b953bd093c32c27608e409ae3564c63c5306a5", size = 12882273, upload-time = "2025-07-24T13:26:32.929Z" },
|
|
504
|
+
{ url = "https://files.pythonhosted.org/packages/00/db/c376b0661c24cf770cb8815268190668ec1330eba8374a126ceef8c72d55/ruff-0.12.5-py3-none-win_arm64.whl", hash = "sha256:48cdbfc633de2c5c37d9f090ba3b352d1576b0015bfc3bc98eaf230275b7e805", size = 11951564, upload-time = "2025-07-24T13:26:34.994Z" },
|
|
481
505
|
]
|
|
482
506
|
|
|
483
507
|
[[package]]
|
pinetext-0.1.0/.env.example
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pinecone_key=your-api-key
|
pinetext-0.1.0/PKG-INFO
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: pinetext
|
|
3
|
-
Version: 0.1.0
|
|
4
|
-
Summary: PineText
|
|
5
|
-
License-File: LICENSE
|
|
6
|
-
Requires-Python: >=3.13
|
|
7
|
-
Requires-Dist: pinecone>=7.3.0
|
|
8
|
-
Requires-Dist: pydantic-settings>=2.10.1
|
|
9
|
-
Requires-Dist: typer>=0.16.0
|
|
10
|
-
Description-Content-Type: text/markdown
|
|
11
|
-
|
|
12
|
-
## PineText
|
|
13
|
-
|
|
14
|
-
[](https://github.com/ezhuk/pinetext/actions/workflows/test.yml)
|
|
15
|
-
[](https://codecov.io/github/ezhuk/pinetext)
|
pinetext-0.1.0/README.md
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
## PineText
|
|
2
|
-
|
|
3
|
-
[](https://github.com/ezhuk/pinetext/actions/workflows/test.yml)
|
|
4
|
-
[](https://codecov.io/github/ezhuk/pinetext)
|
pinetext-0.1.0/tests/conftest.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|