-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyatlan.client.atlan takes ~7 seconds to import #310
Comments
Hey @zholbrook-plaid, thank you for opening an issue! Could you also share your installed I've just double-checked with the snippet you provided, and here are the results: (venv) ➜ ✗ pip show pyatlan
Name: pyatlan
Version: 2.1.7 (latest)
Summary: Atlan Python Client
atlan client import time (seconds): 3.320816993713379
atlan client instantiation time (seconds): 0.002034902572631836
atlan client get table by guid time (seconds): 0.479140043258667 I'm running this on a MacBook Pro M1 (16 GB RAM) ☝️ |
Hi @Aryamanz29 , I'm on pyatlan 2.1.6:
|
FYI: I've upgraded to pyatlan
|
So I am using 2.1.3 version an I am experiencing the same import delay. |
Running
import pyatlan.client.atlan
takes around 7 seconds to complete. This takes far longer than I'd expect import statements to normally take (usually I'd expect it to take a small fraction of a second, and most libraries we use, such as Airflow, pandas, standard libaries, and more are all very fast to import).Importing the atlan client actually takes much longer than instantiating it or making an Atlan API request which is very surprising.
Here's a piece of code that replicates this:
It outputs this on my machine:
I'm on a macbook pro intel cpu.
I've seen a few issues around the web that are related and give some indication that its due to how pydantic is being used:
#187
pydantic/pydantic#6768
pydantic/pydantic#7263
Is this something that can be optimized/fixed?
The text was updated successfully, but these errors were encountered: