Skip to content
Back

Preloading libraries and files for Python Function

  • 0
  • Functions
Mike
11 Apr, 2025, 21:57

I am currently importing some libraries for my Python function each time the Function is invoked by the user. Is there a better way to to do this so those libraries are always preloaded and each user doesn't have to load them?

TL;DR
Developers want to preload libraries and files for a Python function to avoid loading them each time the function is invoked by a user. To solve this, you can preload the libraries and files in the initialization section of your code so they are always available.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more