Skip to content
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

Documentation: Python docs uses class which is not present in __init__ in latest release of surreal.py #1096

Open
2 tasks done
earhater opened this issue Jan 3, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@earhater
Copy link

earhater commented Jan 3, 2025

Description

I was reading Getting started for python SDK for surrealDB. Both surreal cloud and docs provided snippets which used
something like

from surrealdb import Surreal

db = Surreal("http://localhost:8000")
await db.connect()
await db.signin({"user": "root", "pass": "root"})
await db.use("test", "test")

but it seems like python sdk changed and uses SurrealDb and AsyncSurrealDb classes for connection as shown in examples inside repository of sdk in commit surrealdb/surrealdb.py@3d7d6a7

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@earhater earhater added the documentation Improvements or additions to documentation label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant