Skip to main content

Useful functions for Mauritius banks and financials institutions like MRA (Mauritius Revenue Authority)

Project description

finance-mauritius

Useful functions for Mauritius banks and financials institutions like MRA (Mauritius Revenue Authority)

pip install finance-mauritius

Export your data in Excel format

>>> from finance_mauritius.mcb import MCB
>>> MCB.process_csv('mcb.CSV')
{
    'df': <polars df>, 
    'info': {
        'account_number': '00000000001', 
        'account_currency': 'MUR', 
        'opening_balance': '0.00', 
        'closing_balance': '15000.00', 
        'specified_period': '31-01-2024 - 31-03-2024', 
        'money_in': Decimal('48000.00'), 
        'money_out': Decimal('25915.00')
}

>>> MCB.csv_money_in()
{
    'Interbank Transfer <redacted> fare INTERNET BANKING TRANSFER': Decimal(10000.00), 
    'Instant Payment MCBL40329424554O': Decimal(10000.00)
}
>>> MCB.csv_money_out()
{
    'JUICE Transfer <redacted>': Decimal(1000.00), 
    'JUICE Transfer <redacted>': Decimal(2000.00), 
    'JUICE Transfer <redacted>': Decimal(2000.00)
}
>>> from finance_mauritius.mcb import SBM
>>> SBM.process_csv('SBM.csv')
{
    'info': {
        'account_number': '00000000000001', 
        'date_from': '03032024', 
        'date_to': '04012024', 
        'transactions_for': '-', 
        'last_n_transactions': '-', 
        'money_in': Decimal(20000.00),
        'money_out': Decimal(10000.00),
        }, 
    'df': <polars df>
}
>>> SBM.csv_money_in()
{   
    'SOM3R3F:<redacted>': Decimal('10000.00'), 
    'MCBLMUMU/<redacted>': Decimal('10000.00')
}
>>> SBM.csv_money_out()
{
    '<redacted> NON SBM POS': Decimal('1000.00'), 
    'ATM Withdrawal - <redacted>': Decimal('9000.00')
}

Options


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

finance_mauritius-0.2.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

finance_mauritius-0.2.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

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