JSONexusSync Python Client Documentation
Introduction
The JSONexusSync Python client library provides an easy-to-use interface for interacting with JSONexusSync remote database system using WebSockets.
Installation
You can install the JSONexusSync Python client library using pip:
pip install jsonexussync-client
Usage
Here's an example of how to use the JSONexusSync Python client library:
import asyncio
import json
from jsonexussync_client import JSONexusSyncClient
async def main():
config = config = {
"api_key":"YourApiKey",
"server_uri": "ws://localhost:8765"
}
client = JSONexusSyncClient(config)
await client.insert_data('users', {'name': 'Charlie', 'age': 35, 'email': 'charlie@example.com'})
result = await client.find_data('users', {'age': {'_op': '$eq', '_value': 35}})
print(result)
await client.delete_data('users', {'name': {'_op': '$eq', '_value': "Melissa Villarreal"}})
result = await client.update_data('users', {"age": {'_op': '$eq', '_value': 23}}, {"job": "Ethical Hacker"})
result = await client.create_db('txns')
result = await client.generate_api_key('adminr', 'db')
result = await client.create_db('companys')
print(result)
if __name__ == "__main__":
asyncio.run(main())
Conclusion
The JSONexusSync Python client library simplifies interaction with JSONexusSync remote database system, allowing developers to easily integrate real-time data synchronization into their Python applications.
For more information and detailed documentation, please visit the JSONexusSync Documentation.