Skip to main content

NBG Python SDK

Downloads of nbg on PyPI nbg is packaged as wheel Supported Python versions of nbg Documentation Status

The nbg Python package enables developers to build applications that use the public APIs of the National Bank of Greece.

Installation

We suggest using a package manager like Poetry or Pipenv to install nbg. This guarantees that the intended version of nbg will be installed every time, through content hash checks:

poetry add nbg

Alternatively you can use Pipenv:

pipenv install nbg

In case you cannot use Poetry or Pipenv, you can always install nbg with pip:

pip install nbg

Documentation

The full documentation for the NBG Python SDK is hosted at Read the Docs: https://readthedocs.org/projects/nbg-python-sdk.

API clients

The National Bank of Greece provides a set of multiple APIs. To use each one of these APIs, you should pick the corresponding client from the nbg package.

Accounts Information PSD2 API

from nbg import account_information


# Step 1 - Set up client and authentication
client_id="your_client_id"
client_secret="your_client_secret"
client = account_information.AccountInformationPSD2Client(
    client_id=client_id,
    client_secret=client_secret,
    production=False,
)
client.set_access_token("access_token_of_your_user")

# Step 2 - Set up a sandbox, when in development
sandbox_id = f"{client_id}_sandbox"
client.create_sandbox(sandbox_id)
client.set_sandbox(sandbox_id)

# Step 3 - Start working with the Account information API
accounts = client.accounts(user_id="your_user_id")
print(accounts)

Metadata

Release files for nbg 0.7.1

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

Source distribution (sdist)

Source distribution for nbg 0.7.1
File Size Uploaded Provenance Actions
nbg-0.7.1.tar.gz 19.8 kB Without provenance Details for nbg-0.7.1.tar.gz

Built distribution (wheel)

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

Total release size: 44.0 kB

Release files / nbg-0.7.1.tar.gz

Download URL nbg-0.7.1.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9bc5c9bb2f928e5cb07c3e4535acf840e8e570c15741202becd6dc43c0db9f5c
BLAKE2b-256 checksum
How to use checksums
3df14ade376694c2e859908562975bc96a1f87dda368f421127b4bea46788da4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.2 CPython/3.6.12 Linux/5.4.0-1026-azure

Release files / nbg-0.7.1-py3-none-any.whl

Download URL nbg-0.7.1-py3-none-any.whl
Size 24.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a25debfb0b99f3611c66bf8873a5c92268a6baedc7585c0a06dbf2fbb45eac51
BLAKE2b-256 checksum
How to use checksums
38604ff3bd71d40fe2c6743d70afe447fd7279c6ab7e86a638213cbd65ea0198
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.2 CPython/3.6.12 Linux/5.4.0-1026-azure

Security for nbg 0.7.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.

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