jsonexussync-client


Namejsonexussync-client JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/rakibma7254/jsonexussync-client
Summaryclient library of client JSONexusSync
upload_time2024-05-16 03:45:33
maintainerNone
docs_urlNone
authorRakib Hossain
requires_pythonNone
licenseMIT
keywords remote-database
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:

```python
    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)

        # Insert a new item into the 'users' collection
        await client.insert_data('users', {'name': 'Charlie', 'age': 35, 'email': 'charlie@example.com'})

        # Find users with a specific query
        result = await client.find_data('users', {'age': {'_op': '$eq', '_value': 35}})
        print(result)

        # Delete users with a specific query
        await client.delete_data('users', {'name': {'_op': '$eq', '_value': "Melissa Villarreal"}})

        # Update users with a specific query
        result = await client.update_data('users', {"age": {'_op': '$eq', '_value': 23}}, {"job": "Ethical Hacker"})

        # Creating a new database
        result = await client.create_db('txns')

        # Generate an API key
        result = await client.generate_api_key('adminr', 'db')

        # Creating a new database
        result = await client.create_db('companys')

        #result = await client.get_dbs()

        #result = await client.create_collection("students")
        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](https://jsonexus.gitbook.io/jsonexussync/).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rakibma7254/jsonexussync-client",
    "name": "jsonexussync-client",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "remote-database",
    "author": "Rakib Hossain",
    "author_email": "rakib4ggp@gmail.com",
    "download_url": null,
    "platform": null,
    "description": "# JSONexusSync Python Client Documentation\r\n\r\n## Introduction\r\n\r\nThe JSONexusSync Python client library provides an easy-to-use interface for interacting with JSONexusSync remote database system using WebSockets.\r\n\r\n## Installation\r\n\r\nYou can install the JSONexusSync Python client library using pip:\r\n\r\n    pip install jsonexussync-client\r\n\r\n## Usage\r\n\r\nHere's an example of how to use the JSONexusSync Python client library:\r\n\r\n```python\r\n    import asyncio\r\n    import json\r\n    from jsonexussync_client import JSONexusSyncClient\r\n\r\n    async def main():\r\n        config = config = {\r\n            \"api_key\":\"YourApiKey\",\r\n            \"server_uri\": \"ws://localhost:8765\"\r\n            }\r\n        client = JSONexusSyncClient(config)\r\n\r\n        # Insert a new item into the 'users' collection\r\n        await client.insert_data('users', {'name': 'Charlie', 'age': 35, 'email': 'charlie@example.com'})\r\n\r\n        # Find users with a specific query\r\n        result = await client.find_data('users', {'age': {'_op': '$eq', '_value': 35}})\r\n        print(result)\r\n\r\n        # Delete users with a specific query\r\n        await client.delete_data('users', {'name': {'_op': '$eq', '_value': \"Melissa Villarreal\"}})\r\n\r\n        # Update users with a specific query\r\n        result = await client.update_data('users', {\"age\": {'_op': '$eq', '_value': 23}}, {\"job\": \"Ethical Hacker\"})\r\n\r\n        # Creating a new database\r\n        result = await client.create_db('txns')\r\n\r\n        # Generate an API key\r\n        result = await client.generate_api_key('adminr', 'db')\r\n\r\n        # Creating a new database\r\n        result = await client.create_db('companys')\r\n\r\n        #result = await client.get_dbs()\r\n\r\n        #result = await client.create_collection(\"students\")\r\n        print(result)\r\n\r\n    if __name__ == \"__main__\":\r\n        asyncio.run(main())\r\n```\r\n## Conclusion\r\n\r\nThe JSONexusSync Python client library simplifies interaction with JSONexusSync remote database system, allowing developers to easily integrate real-time data synchronization into their Python applications.\r\n\r\nFor more information and detailed documentation, please visit the [JSONexusSync Documentation](https://jsonexus.gitbook.io/jsonexussync/).\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "client library of client JSONexusSync",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/rakibma7254/jsonexussync-client"
    },
    "split_keywords": [
        "remote-database"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b4499b6f32a53b3ab97b8d19d1e4793ef5987e972102e34ef7b460ea55dd8ab7",
                "md5": "1214ed0d5ff7c6d91afae23284be8ee5",
                "sha256": "0ae77880339862ac26586433941cab9274d767caa7dd23f81db900e6f2da5a63"
            },
            "downloads": -1,
            "filename": "jsonexussync_client-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1214ed0d5ff7c6d91afae23284be8ee5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3398,
            "upload_time": "2024-05-16T03:45:33",
            "upload_time_iso_8601": "2024-05-16T03:45:33.506326Z",
            "url": "https://files.pythonhosted.org/packages/b4/49/9b6f32a53b3ab97b8d19d1e4793ef5987e972102e34ef7b460ea55dd8ab7/jsonexussync_client-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-16 03:45:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rakibma7254",
    "github_project": "jsonexussync-client",
    "github_not_found": true,
    "lcname": "jsonexussync-client"
}
        
Elapsed time: 0.26012s