Official Python SDK for NBG APIs
Project description
NBG Python SDK
Python wrapper with unified developer experience for the APIs of the National Bank of Greece.
Requirements
- Python 3.6 or newer
Installation
poetry add nbg
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 = account_information.AccountInformationPSD2Client(
client_id="your_client_id",
client_secret="your_client_secret",
production=False,
)
client.set_access_token("access_token_of_your_user")
# Step 2 - Set up a sandbox, when in development
client.create_sandbox("sandbox_id")
client.set_sandbox("sandbox_id")
# Step 3 - Start working with the Account information API
## Account resource
accounts = client.accounts(user_id="your_user_id")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nbg-0.5.0.tar.gz
(14.0 kB
view hashes)
Built Distribution
nbg-0.5.0-py3-none-any.whl
(19.4 kB
view hashes)