Skip to content

Commit

Permalink
fix project name creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jalexanderII committed Jan 25, 2025
1 parent a93f450 commit 262cbee
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 19 deletions.
2 changes: 2 additions & 0 deletions parea/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ class Parea:
def __attrs_post_init__(self):
self._client.set_api_key(self.api_key)
parea_logger.set_client(self._client)
if not self._project:
self._get_project_uuid()

if not self.api_key:
logger.warning("No API key found. Parea client will not be able to send data to the Parea API.")
Expand Down
105 changes: 87 additions & 18 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "parea-ai"
packages = [{ include = "parea" }]
version = "0.2.216"
version = "0.2.217"
description = "Parea python sdk"
readme = "README.md"
authors = ["joel-parea-ai <[email protected]>"]
Expand Down Expand Up @@ -49,6 +49,7 @@ tenacity = "*"
orjson = "^3.10.14"

[tool.poetry.group.dev.dependencies]
instructor = "^1.7.2"
bandit = "^1.7.1"
black = { version = "^24.1.0", allow-prereleases = true }
darglint = "^1.8.1"
Expand Down

0 comments on commit 262cbee

Please sign in to comment.