{"id":20130033,"url":"https://github.com/tralahm/pympesa","last_synced_at":"2025-10-16T11:29:40.694Z","repository":{"id":50169643,"uuid":"213103454","full_name":"TralahM/pympesa","owner":"TralahM","description":"Clean Wrapper library around Safaricom's daraja Mpesa api  pip install daraja-mpesa ","archived":false,"fork":false,"pushed_at":"2023-07-13T19:58:56.000Z","size":351,"stargazers_count":12,"open_issues_count":4,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T16:13:48.298Z","etag":null,"topics":["b2b","b2c","balance","c2b","mpesa","mpesa-api","mpesa-api-python","mpesa-payments","mpesa-sdk","mpesa-stk","payment-integration","pypi-package","python","reversal","safaricom-daraja-python","tralahm","wrapper-library"],"latest_commit_sha":null,"homepage":"https://pympesa.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TralahM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.rst","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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},"funding":{"github":"TralahM","patreon":"TralahM","custom":"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=WFKVHBRCYEE6S\u0026source=url"}},"created_at":"2019-10-06T03:26:51.000Z","updated_at":"2025-01-27T19:38:48.000Z","dependencies_parsed_at":"2024-11-13T20:38:11.054Z","dependency_job_id":"0fdd3504-ad81-4aa5-be1b-ec37d6bbd8d8","html_url":"https://github.com/TralahM/pympesa","commit_stats":{"total_commits":40,"total_committers":3,"mean_commits":"13.333333333333334","dds":"0.32499999999999996","last_synced_commit":"46f929ab21806b040a195ba1fbf066c698e576b3"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/TralahM/pympesa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TralahM%2Fpympesa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TralahM%2Fpympesa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TralahM%2Fpympesa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TralahM%2Fpympesa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TralahM","download_url":"https://codeload.github.com/TralahM/pympesa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TralahM%2Fpympesa/sbom","scorecard":{"id":143440,"data":{"date":"2025-08-11","repo":{"name":"github.com/TralahM/pympesa","commit":"57d71c74b76123c968cc6b7420b981c96f37c977"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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":"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":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pythonpublish.yml:1","Warn: no topLevel permission defined: .github/workflows/semgrep.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":"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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/pythonpublish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/TralahM/pympesa/pythonpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/TralahM/pympesa/pythonpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/semgrep.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/TralahM/pympesa/semgrep.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:24","Info:   0 out of   3 GitHub-owned 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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: 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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/TralahM/.github/.github/SECURITY.md:1","Info: Found linked content: github.com/TralahM/.github/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/TralahM/.github/.github/SECURITY.md:1","Info: Found text in security policy: github.com/TralahM/.github/.github/SECURITY.md:1"],"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: PYSEC-2022-42991 / GHSA-v3c5-jqr6-7qm8","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2019-132 / GHSA-r64q-w8jr-g9qp","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: PYSEC-2020-148 / GHSA-wqvq-5m8c-6g24","Warn: Project is vulnerable to: PYSEC-2021-108"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T08:46:30.136Z","repository_id":50169643,"created_at":"2025-08-16T08:46:30.136Z","updated_at":"2025-08-16T08:46:30.136Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279183560,"owners_count":26121426,"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-16T02:00:06.019Z","response_time":53,"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":["b2b","b2c","balance","c2b","mpesa","mpesa-api","mpesa-api-python","mpesa-payments","mpesa-sdk","mpesa-stk","payment-integration","pypi-package","python","reversal","safaricom-daraja-python","tralahm","wrapper-library"],"created_at":"2024-11-13T20:37:08.846Z","updated_at":"2025-10-16T11:29:40.677Z","avatar_url":"https://github.com/TralahM.png","language":"Python","funding_links":["https://github.com/sponsors/TralahM","https://patreon.com/TralahM","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=WFKVHBRCYEE6S\u0026source=url"],"categories":[],"sub_categories":[],"readme":"\n[![Build Status](https://travis-ci.com/TralahM/pympesa.svg?branch=master)](https://travis-ci.com/TralahM/pympesa)\n[![License: MIT](https://img.shields.io/badge/License-MIT-red.svg)](https://opensource.org/licenses/MIT)\n[![Organization](https://img.shields.io/badge/Org-TralahTek-blue.svg)](https://github.com/TralahTek)\n[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)\n[![HitCount](http://hits.dwyl.io/TralahM/pympesa.svg)](http://dwyl.io/TralahM/pympesa)\n[![Inline Docs](http://inch-ci.org/github/TralahM/pympesa.svg?branch=master)](http://inch-ci.org/github/TralahM/pympesa)\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/ansicolortags.svg)](https://pypi.python.org/pypi/ansicolortags/)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/TralahM/pull/)\n[![GitHub pull-requests](https://img.shields.io/github/issues-pr/Naereen/StrapDown.js.svg)](https://gitHub.com/TralahM/pympesa/pull/)\n[![GitHub version](https://badge.fury.io/gh/Naereen%2FStrapDown.js.svg)](https://github.com/TralahM/pympesa).\n\n# pympesa.\n\n# Description\nThis is an unofficial wrapper providing convenient access to the Safaricom MPESA Daraja API for applications written in Python.\n\nIt has been tested with Python 2 \u0026 3\n\n### Setup and Installation\n\n```Bash\npip install daraja-mpesa\n```\nYou can also clone or download the library package and install it using setuptools:\n``` bash\ngit clone https://github.com/TralahM/pympesa.git\ncd pympesa\npython setup.py install\n```\n\n### Tests\nThe library comes with simple integration tests with Safaricom's sandbox APIs. Due to factors beyond my control, the tests are structured to pass even when a specific Daraja API is under maintenance. To run the tests, simply execute pytest from the library's root directory:\n\n``` bash\npytest\n```\n\n### Usage\n\n``` python\nfrom mpesa.api.\u003cAPI\u003e import \u003cAPI Class\u003e\n```\n***API***\nThe following APIs are supported:\n-   transaction_status\n-   mpesa_express\n-   reversal\n-   balance\n-   auth\n-   b2c\n-   c2b\n-   b2b\n\n***API Class***\nThe following are the corresponding API classes:\n - TransactionStatus\n - MpesaExpress\n - Reversal\n - Balance\n - MpesaBase\n - B2B\n - C2B\n - B2C\n\n\n\n[![TralahM](https://img.shields.io/badge/Engineer-TralahM-blue.svg?style=for-the-badge)](https://github.com/TralahM)\n[![TralahM](https://img.shields.io/badge/Maintainer-TralahM-green.svg?style=for-the-badge)](https://github.com/TralahM)\n\n# Documentation\n\n[Read the Docs](https://pympesa.readthedocs.io)\n# Dependencies\n\n# How to Install\n\n\n## Building from Source for Developers\n\n```Bash\ngit clone https://github.com/TralahM/pympesa.git\ncd pympesa\npython setupy bdist_wheel\npython setupy install\n```\n\n# Contributing\n[See the Contributing File](CONTRIBUTING.rst)\n\n\n[See the Pull Request File](PULL_REQUEST_TEMPLATE.md)\n\n# Support\n\n# LICENCE\n[Read the license here](LICENSE)\n\n\n# Acknowledgements\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftralahm%2Fpympesa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftralahm%2Fpympesa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftralahm%2Fpympesa/lists"}