bila — Python SDK
Official Python SDK for Bila, the Stripe-style payment aggregator for Somalia.
pip install bila
from bila import Bila
bila = Bila(api_key="sk_live_...")
charge = bila.charges.create(
amount=10000,
currency="USD",
rail="auto",
identifier="+252611234567",
description="Order #1234",
)
if charge["status"] == "requires_action":
redirect_url = charge["requires_action_payload"]["redirect_to"]
# send the payer to redirect_url
Webhook verification:
from bila import verify_webhook_signature
signature = request.headers["Bila-Signature"]
body = request.get_data().decode()
if not verify_webhook_signature(body, signature, secret="whsec_..."):
return "invalid signature", 400
Full docs at https://bila.so/docs/sdks.
Metadata
Release files for bila 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bila-0.2.1.tar.gz | 4.4 kB | Without provenance | Details for bila-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bila-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for bila-0.2.1-py3-none-any.whl |
Total release size: 8.9 kB
Release files / bila-0.2.1.tar.gz
| Download URL | bila-0.2.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0a70248df5b06541fc55e86c9ddad9e98f8e6f4279b9650bc014f499627eec1
|
|
BLAKE2b-256 checksum How to use checksums |
73cf595b370700a8965b8739cf47ac501ef00dbbc27fee17bd02320ea19f2cbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / bila-0.2.1-py3-none-any.whl
| Download URL | bila-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9dc5b8afecf427b93f3069196f25256236347d2b877e8060411a81fc0674a1eb
|
|
BLAKE2b-256 checksum How to use checksums |
c829168dfc59d3dce774ee02d16504a3c579e95c91b40e836bd61aa37c96e047
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for bila 0.2.1
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.