Back

How do I use ID.unique() in python?

  • 0
  • Self Hosted
  • General
Rando
3 Apr, 2024, 16:52

I've tried: import appwrite from appwrite import ID

But I keep getting an error message that "ID" does not exist. I can't find a python example that shows how to import it.

TL;DR
To use `ID.unique()` in Python, developers should import it as follows: ```py from appwrite.id import ID ``` Importing `appwrite` or `ID` directly will result in an error.
Binyamin
3 Apr, 2024, 16:58

Try like this

TypeScript
from appwrite.id import ID
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