GithubHelp home page GithubHelp logo

comfort4u / bank-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from felipecramos/bank-manager

0.0 0.0 0.0 6 KB

A python lib to make bank management easier

License: MIT License

Python 100.00%

bank-manager's Introduction

Bank manager

A python lib to make bills payment easier.

How to use

To generate a report, just follow the steps:

  • Create a directory containing the manage.py file.
  • Create a python 3.6+ script on the folder.
  • On the file you just created, import the manage.py file by typing into the first line of your code from manage import *.
  • Learn the syntax and be happy!

Learning the syntax

Let's learn by example. Let's suppose you want to create the report of your two bank accounts (i.e. Nubank and Subank).

Your code will look like:

from manage import *

# first, begin declaring your banks, like: Bank("Bank-Name")
nu = Bank("Nubank")
su = Bank("Subank")

# Now, we refer to the banks as `nu` and `su`

# adds R$ 25 to the Nubank, to be payed by "me" and with the description as "some bill"
nu.add(25, "Me", "Some bill")

su.add(19.90, "Him", "He own me")	# adds R$ 19,90 to the Subank

gen_bill(nu)	# Generates Nubank bill and prints out
gen_bill(su)	# Generates Subank bill and prints out

timestamp() # Generates a cool timestamp

Then, your output will look like (by running python3 example.py on your terminal):

@ Nubank
        R$   25.00 - Some bill (Me)
        --------------------------------------
        R$   25.00 - TOTAL

        ~ DIVIDED TO:
        R$   25.00 - Me

@ Subank
        R$   19.90 - He own me (Him)
        --------------------------------------
        R$   19.90 - TOTAL

        ~ DIVIDED TO:
        R$   19.90 - Him

Generated on: 2018-10-02 17:04:54.353104

If you want to know more, just dive in the manage.py file, it's short :)

AUTHORSHIP

Codes made by FelipeCRamos.

bank-manager's People

Contributors

felipecramos avatar luiz-eduardo 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.