Skip to content
/ woob Public

Web outside of Browsers

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

rbignon/woob

Repository files navigation

Woob

Package Version Last commit Python Version License

Woob (Web Outside of Browsers) is a library which provides a Python standardized API and data models to access websites.

Overview

image

There are three main concepts:

  • Capabilities: This is a standardized interface to access a specific kind of website. It provides an unified API and standard datamodels;
  • Modules: A module is dedicated to a specific website. It can implements several capabilities (for example paypal module may implement CapBank to get bank informations, CapTransfer to initiate a transfer, CapProfile to get information about the customer, and CapDocument to get documents);
  • Backends: You can load a module several times, with different configurations. For example, if you have two PayPal accounts, you can create two backends of the same module with different credentials.

The main Woob class let configure new backends and do aggregated calls to every backends loaded with a specific capability.

For example, once backends are loaded, you can call iter_accounts() and you'll get accounts in the same Account data model for all backends implementing CapBank:

>>> from woob.core import Woob
>>> from woob.capabilities.bank import CapBank
>>> w = Woob()
>>> w.load_backends(CapBank)
{'societegenerale': <Backend 'societegenerale'>,
 'creditmutuel': <Backend 'creditmutuel'>}
>>> accounts = list(w.iter_accounts())
>>> print(accounts)
[<Account id='7418529638527412' label=u'Compte de ch\xe8ques'>,
 <Account id='9876543216549871' label=u'Livret A'>,
 <Account id='123456789123456789123EUR' label=u'C/C Eurocompte Confort M Roger Philibert'>]
>>> accounts[0].balance
Decimal('87.32')

Applications

If you are looking for applications using the woob library, visit woob.tech.

Installation

Read this documentation.

Documentation

More information about how to use woob at woob.dev.

Contributing

If you want to contribute to woob (patch of the core, creating new modules, etc.), read this.

Chat with us

About

Web outside of Browsers

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages