Skip to main content

Korapay CLI

Downloads Downloads Downloads

A command line app for interacting with Korapay's API. Built with Typer and korapay-client

Installation

Korapay CLI can be installed from pypi with pip as shown below.

pip install korapay-cli

or with uv

uv tool install korapay-cli

First time configurations

You're required to add your korapay integration credentials (i.e. public key,secret key and encryption key) to the cli on first use as shown below. This package provides korapay and kp as the cli's entry point

korapay config crendtials
# or
kp config crendtials

This sets up your korapay cli for use in development mode if the test secret key is used. This credentials can be removed with korapay reset or kp reset. The credentials are stored in $HOME/.config/.korapay-cli/.settings.json for mac and linux and C:\Users\<user>\AppData\Local\.korapay-cli/.settings.json on windows

Run korapay --help or kp --help to see available commands

Examples

Resolve an account number

# kp or korapay resolve-bank-account [BANK_CODE] [ACCOUNT_NUMBER]
kp resolve-bank-account 214 5273681014

Running the command above should yield a result similar to the dump shown below

Response(status_code=200, status=True, message='Request completed', data={'bank_name': 'FCMB Plc', 'bank_code': '214', 'account_number': '5273681014', 'account_name': 'ADEYI GBENGA MICHAEL'})

By default, the results you get from the cli is a Response object which is a pydantic model returned by korapay-client. To get a json result, use the --json flag.

# kp or korapay resolve-bank-account [BANK_CODE] [ACCOUNT_NUMBER]
kp resolve-bank-account 214 5273681014 --json

Running the command above should yield a result similar to the dump shown below

{"bank_name": "FCMB Plc", "bank_code": "214", "account_number": "5273681014", "account_name": "ADEYI GBENGA MICHAEL"}

Source code

https://github.com/gray-adeyi/korapay-cli

Metadata

Release files for korapay-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for korapay-cli 0.1.0
File Size Uploaded Provenance
korapay_cli-0.1.0.tar.gz 18.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for korapay-cli 0.1.0
File Interpreter ABI Platform
korapay_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.3 kB

Release files / korapay_cli-0.1.0.tar.gz

Download URL korapay_cli-0.1.0.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7e767ccab9706ca0900d31564abce24c171dc5ecb248f4eabeb7fd95537a2626
BLAKE2b-256 checksum
How to use checksums
2c53a749482891bb81a03cb25914f95e31ebc6cc1de52c19f02b961742f7e7e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.29

Release files / korapay_cli-0.1.0-py3-none-any.whl

Download URL korapay_cli-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4aff75e30622dc88177069ddd9e15d22a46c79fafa6491628318fd017b31a1a1
BLAKE2b-256 checksum
How to use checksums
fa0326007e792796617e93dcc736504e107f89e0656247831d34edb461a9f8e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.29

Security for korapay-cli 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page