{"id":18554220,"url":"https://github.com/oracle/coherence-py-client","last_synced_at":"2026-03-01T18:31:52.825Z","repository":{"id":175306292,"uuid":"615603972","full_name":"oracle/coherence-py-client","owner":"oracle","description":"The Coherence Python Client allows Python applications to act as cache clients to an Oracle Coherence cluster using gRPC as the network transport.","archived":false,"fork":false,"pushed_at":"2025-12-01T04:44:51.000Z","size":8300,"stargazers_count":12,"open_issues_count":16,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-21T16:02:48.012Z","etag":null,"topics":["caching","coherence","distributed","in-memory","kv-store","microservices","python"],"latest_commit_sha":null,"homepage":"https://oracle.github.io/coherence-py-client/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"upl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oracle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-18T05:55:37.000Z","updated_at":"2026-01-01T23:51:24.000Z","dependencies_parsed_at":"2023-12-19T20:52:59.561Z","dependency_job_id":"cd9c0d0c-48d2-4f4b-82b6-7ad60c9062e2","html_url":"https://github.com/oracle/coherence-py-client","commit_stats":null,"previous_names":["oracle/coherence-py-client"],"tags_count":13,"template":false,"template_full_name":"oracle/template-repo","purl":"pkg:github/oracle/coherence-py-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle%2Fcoherence-py-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle%2Fcoherence-py-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle%2Fcoherence-py-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle%2Fcoherence-py-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oracle","download_url":"https://codeload.github.com/oracle/coherence-py-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle%2Fcoherence-py-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29978525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["caching","coherence","distributed","in-memory","kv-store","microservices","python"],"created_at":"2024-11-06T21:20:17.389Z","updated_at":"2026-03-01T18:31:52.814Z","avatar_url":"https://github.com/oracle.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Client for Oracle Coherence\n\n![CI/CD](https://github.com/oracle/coherence-py-client/actions/workflows/validate.yml/badge.svg)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=oracle_coherence-py-client\u0026metric=alert_status)](https://sonarcloud.io/project/overview?id=oracle_coherence-py-client)\n[![License](http://img.shields.io/badge/license-UPL%201.0-blue.svg)](https://oss.oracle.com/licenses/upl/)\n\n\u003cimg src=https://oracle.github.io/coherence/assets/images/logo-red.png width=\"30%\"\u003e\u003cimg\u003e\n\nThe Coherence Python Client allows Python applications to act as cache clients to an Oracle Coherence cluster using gRPC as the network transport.\n\n#### Features\n* Familiar Map-like interface for manipulating cache entries including but not limited to:\n    * `put`, `put_if_absent`, `put_all`, `get`, `get_all`, `remove`, `clear`, `get_or_default`, `replace`, `replace_mapping`, `size`, `is_empty`, `contains_key`, `contains_value`\n* Cluster-side querying, aggregation and filtering of map entries\n* Cluster-side manipulation of map entries using EntryProcessors\n* Registration of listeners to be notified of:\n    * mutations such as insert, update and delete on Maps\n    * map lifecycle events such as truncated, released or destroyed\n    * session lifecycle events such as connected, disconnected, reconnected and closed\n* Support for storing Python objects as JSON as well as the ability to serialize to Java objects on the server for access from other Coherence language API's\n\n#### Requirements\n* [Coherence CE](https://github.com/oracle/coherence) 22.06.11+ or Coherence 14.1.1.2206.11+, 14.1.2.0+ Commercial edition with a configured [gRPCProxy](https://docs.oracle.com/en/middleware/standalone/coherence/14.1.1.2206/develop-remote-clients/using-coherence-grpc-server.html).\n* Usage of module `coherence.ai` requires [Coherence CE](https://github.com/oracle/coherence) 24.09.2+\n* Python 3.9.x or later\n\n\n#### Starting a Coherence Cluster\n\nBefore testing the Python client, you must ensure a Coherence cluster is available.\nFor local development, we recommend using the Coherence CE Docker image; it contains\neverything necessary for the client to operate correctly.\n\n```bash\ndocker run -d -p 1408:1408 ghcr.io/oracle/coherence-ce:25.03.2\n```\n\n## Installation\n\n```bash\npython3 -m pip install coherence-client\n```\n\n## Documentation\n\n[https://oracle.github.io/coherence-py-client/](https://oracle.github.io/coherence-py-client/)\n\n## Examples\n\nThe following example connects to a Coherence cluster running gRPC Proxy on default\nport of 1408, creates a new `NamedCache` with key `str` and value of a `str|int` and\nissues `put()`, `get()`, `size()` and `remove` operations.\n\n```python\nfrom coherence import NamedCache, Session\nimport asyncio\nfrom typing import Union\n\n\nasync def run_test():\n\n    # create a new Session to the Coherence server\n    session: Session = await Session.create()\n\n    # create a new NamedCache with key of string|int and value of string|int\n    cache: NamedCache[str, Union[str,int]] = await session.get_cache(\"test\")\n\n    # put a new key/value\n    k: str = \"one\"\n    v: str = \"only-one\"\n    await cache.put(k, v)\n\n    # get the value for a key in the cache\n    r = await cache.get(k)\n\n    # print the value got for a key in the cache\n    print(\"The value of key \\\"one\\\" is \" + r)\n\n    k1: str = \"two\"\n    v1: int = 2\n    await cache.put(k1, v1)\n    r = await cache.get(k1)\n    print(\"The value of key \\\"two\\\" is \" + str(r))\n\n    # print the size of the cache\n    print(\"Size of the cache test is \" + str(await cache.size()))\n\n    # remove an entry from the cache\n    await cache.remove(k1)\n\n\n# run the test\nasyncio.run(run_test())\n```\n## Help\n\nWe have a **public Slack channel** where you can get in touch with us to ask questions about using the Coherence Python Client\nor give us feedback or suggestions about what features and improvements you would like to see. We would love\nto hear from you. To join our channel,\nplease [visit this site to get an invitation](https://join.slack.com/t/oraclecoherence/shared_invite/enQtNzcxNTQwMTAzNjE4LTJkZWI5ZDkzNGEzOTllZDgwZDU3NGM2YjY5YWYwMzM3ODdkNTU2NmNmNDFhOWIxMDZlNjg2MzE3NmMxZWMxMWE).\nThe invitation email will include details of how to access our Slack\nworkspace.  After you are logged in, please come to `#coherence` and say, \"hello!\"\n\nIf you would like to raise an issue please see [here](https://github.com/oracle/coherence-py-client/issues/new/choose).\n\n## Contributing\n\nThis project welcomes contributions from the community. Before submitting a pull request, please [review our contribution guide](./CONTRIBUTING.md)\n\n## Security\n\nPlease consult the [security guide](./SECURITY.md) for our responsible security vulnerability disclosure process\n\n## License\n\nCopyright (c) 2023, 2025, Oracle and/or its affiliates.\n\nReleased under the Universal Permissive License v1.0 as shown at\n\u003chttps://oss.oracle.com/licenses/upl/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle%2Fcoherence-py-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle%2Fcoherence-py-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle%2Fcoherence-py-client/lists"}