From 7181e116c9a317c01e32f9c445f67dfa9deeff08 Mon Sep 17 00:00:00 2001 From: Ali Waleed <134522290+alizenhom@users.noreply.github.com> Date: Thu, 4 Apr 2024 00:05:58 +0200 Subject: [PATCH] adjust readme --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a5dfaa49..e0019af4 100644 --- a/README.md +++ b/README.md @@ -46,15 +46,24 @@ LangTrace.init() // LANGTRACE_API_KEY as an ENVIRONMENT variable ### If your application is built using **python** -``` +```python pip install langtrace-python-sdk ``` +```python +from langtrace_python_sdk import langtrace +langtrace.init(api_key=) ``` + +OR + +```python from langtrace_python_sdk import langtrace -langtrace.init(api_key=process.env.LANGTRACE_API_KEY) +langtrace.init() # LANGTRACE_API_KEY as an ENVIRONMENT variable ``` + + ### Langtrace self hosted To run the Langtrace locally, you have to run three services: