![]() |
пре 3 месеци | |
---|---|---|
.. | ||
base | пре 3 месеци | |
v2 | пре 3 месеци | |
v3 | пре 3 месеци | |
README.md | пре 3 месеци | |
__init__.py | пре 3 месеци | |
async_client.py | пре 3 месеци | |
models.py | пре 3 месеци | |
sync_client.py | пре 3 месеци | |
utils.py | пре 3 месеци |
For the complete look at the R2R Python SDK, visit our documentation.
Before starting, make sure you have completed the R2R installation.
Install the R2R Python SDK:
pip install r2r
from r2r import R2RClient
client = R2RClient("http://localhost:7272")
health_response = client.health()
# {"status":"ok"}
Login (Optional):
client.register("me@email.com", "my_password")
# client.verify_email("me@email.com", "my_verification_code")
client.login("me@email.com", "my_password")
When using authentication the commands below automatically restrict the scope to a user's available documents.