Giter VIP home page Giter VIP logo

python-n26's Introduction

N26 Python CLI/API

Build Status PyPI version Downloads Join Discord

About

python-n26 is a Command Line Interface to request information from n26 bank accounts and a Python 3 module that can be used in Python projects.

Disclaimer: This is an unofficial community project which is not affiliated with N26 GmbH/N26 Inc.

Install

pip3 install n26
wget https://raw.githubusercontent.com/femueller/python-n26/master/n26.yml.example -O ~/.config/n26.yml
# configure username and password
vim ~/.config/n26.yml

You can also specify environment variables with the credentials.

  • N26_USER: username
  • N26_PASSWORD: password

Note that when specifying both environment variables as well as a config file their values can be merged. When there is a conflict however (i.e. a key is present in both locations) the enviroment variable values will be preferred.

Usage

CLI example

n26 balance

Or if using environment variables:

N26_USER=user N26_PASSWORD=passwd n26 balance

API example

from n26 import api
balance = api.Api()
print(balance.get_balance())

This is going to use the same mechanism to load configuration as the CLI tool, to specify your own configuration you can use it as:

from n26 import api
from n26 import config
conf = config.Config('username', 'passwd')
client = api.Api(conf)
print(client.get_balance())

Projects using python-n26

The following projects are using python-n26:

Contribute

If there are any issues, bugs or missing API endpoints, feel free to contribute by forking the project and creating a Pull-Request.

Run locally

Prerequirements: Pipenv

git clone [email protected]:femueller/python-n26.git
cd python-n26
pipenv shell
pipenv install
python3 -m n26 balance

Credits

python-n26's People

Contributors

markusressel avatar femueller avatar dependabot-support avatar gsailer avatar mtrovo avatar sdabbo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.