16 best Python Accounting libraries in 2024

share link

by reegs20 dot icon Updated: Aug 23, 2023

technology logo
technology logo

Guide Kit Guide Kit  

Python accounting provides software components. It enables powerful features like invoice generation, tax management, tax reminders, and risk management. 


Python development is ideal for analytics tools because of its gentle learning curve, flexibility, and open-sourced environment. It helps you build applications of many specializations, like machine learning, data analysis, financials, and cloud computing. Accountants can perform financial modeling in quantitative finance and tax solutions. A Python package enables the effective analysis of big data sets, large lists of numbers, and major financial data. You can also use these accounting libraries to simplify data visualization and statistical calculations. It makes working with invoices and structured data easier.


Below are our 16 best Python accounting open-source libraries in 2021. InvoiceNet is a deep neural network that can view PDF, JPG, and PNG invoices and extract intelligent information from them. You can train custom models, add or remove fields, and save the extracted information to your system. Another library, Rotki, is a portfolio tracking, analytics, accounting, and tax reporting application that works in the crypto and financial sectors and protects your privacy. On the other hand, LNbits is a free and open-source wallet or accounts system that has unique API keys for each wallet. It has a lightning-network functionality via LNbits extension framework.

erpnext  

  • Integrated Enterprise Resource Planning (ERP) system with modules for various business functions.  
  • Supports multi-currency and multi-language capabilities.  
  • Offers features for managing accounts, inventory, sales, and more.  

erpnextby frappe

Python doticonstar image 14042 doticonVersion:v14.27.5doticon
License: Strong Copyleft (GPL-3.0)

Free and Open Source Enterprise Resource Planning (ERP)

Support
    Quality
      Security
        License
          Reuse

            erpnextby frappe

            Python doticon star image 14042 doticonVersion:v14.27.5doticon License: Strong Copyleft (GPL-3.0)

            Free and Open Source Enterprise Resource Planning (ERP)
            Support
              Quality
                Security
                  License
                    Reuse

                      InvoiceNet  

                      • Utilizes deep learning to extract structured information from invoices.  
                      • Can handle invoices in various languages and formats.  
                      • Provides a pre-trained model for invoice data extraction.  

                      InvoiceNetby naiveHobo

                      Python doticonstar image 2210 doticonVersion:Currentdoticon
                      License: Permissive (MIT)

                      Deep neural network to extract intelligent information from invoice documents.

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                InvoiceNetby naiveHobo

                                Python doticon star image 2210 doticonVersion:Currentdoticon License: Permissive (MIT)

                                Deep neural network to extract intelligent information from invoice documents.
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          beancount  

                                          • A double-entry accounting tool that uses plain text files for data entry.  
                                          • Provides powerful support for handling complex financial transactions.  
                                          • Offers extensibility through plugins and scripting.  

                                          beancountby beancount

                                          Python doticonstar image 2683 doticonVersion:Currentdoticon
                                          License: Strong Copyleft (GPL-2.0)

                                          Beancount: Double-Entry Accounting from Text Files.

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    beancountby beancount

                                                    Python doticon star image 2683 doticonVersion:Currentdoticon License: Strong Copyleft (GPL-2.0)

                                                    Beancount: Double-Entry Accounting from Text Files.
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              timestrap  

                                                              • Specialized time tracking and invoicing system.  
                                                              • Allows for flexible project and task management.  
                                                              • Generates invoices directly from time entries.  

                                                              timestrapby overshard

                                                              Python doticonstar image 1640 doticonVersion:Currentdoticon
                                                              License: Permissive (BSD-2-Clause)

                                                              Time tracking you can host anywhere. Full export support in multiple formats and easily extensible.

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        timestrapby overshard

                                                                        Python doticon star image 1640 doticonVersion:Currentdoticon License: Permissive (BSD-2-Clause)

                                                                        Time tracking you can host anywhere. Full export support in multiple formats and easily extensible.
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  rotki  

                                                                                  • Cryptocurrency portfolio tracker with support for many exchanges and wallets.  
                                                                                  • Provides tax reporting and accounting features for crypto assets.  
                                                                                  • Offers real-time price data and portfolio performance metrics.  

                                                                                  rotkiby rotki

                                                                                  Python doticonstar image 2186 doticonVersion:v1.28.0doticon
                                                                                  License: Strong Copyleft (AGPL-3.0)

                                                                                  A portfolio tracking, analytics, accounting and tax reporting application that protects your privacy

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            rotkiby rotki

                                                                                            Python doticon star image 2186 doticonVersion:v1.28.0doticon License: Strong Copyleft (AGPL-3.0)

                                                                                            A portfolio tracking, analytics, accounting and tax reporting application that protects your privacy
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      django-userena  

                                                                                                      • A customizable user management system for Django web applications.  
                                                                                                      • Supports user profiles, account activation, and more.  
                                                                                                      • Provides an extensible framework for authentication and user registration.  

                                                                                                      django-userenaby bread-and-pepper

                                                                                                      Python doticonstar image 1260 doticonVersion:v2.0.1doticon
                                                                                                      License: Permissive (BSD-3-Clause)

                                                                                                      Accounts for Django made beautifully simple

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                django-userenaby bread-and-pepper

                                                                                                                Python doticon star image 1260 doticonVersion:v2.0.1doticon License: Permissive (BSD-3-Clause)

                                                                                                                Accounts for Django made beautifully simple
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          fava  

                                                                                                                          • A web interface for Beancount, designed for easy financial data visualization.  
                                                                                                                          • Offers interactive charts and graphs for financial analysis.  
                                                                                                                          • Supports custom reporting and budget tracking.  

                                                                                                                          favaby beancount

                                                                                                                          Python doticonstar image 1570 doticonVersion:Currentdoticon
                                                                                                                          License: Permissive (MIT)

                                                                                                                          Fava - web interface for Beancount

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    favaby beancount

                                                                                                                                    Python doticon star image 1570 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                    Fava - web interface for Beancount
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              invoice2data  

                                                                                                                                              • A Python library for extracting structured data from invoices.  
                                                                                                                                              • Supports many invoice formats and templates.  
                                                                                                                                              • Can output data in various formats, including JSON and CSV.  

                                                                                                                                              invoice2databy invoice-x

                                                                                                                                              Python doticonstar image 1453 doticonVersion:v0.4.4doticon
                                                                                                                                              License: Permissive (MIT)

                                                                                                                                              Extract structured data from PDF invoices

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        invoice2databy invoice-x

                                                                                                                                                        Python doticon star image 1453 doticonVersion:v0.4.4doticon License: Permissive (MIT)

                                                                                                                                                        Extract structured data from PDF invoices
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  QRLJacking  

                                                                                                                                                                  • A security tool for testing QR code-based attacks.  
                                                                                                                                                                  • Demonstrates vulnerabilities related to QR code authentication.  
                                                                                                                                                                  • Raises awareness about the potential risks of QR code usage.  

                                                                                                                                                                  QRLJackingby OWASP

                                                                                                                                                                  Python doticonstar image 1170 doticonVersion:Currentdoticon
                                                                                                                                                                  License: Strong Copyleft (GPL-3.0)

                                                                                                                                                                  QRLJacking or Quick Response Code Login Jacking is a simple-but-nasty attack vector affecting all the applications that relays on “Login with QR code” feature as a secure way to login into accounts which aims for hijacking users session by attackers.

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            QRLJackingby OWASP

                                                                                                                                                                            Python doticon star image 1170 doticonVersion:Currentdoticon License: Strong Copyleft (GPL-3.0)

                                                                                                                                                                            QRLJacking or Quick Response Code Login Jacking is a simple-but-nasty attack vector affecting all the applications that relays on “Login with QR code” feature as a secure way to login into accounts which aims for hijacking users session by attackers.
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse

                                                                                                                                                                                      receipt-parser  

                                                                                                                                                                                      • A Python library for parsing receipt data from images or scanned documents.  
                                                                                                                                                                                      • Extracts key information such as dates, items, prices, and taxes.  
                                                                                                                                                                                      • Can use it for expense tracking and accounting.  
                                                                                                                                                                                      Python doticonstar image 562 doticonVersion:Currentdoticon
                                                                                                                                                                                      License: Permissive (Apache-2.0)

                                                                                                                                                                                      A supermarket receipt parser written in Python using tesseract OCR

                                                                                                                                                                                      Support
                                                                                                                                                                                        Quality
                                                                                                                                                                                          Security
                                                                                                                                                                                            License
                                                                                                                                                                                              Reuse

                                                                                                                                                                                                receipt-parserby mre

                                                                                                                                                                                                Python doticon star image 562 doticonVersion:Currentdoticon License: Permissive (Apache-2.0)

                                                                                                                                                                                                A supermarket receipt parser written in Python using tesseract OCR
                                                                                                                                                                                                Support
                                                                                                                                                                                                  Quality
                                                                                                                                                                                                    Security
                                                                                                                                                                                                      License
                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                          django-ledger  

                                                                                                                                                                                                          • A Django-based double-entry accounting system.  
                                                                                                                                                                                                          • Provides a user-friendly web interface for managing financial data.  
                                                                                                                                                                                                          • Supports many currencies and account types.  

                                                                                                                                                                                                          django-ledgerby arrobalytics

                                                                                                                                                                                                          Python doticonstar image 645 doticonVersion:v0.5.3.2doticon
                                                                                                                                                                                                          License: Strong Copyleft (GPL-3.0)

                                                                                                                                                                                                          A bookkeeping & financial analysis engine for the Django Framework.

                                                                                                                                                                                                          Support
                                                                                                                                                                                                            Quality
                                                                                                                                                                                                              Security
                                                                                                                                                                                                                License
                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                    django-ledgerby arrobalytics

                                                                                                                                                                                                                    Python doticon star image 645 doticonVersion:v0.5.3.2doticon License: Strong Copyleft (GPL-3.0)

                                                                                                                                                                                                                    A bookkeeping & financial analysis engine for the Django Framework.
                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                          License
                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                              koalixcrm  

                                                                                                                                                                                                                              • A CRM (Customer Relationship Management) system tailored for small and medium-sized businesses.  
                                                                                                                                                                                                                              • Offers features for managing contacts, sales, and projects.  
                                                                                                                                                                                                                              • Provides a customizable workflow engine.  

                                                                                                                                                                                                                              koalixcrmby KoalixSwitzerland

                                                                                                                                                                                                                              Python doticonstar image 477 doticonVersion:V0.13doticon
                                                                                                                                                                                                                              License: Permissive (BSD-3-Clause)

                                                                                                                                                                                                                              koalixcrm is an Open Source Python CRM and ERP based on django

                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                        koalixcrmby KoalixSwitzerland

                                                                                                                                                                                                                                        Python doticon star image 477 doticonVersion:V0.13doticon License: Permissive (BSD-3-Clause)

                                                                                                                                                                                                                                        koalixcrm is an Open Source Python CRM and ERP based on django
                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                Reuse

                                                                                                                                                                                                                                                  lnbits  

                                                                                                                                                                                                                                                  • A Lightning Network wallet and application platform for Bitcoin.  
                                                                                                                                                                                                                                                  • Supports Lightning Network payments and microtransactions.  
                                                                                                                                                                                                                                                  • Offers a user-friendly interface for managing Lightning wallets.  

                                                                                                                                                                                                                                                  lnbitsby lnbits

                                                                                                                                                                                                                                                  Python doticonstar image 780 doticonVersion:0.10.8doticon
                                                                                                                                                                                                                                                  License: Permissive (MIT)

                                                                                                                                                                                                                                                  LNbits, free and open-source Lightning wallet and accounts system.

                                                                                                                                                                                                                                                  Support
                                                                                                                                                                                                                                                    Quality
                                                                                                                                                                                                                                                      Security
                                                                                                                                                                                                                                                        License
                                                                                                                                                                                                                                                          Reuse

                                                                                                                                                                                                                                                            lnbitsby lnbits

                                                                                                                                                                                                                                                            Python doticon star image 780 doticonVersion:0.10.8doticon License: Permissive (MIT)

                                                                                                                                                                                                                                                            LNbits, free and open-source Lightning wallet and accounts system.
                                                                                                                                                                                                                                                            Support
                                                                                                                                                                                                                                                              Quality
                                                                                                                                                                                                                                                                Security
                                                                                                                                                                                                                                                                  License
                                                                                                                                                                                                                                                                    Reuse

                                                                                                                                                                                                                                                                      django-hordak  

                                                                                                                                                                                                                                                                      • A double-entry accounting library for Django web applications.  
                                                                                                                                                                                                                                                                      • Provides a Django-friendly API for managing financial data.  
                                                                                                                                                                                                                                                                      • Supports ledger-style accounting and reconciliation.  

                                                                                                                                                                                                                                                                      django-hordakby adamcharnock

                                                                                                                                                                                                                                                                      Python doticonstar image 196 doticonVersion:Currentdoticon
                                                                                                                                                                                                                                                                      License: Permissive (MIT)

                                                                                                                                                                                                                                                                      Double entry accounting in Django

                                                                                                                                                                                                                                                                      Support
                                                                                                                                                                                                                                                                        Quality
                                                                                                                                                                                                                                                                          Security
                                                                                                                                                                                                                                                                            License
                                                                                                                                                                                                                                                                              Reuse

                                                                                                                                                                                                                                                                                django-hordakby adamcharnock

                                                                                                                                                                                                                                                                                Python doticon star image 196 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                                                                                                                                                Double entry accounting in Django
                                                                                                                                                                                                                                                                                Support
                                                                                                                                                                                                                                                                                  Quality
                                                                                                                                                                                                                                                                                    Security
                                                                                                                                                                                                                                                                                      License
                                                                                                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                                                                                                          bookkeeper  

                                                                                                                                                                                                                                                                                          • A financial ledger and accounting tool.  
                                                                                                                                                                                                                                                                                          • Offers double-entry bookkeeping capabilities.  
                                                                                                                                                                                                                                                                                          • Supports importing data from various formats, including CSV and QIF.  

                                                                                                                                                                                                                                                                                          bookkeeperby SwingTix

                                                                                                                                                                                                                                                                                          Python doticonstar image 166 doticonVersion:Currentdoticon
                                                                                                                                                                                                                                                                                          License: Strong Copyleft (AGPL-3.0)

                                                                                                                                                                                                                                                                                          A double-entry bookkeeping system developed for use at SwingTix.ca.

                                                                                                                                                                                                                                                                                          Support
                                                                                                                                                                                                                                                                                            Quality
                                                                                                                                                                                                                                                                                              Security
                                                                                                                                                                                                                                                                                                License
                                                                                                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                                                                                                    bookkeeperby SwingTix

                                                                                                                                                                                                                                                                                                    Python doticon star image 166 doticonVersion:Currentdoticon License: Strong Copyleft (AGPL-3.0)

                                                                                                                                                                                                                                                                                                    A double-entry bookkeeping system developed for use at SwingTix.ca.
                                                                                                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                                                                                                          License
                                                                                                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                                                                                                              django-invoice  

                                                                                                                                                                                                                                                                                                              • A Django app for creating and managing invoices.  
                                                                                                                                                                                                                                                                                                              • Provides features for invoice generation, tracking, and payment.  
                                                                                                                                                                                                                                                                                                              • Offers customizable invoice templates and PDF generation.  

                                                                                                                                                                                                                                                                                                              django-invoiceby simonluijk

                                                                                                                                                                                                                                                                                                              Python doticonstar image 161 doticonVersion:Currentdoticon
                                                                                                                                                                                                                                                                                                              License: Others (Non-SPDX)

                                                                                                                                                                                                                                                                                                              Django invoicing app

                                                                                                                                                                                                                                                                                                              Support
                                                                                                                                                                                                                                                                                                                Quality
                                                                                                                                                                                                                                                                                                                  Security
                                                                                                                                                                                                                                                                                                                    License
                                                                                                                                                                                                                                                                                                                      Reuse

                                                                                                                                                                                                                                                                                                                        django-invoiceby simonluijk

                                                                                                                                                                                                                                                                                                                        Python doticon star image 161 doticonVersion:Currentdoticon License: Others (Non-SPDX)

                                                                                                                                                                                                                                                                                                                        Django invoicing app
                                                                                                                                                                                                                                                                                                                        Support
                                                                                                                                                                                                                                                                                                                          Quality
                                                                                                                                                                                                                                                                                                                            Security
                                                                                                                                                                                                                                                                                                                              License
                                                                                                                                                                                                                                                                                                                                Reuse

                                                                                                                                                                                                                                                                                                                                  FAQ:  

                                                                                                                                                                                                                                                                                                                                  1. Which data sources can data scientists use in Python accounting libraries?  

                                                                                                                                                                                                                                                                                                                                  Data scientists who use accounting libraries can access many data sources in Python. You can find information in files, databases, web scraping, and market data providers. Data scientists study financial data from different sources to fully understand it.  


                                                                                                                                                                                                                                                                                                                                  2. Which Python Libraries are most commonly used when working with financial data?  

                                                                                                                                                                                                                                                                                                                                  The most used Python libraries for financial data are Pandas and NumPy. Pandas are great for manipulating and analyzing data, especially financial data. It helps clean, transform, and organize the data. NumPy is great for financial numerical computations. It supports operations on arrays, matrices, and multidimensional data. Together, Pandas and NumPy form a powerful duo for financial data analysis.  


                                                                                                                                                                                                                                                                                                                                  3. What data types can the Python Library Numpy import and manipulate?  

                                                                                                                                                                                                                                                                                                                                  Financial data scientists find NumPy invaluable because it can handle all data types. This software works with numbers and helps with organizing and changing data sets. You can easily import financial data into NumPy arrays for analysis and computation.  


                                                                                                                                                                                                                                                                                                                                  4. How can a Data Scientist best use financial market datasets?  

                                                                                                                                                                                                                                                                                                                                  Data scientists should employ a multifaceted approach to harness financial market datasets. To understand data, we clean and structure it. We analyze time series to find trends. We use machine learning for forecasting and risk assessment. We use data visualization to show insights. These methods help data scientists make smart decisions and achieve financial success.  


                                                                                                                                                                                                                                                                                                                                  5. Can people use Python in an open source project to make their accounting apps?  

                                                                                                                                                                                                                                                                                                                                  Users can create their accounting apps with Python using open-source projects. Notable examples include "Ledger" and "Beancount." These libraries form a base for double-entry accounting and financial management. You can adjust them to fit specific accounting requirements. You can customize your accounting solutions and enjoy the open-source community's contributions.  


                                                                                                                                                                                                                                                                                                                                  6. Is Django better than other frameworks for creating Accounting Apps with Python?  

                                                                                                                                                                                                                                                                                                                                  Django is a web framework that helps with developing accounting applications. It has advantages and can integrate Python libraries. It excels in providing a robust and secure foundation for web-based financial tools. Django offers built-in features for user authentication, data security, and efficient database management. You can use Python libraries to create secure and user-friendly accounting applications. They are scalable, modular, and great for financial data analysis and management.