{"id":19687963,"url":"https://github.com/nnsnodnb/kalyke","last_synced_at":"2025-10-06T21:57:35.533Z","repository":{"id":34934399,"uuid":"185019852","full_name":"nnsnodnb/kalyke","owner":"nnsnodnb","description":":toolbox: A library for interacting with APNs and VoIP using HTTP/2.","archived":false,"fork":false,"pushed_at":"2025-10-01T20:45:42.000Z","size":1138,"stargazers_count":18,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-04T04:35:28.071Z","etag":null,"topics":["apns","liveactivity","pip","python","voip"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/kalyke-apns","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nnsnodnb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["nnsnodnb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2019-05-05T11:04:23.000Z","updated_at":"2025-10-01T20:45:03.000Z","dependencies_parsed_at":"2023-10-03T08:40:43.020Z","dependency_job_id":"a6c2e76e-7b4c-4cd4-92ae-5319d5b74ac3","html_url":"https://github.com/nnsnodnb/kalyke","commit_stats":{"total_commits":208,"total_committers":4,"mean_commits":52.0,"dds":0.5,"last_synced_commit":"fa8d98842a80f12cb4d94e3774fc70780a5ab069"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/nnsnodnb/kalyke","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnsnodnb%2Fkalyke","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnsnodnb%2Fkalyke/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnsnodnb%2Fkalyke/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnsnodnb%2Fkalyke/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nnsnodnb","download_url":"https://codeload.github.com/nnsnodnb/kalyke/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnsnodnb%2Fkalyke/sbom","scorecard":{"id":691193,"data":{"date":"2025-08-11","repo":{"name":"github.com/nnsnodnb/kalyke","commit":"b7fe31b01c98df578d5ce7ada0af9f3d5604e2a3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.6,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 15 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/linter.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/renovate.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linter.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/linter.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linter.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/linter.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/linter.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/linter.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linter.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/linter.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linter.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/linter.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/linter.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/linter.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linter.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/linter.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/linter.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/linter.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/renovate.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/renovate.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/renovate.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/renovate.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/nnsnodnb/kalyke/tests.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/tests.yml:25","Info:   0 out of  14 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:42"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-vqfr-h8mv-ghfj"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T02:20:14.850Z","repository_id":34934399,"created_at":"2025-08-22T02:20:14.850Z","updated_at":"2025-08-22T02:20:14.850Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278686633,"owners_count":26028325,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["apns","liveactivity","pip","python","voip"],"created_at":"2024-11-11T18:36:34.472Z","updated_at":"2025-10-06T21:57:35.528Z","avatar_url":"https://github.com/nnsnodnb.png","language":"Python","funding_links":["https://github.com/sponsors/nnsnodnb"],"categories":[],"sub_categories":[],"readme":"# kalyke\n\n![Test](https://github.com/nnsnodnb/kalyke/workflows/Test/badge.svg)\n[![Maintainability](https://api.codeclimate.com/v1/badges/fb85bcf746e1f4025afa/maintainability)](https://codeclimate.com/github/nnsnodnb/kalyke/maintainability)\n[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![codecov](https://codecov.io/gh/nnsnodnb/kalyke/graph/badge.svg)](https://codecov.io/gh/nnsnodnb/kalyke)\n\n[![PyPI Package version](https://badge.fury.io/py/kalyke-apns.svg)](https://pypi.org/project/kalyke-apns)\n[![Python Supported versions](https://img.shields.io/pypi/pyversions/kalyke-apns.svg)](https://pypi.org/project/kalyke-apns)\n[![wheel](https://img.shields.io/pypi/wheel/kalyke-apns.svg)](https://pypi.org/project/kalyke-apns)\n[![format](https://img.shields.io/pypi/format/kalyke-apns.svg)](https://pypi.org/project/kalyke-apns)\n[![implementation](https://img.shields.io/pypi/implementation/kalyke-apns.svg)](https://pypi.org/project/kalyke-apns)\n[![LICENSE](https://img.shields.io/pypi/l/kalyke-apns.svg)](https://pypi.org/project/kalyke-apns)\n\nA library for interacting with APNs and VoIP using HTTP/2.\n\n## Installation\n\nkalyke requires python 3.10 or later.\n\n```bash\n$ pip install kalyke-apns\n```\n\n## Usage\n\n### APNs\n\n```python\nimport asyncio\n\nfrom kalyke import ApnsClient, ApnsConfig, Payload, PayloadAlert\n\nclient = ApnsClient(\n    use_sandbox=True,\n    team_id=\"YOUR_TEAM_ID\",\n    auth_key_id=\"AUTH_KEY_ID\",\n    auth_key_filepath=\"/path/to/AuthKey_AUTH_KEY_ID.p8\",\n)\n\nregistration_id = \"a8a799ba6c21e0795b07b577b562b8537418570c0fb8f7a64dca5a86a5a3b500\"\n\npayload_alert = PayloadAlert(title=\"YOUR TITLE\", body=\"YOUR BODY\")\npayload = Payload(alert=payload_alert, badge=1, sound=\"default\")\nconfig = ApnsConfig(topic=\"com.example.App\")\n\nasyncio.run(\n    client.send_message(\n        device_token=registration_id,\n        payload=payload,\n        apns_config=config,\n    )\n)\n```\n\n### LiveActivity\n\n\u003e [!NOTE]\n\u003e - The topic suffix must be `.push-type.liveactivity`.\n\u003e - `LiveActivityPayload.event` default value is `LiveActivityEvent.UPDATE`.\n\n```python\nimport asyncio\nfrom datetime import datetime\n\nfrom kalyke import LiveActivityClient, LiveActivityApnsConfig, LiveActivityEvent, LiveActivityPayload, PayloadAlert\n\nclient = LiveActivityClient(\n    use_sandbox=True,\n    team_id=\"YOUR_TEAM_ID\",\n    auth_key_id=\"AUTH_KEY_ID\",\n    auth_key_filepath=\"/path/to/AuthKey_AUTH_KEY_ID.p8\",\n)\n\nregistration_id = \"a8a799ba6c21e0795b07b577b562b8537418570c0fb8f7a64dca5a86a5a3b500\"\n\npayload_alert = PayloadAlert(title=\"YOUR TITLE\", body=\"YOUR BODY\")\npayload = LiveActivityPayload(\n    alert=payload_alert,\n    badge=1,\n    sound=\"default\",\n    timestamp=datetime.now(),\n    event=LiveActivityEvent.UPDATE,\n    content_state={\n        \"currentHealthLevel\": 100,\n        \"eventDescription\": \"Adventure has begun!\",\n    },\n)\nconfig = LiveActivityApnsConfig(\n    topic=\"com.example.App.push-type.liveactivity\",\n)\n\nasyncio.run(\n    client.send_message(\n        device_token=registration_id,\n        payload=payload,\n        apns_config=config,\n    )\n)\n```\n\n### VoIP\n\n\u003e [!NOTE]\n\u003e - The topic suffix must be `.voip`.\n\n```python\nimport asyncio\nfrom pathlib import Path\n\nfrom kalyke import VoIPApnsConfig, VoIPClient\n\nclient = VoIPClient(\n    use_sandbox=True,\n    auth_key_filepath=Path(\"/\") / \"path\" / \"to\" / \"YOUR_VOIP_CERTIFICATE.pem\",\n)\n\nregistration_id = \"a8a799ba6c21e0795b07b577b562b8537418570c0fb8f7a64dca5a86a5a3b500\"\n\npayload = {\"key\": \"value\"}\nconfig = VoIPApnsConfig(\n    topic=\"com.example.App.voip\",\n)\n\nasyncio.run(\n    client.send_message(\n        device_token=registration_id,\n        payload=payload,\n        apns_config=config,\n    )\n)\n```\n\n## License\n\nThis software is licensed under the MIT License (See [LICENSE](LICENSE)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnsnodnb%2Fkalyke","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnnsnodnb%2Fkalyke","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnsnodnb%2Fkalyke/lists"}