{"id":15564146,"url":"https://github.com/and3rson/radical","last_synced_at":"2025-05-12T18:08:15.138Z","repository":{"id":57459695,"uuid":"142999844","full_name":"and3rson/radical","owner":"and3rson","description":"Multi-transport RPC with asyncio \u0026 Django support.","archived":false,"fork":false,"pushed_at":"2018-08-01T18:56:24.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T08:03:47.813Z","etag":null,"topics":["asyncio","django","inter-service-communication","isc","python","python3","redis","rpc","sanic"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/and3rson.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-31T10:33:46.000Z","updated_at":"2019-04-18T23:31:01.000Z","dependencies_parsed_at":"2022-09-03T04:21:44.586Z","dependency_job_id":null,"html_url":"https://github.com/and3rson/radical","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/and3rson%2Fradical","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/and3rson%2Fradical/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/and3rson%2Fradical/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/and3rson%2Fradical/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/and3rson","download_url":"https://codeload.github.com/and3rson/radical/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232622432,"owners_count":18551771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","django","inter-service-communication","isc","python","python3","redis","rpc","sanic"],"created_at":"2024-10-02T16:38:41.288Z","updated_at":"2025-01-05T17:38:07.440Z","avatar_url":"https://github.com/and3rson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://raw.githubusercontent.com/and3rson/radical/master/images/logo.png\n\n.. contents:: Contents\n\nDecription\n----------\n\nAbout\n~~~~~\n\nRadical is a RPC library that allows you to have cross-service communication out of the box.\n\nIt can serve as a replacement for Celery.\n\nRadical has out-of-the-box integration with Django and also supports asyncio, but can be used without it.\n\nRadical is easily extensible with custom transports and serializers.\n\nAvailable transports:\n\n* Redis\n* Postgres\n\nDefault and recommended transport is Redis.\n\nAvailable serializers:\n\n* JSON\n* Pickle\n\nDefault and recommended serializer is Pickle.\n\nGlossary\n~~~~~~~~\n\n============    ==================================================\nTerm            Meaning\n============    ==================================================\nService         A fully autonomous application written with Django,\n                Sanic or vanilla Python.\nTransport       Module that provides interface to actual network\n                communication: for example, a Redis transport.\nSerializer      Module that provides interface to data\n                serialization and deserialization.\n============    ==================================================\n\nQuick start\n-----------\n\nInstalling\n~~~~~~~~~~\n\n.. code-block:: sh\n\n    pip install radical-rpc\n\nUsing with Django\n~~~~~~~~~~~~~~~~~\n\n1. Add Radical to INSTALLED_APPS:\n\n    .. code-block:: python\n\n        INSTALLED_APPS = [\n            # ...\n            'radical',\n            # ...\n        ]\n\n2. Configure Radical:\n\n    .. code-block:: python\n\n        RADICAL_CONFIG = {\n            'TRANSPORT_URL': 'redis://redis:6379/0?request_timeout=10',\n            'QUEUE_NAME': 'myapp',\n            'MODULES': [\n                'radical.demo'\n            ]\n        }\n\n3. Call it anywhere:\n\n    .. code-block:: python\n\n        from radical.contrib.django import call_wait, call\n        from django.http import JsonResponse\n\n        def some_view(request):\n            # Call remote method and wait for it to return result.\n            result = call_wait('myapp', 'radical.demo.add', 1300, 37)\n            return JsonResponse(dict(result=result))  # Returns {'result': 1337}\n\n        def some_view(request):\n            # Call remote method and do not wait for it to finish.\n            call('myapp', 'radical.demo.add', 1300, 37)\n            return JsonResponse(dict(result='Job was scheduled.'))\n\n4. Start Radical worker:\n\n    .. code-block:: bash\n\n        ./manage.py radical\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fand3rson%2Fradical","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fand3rson%2Fradical","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fand3rson%2Fradical/lists"}