Skip to content

Commit

Permalink
rename to pypi-scout
Browse files Browse the repository at this point in the history
  • Loading branch information
florian committed Jun 15, 2024
1 parent 7e6f683 commit e2cdf6e
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ COPY poetry.lock pyproject.toml /code/
RUN poetry install --no-interaction --no-ansi --no-root --no-dev

# Copy Python code to the Docker image
COPY pypi_llm /code/pypi_llm/
COPY pypi_scout /code/pypi_scout/

ENV PYTHONPATH=/code

CMD [ "python", "pypi_llm/foo.py"]
CMD [ "python", "pypi_scout/foo.py"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ docs: ## Build and serve the documentation

.PHONY: serve
serve: ## Serve API with uvicorn
@poetry run uvicorn pypi_llm.api.main:app --reload
@poetry run uvicorn pypi_scout.api.main:app --reload

.PHONY: help
help:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# pypi-llm
# pypi-scout

https://drive.google.com/file/d/1huR7-VD3AieBRCcQyRX9MWbPLMb_czjq/view?usp=sharing

# setup

```
docker build -t pypi-llm .
docker build -t pypi-scout .
```

```
docker run --rm \
--env-file .env \
-v $(pwd)/data:/code/data \
pypi-llm \
python /code/pypi_llm/scripts/1_download_dataset.py
pypi-scout \
python /code/pypi_scout/scripts/1_download_dataset.py
```

## total
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function Home() {
return (
<main className="flex flex-col items-center justify-start min-h-screen p-4 space-y-4 bg-gray-100">
<header className="w-full text-center mb-4">
<h1 className="text-4xl font-bold p-2 mt-4">✨PyPi Package Finder</h1>
<h1 className="text-4xl font-bold p-2 mt-4">✨PyPi Scout</h1>
<p className="text-lg text-gray-600">
Enter your query to search for Python packages
</p>
Expand Down
8 changes: 4 additions & 4 deletions notebooks/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"source": [
"import polars as pl\n",
"from dotenv import load_dotenv\n",
"from pypi_llm.config import Config\n",
"from pypi_llm.data.description_cleaner import DescriptionCleaner, CLEANING_FAILED\n",
"from pypi_llm.data.reader import DataReader\n",
"from pypi_scout.config import Config\n",
"from pypi_scout.data.description_cleaner import DescriptionCleaner, CLEANING_FAILED\n",
"from pypi_scout.data.reader import DataReader\n",
"from sentence_transformers import SentenceTransformer\n",
"from pypi_llm.vector_database import VectorDatabaseInterface\n",
"from pypi_scout.vector_database import VectorDatabaseInterface\n",
"\n",
"load_dotenv()\n",
"config = Config()\n",
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions pypi_llm/api/main.py → pypi_scout/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
from pydantic import BaseModel
from sentence_transformers import SentenceTransformer

from pypi_llm.config import Config
from pypi_llm.utils.logging import setup_logging
from pypi_llm.utils.score_calculator import calculate_score
from pypi_llm.vector_database import VectorDatabaseInterface
from pypi_scout.config import Config
from pypi_scout.utils.logging import setup_logging
from pypi_scout.utils.score_calculator import calculate_score
from pypi_scout.vector_database import VectorDatabaseInterface

setup_logging()

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from dotenv import load_dotenv
from pinecone import Pinecone, ServerlessSpec

from pypi_llm.config import Config
from pypi_llm.utils.logging import setup_logging
from pypi_scout.config import Config
from pypi_scout.utils.logging import setup_logging

setup_logging()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import gdown
from dotenv import load_dotenv

from pypi_llm.config import Config
from pypi_llm.utils.logging import setup_logging
from pypi_scout.config import Config
from pypi_scout.utils.logging import setup_logging

setup_logging()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import polars as pl
from dotenv import load_dotenv

from pypi_llm.config import Config
from pypi_llm.data.description_cleaner import CLEANING_FAILED, DescriptionCleaner
from pypi_llm.data.reader import DataReader
from pypi_llm.utils.logging import setup_logging
from pypi_scout.config import Config
from pypi_scout.data.description_cleaner import CLEANING_FAILED, DescriptionCleaner
from pypi_scout.data.reader import DataReader
from pypi_scout.utils.logging import setup_logging

setup_logging()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from dotenv import load_dotenv
from sentence_transformers import SentenceTransformer

from pypi_llm.config import Config
from pypi_llm.utils.logging import setup_logging
from pypi_llm.vector_database import VectorDatabaseInterface
from pypi_scout.config import Config
from pypi_scout.utils.logging import setup_logging
from pypi_scout.vector_database import VectorDatabaseInterface

setup_logging()

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import annotations

from pypi_llm.vector_database.interface import VectorDatabaseInterface
from pypi_scout.vector_database.interface import VectorDatabaseInterface

__all__ = ("VectorDatabaseInterface",)
File renamed without changes.
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tool.poetry]
name = "pypi_llm"
name = "pypi_scout"
version = "0.0.1"
description = "This is a template repository for Python projects that use Poetry for their dependency management."
authors = ["Florian Maas <ffpgmaas@gmail.com>"]
repository = "https://github.com/fpgmaas/pypi-llm"
documentation = "https://fpgmaas.github.io/pypi-llm/"
repository = "https://github.com/fpgmaas/pypi-scout"
documentation = "https://fpgmaas.github.io/pypi-scout/"
readme = "README.md"
packages = [
{include = "pypi_llm"}
{include = "pypi_scout"}
]

[tool.poetry.dependencies]
Expand Down Expand Up @@ -44,7 +44,7 @@ requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.mypy]
files = ["pypi_llm"]
files = ["pypi_scout"]
disallow_untyped_defs = "True"
disallow_any_unimported = "True"
no_implicit_optional = "True"
Expand Down Expand Up @@ -107,7 +107,7 @@ skip_empty = true

[tool.coverage.run]
branch = true
source = ["pypi_llm"]
source = ["pypi_scout"]


[tool.ruff.per-file-ignores]
Expand Down

0 comments on commit e2cdf6e

Please sign in to comment.