Skip to main content

baridimob — Python SDK

Open-source SDK for BaridiMob (Algérie Poste).

Work in progress — the public API is not stable yet.

Install

pip install baridimob

Quickstart

from baridimob import Config, FileStorage, create_client

bm = create_client(Config(storage=FileStorage("./.baridimob/session.json")))

result = bm.auth.login("your-login", "your-password")
if result.state == "otp_required":
    bm.auth.request_device_otp()
    bm.auth.confirm_device("123456")

accounts = bm.accounts.list()
history = bm.accounts.transactions(accounts[0].number, page=1)

pending = bm.transfers.send(1000, accounts[0].number, "00799999000000000000")
# SMS is sent here; show the OTP screen, then:
receipt = pending.confirm("123456")

The device is confirmed once. Later logins on the same machine reuse the stored device keys and need no OTP. Session expiry is handled automatically.

Status

Module Status
core — signer, device keys, transport (form/JSON/binary), typed errors, storage done (unit-tested)
auth — login, device OTP, logout, automatic re-login done
accounts — list, detail, balance, history, find, iterate done
payments — verify, categories, providers, check + exec (card), dynamic FPE done
transfers — strategies, arm, request_otp, exec, send done
receipts — recent operations, PDF download done
profile — client identity and flags done
cards planned
cardless planned

Security

  • HTTPS is enforced. Plain http:// is accepted only for localhost / 127.0.0.1 or when allow_insecure=True is set explicitly.
  • The stored session is a live credential. Encrypt it at rest and never commit it.
  • Money movement always requires an OTP supplied by the caller.

Requirements

  • Python >= 3.10
  • httpx

License

MIT

Metadata

Release files for baridimob 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 baridimob 0.1.0
File Size Uploaded Provenance
baridimob-0.1.0.tar.gz 18.1 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 38.1 kB

Release files / baridimob-0.1.0.tar.gz

Download URL baridimob-0.1.0.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4e06afb7dc785ca7f303bd7930cbee15fe24ef4b4eebdd9dd7bd2b8620f5c753
BLAKE2b-256 checksum
How to use checksums
74a60f1bdacda76800794190a372fdea31ecf430d1f50a2a21de678c905a8980
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

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

Download URL baridimob-0.1.0-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
562fe8a28456d94d38ea610476d2f3524f2cc846955cb86de70ac66e443b1cfb
BLAKE2b-256 checksum
How to use checksums
dd0d5caa95a2d62994d1aba0209e1f8fdc9fada5a148a2e1ef5cb1960e537cc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Security for baridimob 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.

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