Skip to main content

Package to interact with Monzo API to fetch transactions and upload to a database

Project description

Monzy

A Python data pipeline to fetch, transform, and process Monzo transactions and pot data from the Monzo API.

Table of Contents

Introduction

This project provides a data pipeline to interact with the Monzo API, retrieve transaction and pot data, transform it into a structured format, and process it for analysis or storage in a PostgreSQL database. It uses the monzo-API Python package developed by Peter MacDonald: https://github.com/petermcd/monzo-api

Features

  • Fetch Monzo transactions and pot data
  • Transform and normalize transaction data
  • Process transactions to prepare for analysis
  • Insert and query data in a PostgreSQL database
  • Environment configuration using .env files

Setup

Prerequisites

  • Python 3.8+
  • PostgreSQL database

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/monzy.git
    cd monzy
    
  2. Create and activate a virtual environment with Poetry:

    ./local-setup.sh
    
  3. Set up environment variables:

    Create a .env file in the root directory of the project and add your environment variables:

    DB_USERNAME=your_username
    DB_PASSWORD=your_password
    DB_HOST=your_host
    DB_NAME=your_database
    DB_PORT=your_port
    

Usage

Monzo API Token

...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monzy-0.1.6.dev0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

monzy-0.1.6.dev0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file monzy-0.1.6.dev0.tar.gz.

File metadata

  • Download URL: monzy-0.1.6.dev0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.3 Darwin/23.2.0

File hashes

Hashes for monzy-0.1.6.dev0.tar.gz
Algorithm Hash digest
SHA256 4338ccc1b12ef34a5d7dd04a228b7a9e2d257c4c18d3a45e4e9657fba12b347c
MD5 0a0410c2b4c0d73863b5bfa0618b53da
BLAKE2b-256 632252f083e6772e06546570becf4abfa17f349bcf21b22b27ba4a65be1dc778

See more details on using hashes here.

File details

Details for the file monzy-0.1.6.dev0-py3-none-any.whl.

File metadata

  • Download URL: monzy-0.1.6.dev0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.3 Darwin/23.2.0

File hashes

Hashes for monzy-0.1.6.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 286e60a1fad3efc5e8a840976177566e51f4f31c96d9ea00ab6fc391f39b99a9
MD5 9b391da307305ab916ecb2a6c2a7b65e
BLAKE2b-256 9d0c048aa2ef01d5ab5cbecbf079b1ddf1987cf79c2131379436fd1491daec41

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