Skip to main content

A python lib for using Mambu APIs.

Project description

MambuPy

.. image:: https://travis-ci.org/jstitch/MambuPy.svg?branch=master :target: https://travis-ci.org/jstitch/MambuPy :alt: Build Status

A python API for using Mambu.

Allows accessing Mambu via its REST API. Also includes SQLAlchemy mappings to a backup of its DataBase.

Mambu is a cloud platform which lets you rapidly build, integrate, launch and service any lending portfolio into any market (https://www.mambu.com).

Mambu REST API

Mambu allows communicating via a RESTful API (documented at https://developer.mambu.com/).

MambuPy includes a set of classes whose purpose is connecting to this REST Api and work with Mambu entities on your python scripts.

You must configure your Mambu account for allowing an API user to connect with it for this functionality to work.

For more information, look at the MambuStruct class and all the classes inheriting from it. MambuPy implements this at all the scripts named mambu*.py

Mambu Database Backup

Mambu also allows their users to download a dump of its database. It is a MySQL schema, documented at https://developer.mambu.com.

MambuPy includes a set of SQLAlchemy mappings that can connect to the Mambu database dump.

You must download a valid dump of your Mambu database, and then extract and restore on a local MySQL server of your own for this functionality to work.

For more information, look at the scripts named schema*.py

Installation

Currently MambuPy works on Python 2.7 and Python 3.6

You may install MambuPy by git-cloning this repository on your local environment and making it available anywhere on your PYTHONPATH.

You may also use pip install mambupy but please consider that you must configure your installation before using it.

Configuration

You must configure your local MambuPy environment first so you can correctly use this module.

Look at mambuconfig.py for more information.

Work in progress

MambuPy is a work in progress, on a very early stage of its development.

Currently it allows a limited connection to some of the more important Mambu entitites accessible via its REST API.

Also, not all of the Mambu Database schema is currently mapped.

Finally, also note that Mambu itself delivers changes on a regular basis that may include new functionality on its REST API, and changes on its database tables. Currently MambuPy works with the last version of Mambu but NOT ALL of its functionality is implemented. Making a complete implementation of the REST API and the mapping of the Database, and keeping them up to date with the last version of Mambu, is one of the main objectives of the MambuPy project.

Please consider supporting the project by forking, improving and pull-requesting it.

TODOs

TODO comments for hackers are included at:

  • TODO file
  • pydoc string at __init__.py
  • pydoc strings all around the code

Author

JNC jstitch@gmail.com

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

MambuPy-2.0.0a5.dev2.tar.gz (107.5 kB view details)

Uploaded Source

Built Distributions

MambuPy-2.0.0a5.dev2-py3.10.egg (142.4 kB view details)

Uploaded Source

MambuPy-2.0.0a5.dev2-py3-none-any.whl (156.2 kB view details)

Uploaded Python 3

File details

Details for the file MambuPy-2.0.0a5.dev2.tar.gz.

File metadata

  • Download URL: MambuPy-2.0.0a5.dev2.tar.gz
  • Upload date:
  • Size: 107.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.3

File hashes

Hashes for MambuPy-2.0.0a5.dev2.tar.gz
Algorithm Hash digest
SHA256 7ad90848cb2e19cb8294e7db31bccbb1c2e750cbf26d1fcc5689421db4b94616
MD5 3023220e9fa1b8c790bc9d12dca7b5c7
BLAKE2b-256 a438877a2ae5d7f420c4634396bea941be7feb238684870ae1d0c2a5c8e17fe1

See more details on using hashes here.

File details

Details for the file MambuPy-2.0.0a5.dev2-py3.10.egg.

File metadata

  • Download URL: MambuPy-2.0.0a5.dev2-py3.10.egg
  • Upload date:
  • Size: 142.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.3

File hashes

Hashes for MambuPy-2.0.0a5.dev2-py3.10.egg
Algorithm Hash digest
SHA256 c674d59a8c7759bc7374a4dafb4be65fa2492b6917afe017305e97748185407a
MD5 5ae9ce712b9228fd729bf8f4c769792c
BLAKE2b-256 9764c99701ef8814e73774a4e084a11c45ce8eb5297b306803ff3a6a123d2853

See more details on using hashes here.

File details

Details for the file MambuPy-2.0.0a5.dev2-py3-none-any.whl.

File metadata

  • Download URL: MambuPy-2.0.0a5.dev2-py3-none-any.whl
  • Upload date:
  • Size: 156.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.3

File hashes

Hashes for MambuPy-2.0.0a5.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 45b305db9ec7785193891a0358e4556edfa868e41f8818d4a6946fe6435878e1
MD5 1cea5c68ac8251965f7bb54cd0cc6d64
BLAKE2b-256 f5f90c5d819dd729352db84340b7e7d6610140e113ba29635cba8a9b90e43100

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page