olca 0.2.19__tar.gz → 0.2.20__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {olca-0.2.19 → olca-0.2.20}/PKG-INFO +1 -1
- {olca-0.2.19 → olca-0.2.20}/olca/fusewill_utils.py +11 -5
- {olca-0.2.19 → olca-0.2.20}/olca.egg-info/PKG-INFO +1 -1
- {olca-0.2.19 → olca-0.2.20}/pyproject.toml +1 -1
- {olca-0.2.19 → olca-0.2.20}/setup.py +1 -1
- {olca-0.2.19 → olca-0.2.20}/LICENSE +0 -0
- {olca-0.2.19 → olca-0.2.20}/README.md +0 -0
- {olca-0.2.19 → olca-0.2.20}/olca/__init__.py +0 -0
- {olca-0.2.19 → olca-0.2.20}/olca/fusewill_cli.py +0 -0
- {olca-0.2.19 → olca-0.2.20}/olca/olcacli.py +0 -0
- {olca-0.2.19 → olca-0.2.20}/olca.egg-info/SOURCES.txt +0 -0
- {olca-0.2.19 → olca-0.2.20}/olca.egg-info/dependency_links.txt +0 -0
- {olca-0.2.19 → olca-0.2.20}/olca.egg-info/entry_points.txt +0 -0
- {olca-0.2.19 → olca-0.2.20}/olca.egg-info/requires.txt +0 -0
- {olca-0.2.19 → olca-0.2.20}/olca.egg-info/top_level.txt +0 -0
- {olca-0.2.19 → olca-0.2.20}/setup.cfg +0 -0
@@ -5,13 +5,19 @@ sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
|
|
5
5
|
import json
|
6
6
|
|
7
7
|
import dotenv
|
8
|
-
dotenv.load_dotenv()
|
9
8
|
|
10
|
-
if
|
11
|
-
|
12
|
-
|
9
|
+
# Check if the variables are already set in the environment
|
10
|
+
if not os.environ.get("LANGFUSE_PUBLIC_KEY") or not os.environ.get("LANGFUSE_SECRET_KEY"):
|
11
|
+
# Load from .env in current directory
|
12
|
+
dotenv.load_dotenv()
|
13
13
|
|
14
|
-
|
14
|
+
# Check again
|
15
|
+
if not os.environ.get("LANGFUSE_PUBLIC_KEY") or not os.environ.get("LANGFUSE_SECRET_KEY"):
|
16
|
+
# Load from .env in home directory
|
17
|
+
dotenv.load_dotenv(dotenv_path=os.path.expanduser("~/.env"))
|
18
|
+
|
19
|
+
# Final check
|
20
|
+
if not os.environ.get("LANGFUSE_PUBLIC_KEY") or not os.environ.get("LANGFUSE_SECRET_KEY"):
|
15
21
|
print("Error: LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY not found.")
|
16
22
|
sys.exit(1)
|
17
23
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='olca',
|
5
|
-
version = "0.2.
|
5
|
+
version = "0.2.20",
|
6
6
|
author='Jean GUillaume ISabelle',
|
7
7
|
author_email='jgi@jgwill.com',
|
8
8
|
description='A Python package for experimenting with Langchain agent and interactivity in Terminal modalities.',
|
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
|
File without changes
|