Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12', '3.13']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion parallel_web_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
run_tasks,
)

__version__ = "0.0.13"
__version__ = "0.0.14"

__all__ = [
# Auth
Expand Down
4 changes: 2 additions & 2 deletions parallel_web_tools/core/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import time
import uuid
from collections.abc import Callable
from datetime import UTC, datetime
from datetime import datetime, timezone
from typing import Any

from parallel_web_tools.core.auth import create_client
Expand Down Expand Up @@ -409,7 +409,7 @@ def run_tasks(
**input_val.model_dump(),
**output_val.model_dump(),
"batch_id": batch_id,
"insertion_timestamp": datetime.now(UTC).isoformat(),
"insertion_timestamp": datetime.now(timezone.utc).isoformat(),
}
)
except Exception as e:
Expand Down
6 changes: 4 additions & 2 deletions parallel_web_tools/core/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
from __future__ import annotations

from dataclasses import dataclass, field
from typing import Any
from typing import Any, Generic, TypeVar

T = TypeVar("T")


@dataclass
class EnrichmentResult[T]:
class EnrichmentResult(Generic[T]):
"""Result of an enrichment operation.

Generic over the result type (e.g., DuckDB relation, Polars DataFrame).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Cloud Function dependencies for BigQuery Remote Function
functions-framework>=3.0.0
flask>=3.0.0
parallel-web-tools>=0.0.13
parallel-web-tools>=0.0.14
google-cloud-secret-manager>=2.20.0
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ build-backend = "hatchling.build"

[project]
name = "parallel-web-tools"
version = "0.0.13"
version = "0.0.14"
description = "Parallel Tools: CLI and data enrichment utilities for the Parallel API"
readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.10"
license = "MIT"
authors = [
{ name = "Parallel", email = "support@parallel.ai" }
Expand All @@ -19,8 +19,11 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Database",
]
Expand Down Expand Up @@ -126,7 +129,7 @@ project-excludes = [

[tool.ruff]
line-length = 120
target-version = "py312"
target-version = "py310"

[tool.ruff.lint]
select = [
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def test_version(self, runner):
"""Should show version."""
result = runner.invoke(main, ["--version"])
assert result.exit_code == 0
assert "0.0.13" in result.output
assert "0.0.14" in result.output


class TestAuthCommand:
Expand Down
541 changes: 524 additions & 17 deletions uv.lock

Large diffs are not rendered by default.