tally-integration


Nametally-integration JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/aadil-sengupta/Tally.Py
SummaryA comprehensive Python library for integrating with Tally accounting software
upload_time2025-08-07 02:32:54
maintainerNone
docs_urlNone
authorAadil Sengupta
requires_python>=3.7
licenseMIT
keywords tally accounting api xml integration erp
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Tally Integration Library

## Overview

This library provides a comprehensive collection of Python functions and XML structures for integrating with TallyPrime, the leading accounting and business management software. It serves as a developer toolkit for building applications, automations, and integrations that interact with Tally's XML API.

The library includes ready-to-use functions for common Tally operations, well-structured XML request templates, and extensive documentation to help developers create robust Tally-based solutions without having to learn the intricacies of Tally's XML API from scratch.

## What's Included

### Core Components

**Python TallyClient Class (`xmlFunctions.py`)**: A comprehensive client library with methods for:
- **Data Retrieval**: Get companies, ledgers, stock items, vouchers, groups, and reports
- **Master Data Management**: Create and manage ledgers, stock items, companies, and units  
- **Transaction Processing**: Create vouchers (receipts, journals), update and cancel transactions
- **Reports & Analytics**: Generate sales reports, payslips, bill receivables, stock aging, and more
- **Company Configuration**: Set up GST, configure features, and manage company settings

**Experimental TDL Files**: A collection of cutting-edge Tally Definition Language (TDL) files that push the boundaries of Tally integration:
- **Advanced API Integrations**: TDLs that can be loaded directly into Tally for enhanced control
- **Custom Function Libraries**: Extended functionality beyond default Tally capabilities  
- **Voucher Processing**: Advanced voucher manipulation and filtering
- **Company Management**: Automated company import and configuration
- **Report Customization**: Custom report definitions and data extraction
- **AI Integration Experiments**: TDLs designed to work with AI services (Claude, AI Studio)

These experimental TDLs represent a new approach to Tally integration - by placing them in specific directories and executing through APIs, developers can gain significantly more control over Tally than what's typically allowed by default.

**Documentation & References**: Comprehensive developer materials including:
- **Tally Developer Reference Guide**: Complete technical documentation for TDL and XML API
- **TDL Reference Manual**: Official reference from a previous Tally version (PDF format)
- **Tally Functions Guide**: Comprehensive PDF documenting all available Tally functions
- **Troubleshooting Guides**: Common issues and solutions for Tally integration
- **XML API Documentation**: Detailed specifications for Tally's XML interface

## Experimental TDL Integration

### Advanced Tally Control

This library includes experimental TDL files that represent a breakthrough approach to Tally integration. Unlike traditional XML API calls, these TDLs can be:

- **Dynamically Loaded**: Placed in specific Tally directories and loaded at runtime
- **API Executed**: Triggered through API calls for enhanced automation
- **Deeply Integrated**: Access internal Tally functions not exposed through standard XML API
- **Highly Customizable**: Create entirely new workflows and business logic within Tally

### Current Experimental Features

The experimental TDL collection includes:
- **AI Service Integration**: Direct connections to Claude and AI Studio for intelligent processing
- **Advanced Voucher Operations**: Complex filtering, searching, and manipulation capabilities
- **Custom Report Generation**: Reports that go beyond standard Tally reporting limitations  
- **Company Automation**: Automated company setup and configuration processes
- **Extended API Functions**: Access to Tally functions not available through traditional methods

**Note**: These experimental TDLs are still under active development and may require specific Tally configurations or versions to function properly.

## Installation

### From Wheel File

Install directly from the pre-built wheel file:

```bash
pip install dist/tally_integration-1.0.0-py3-none-any.whl
```

### From Source

Clone and install from the repository:

```bash
# Clone the repository
git clone https://github.com/aadil-sengupta/Tally.Py.git
cd Tally.Py

# Install the package
pip install -e .
```

### Requirements
- Python 3.7 or higher
- Tally.ERP 9 or TallyPrime with XML API enabled
- Network access to Tally server (default: localhost:9000)
- `requests` library (automatically installed as dependency)

## Quick Start

```python
from tally_integration import TallyClient, TallyConnectionError

# Initialize client (default: http://localhost:9000)
client = TallyClient()

# For remote Tally server:
# client = TallyClient(tally_url="http://192.168.1.100", tally_port=9000)

try:
    # Test connection
    if client.test_connection():
        print("✓ Connected to Tally!")
        
        # Get company information
        company_info = client.get_current_company()
        print("Current company info retrieved")
        
        # Create a new ledger
        response = client.create_ledger(
            name="Test API Customer",
            parent="Sundry Debtors",
            address="123 Test Street, Test City",
            mobile="9999999999"
        )
        print("✓ New ledger created!")
        
    else:
        print("✗ Cannot connect to Tally. Please ensure Tally is running.")
        
except TallyConnectionError as e:
    print(f"Connection error: {e}")
```

For more examples, see the `examples/` directory and check `DOCUMENTATION.md` for comprehensive API reference.

## Key Features

*   **Complete XML API Coverage**: Functions for most common Tally operations including data export, import, and manipulation
*   **Ready-to-Use**: Pre-built functions that handle XML construction and parsing
*   **Extensible**: Well-structured code that can be easily extended for custom requirements
*   **Battle-Tested**: Most functions have been tested with real Tally instances
*   **Developer-Friendly**: Clear function signatures, comprehensive docstrings, and logical organization

## Function Categories

### Data Collections & Reports
- Company and ledger listings
- Stock item and voucher collections  
- Sales reports and financial statements
- Stock aging and inventory reports
- Custom filtered data retrieval

### Master Data Operations
- Create/update/delete ledgers and groups
- Stock item and unit management
- Company creation and configuration
- GST setup and compliance features

### Transaction Management  
- Voucher creation (sales, purchase, receipt, payment, journal)
- Transaction updates and cancellations
- Bulk data imports and exports
- Real-time data synchronization

### Administrative Functions
- Company configuration and feature toggles
- User management and access control
- License information and system status
- Data validation and error handling

## Target Developers

This library is designed for:

*   **Software Developers**: Building ERP integrations, accounting software, or business applications
*   **System Integrators**: Connecting Tally with e-commerce platforms, CRMs, or other business systems  
*   **Automation Engineers**: Creating scripts for data migration, report generation, or routine operations
*   **Business Application Developers**: Building custom Tally-based solutions for specific industries
*   **API Integration Specialists**: Working on real-time data exchange between Tally and external systems

## Important Notes

**Testing Status**: Most functions have been tested and work reliably, but some may contain bugs or edge cases that need handling in production environments. Thorough testing is recommended before deploying in critical business scenarios.

**Version Compatibility**: Functions are designed primarily for TallyPrime, with many also compatible with Tally.ERP 9. Always verify compatibility with your specific Tally version.

**API Dependencies**: Requires Tally to be running with XML API enabled (typically on port 9000). Network connectivity and proper Tally configuration are prerequisites.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/aadil-sengupta/Tally.Py",
    "name": "tally-integration",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "Aadil Sengupta <aadilsengupta27@gmail.com>",
    "keywords": "tally, accounting, api, xml, integration, erp",
    "author": "Aadil Sengupta",
    "author_email": "Aadil Sengupta <aadilsengupta27@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/55/cd/9326d5e575c5c95483c204b08bbc2e668f1f3d42da12dc9e471329e1885c/tally_integration-1.0.0.tar.gz",
    "platform": null,
    "description": "# Tally Integration Library\n\n## Overview\n\nThis library provides a comprehensive collection of Python functions and XML structures for integrating with TallyPrime, the leading accounting and business management software. It serves as a developer toolkit for building applications, automations, and integrations that interact with Tally's XML API.\n\nThe library includes ready-to-use functions for common Tally operations, well-structured XML request templates, and extensive documentation to help developers create robust Tally-based solutions without having to learn the intricacies of Tally's XML API from scratch.\n\n## What's Included\n\n### Core Components\n\n**Python TallyClient Class (`xmlFunctions.py`)**: A comprehensive client library with methods for:\n- **Data Retrieval**: Get companies, ledgers, stock items, vouchers, groups, and reports\n- **Master Data Management**: Create and manage ledgers, stock items, companies, and units  \n- **Transaction Processing**: Create vouchers (receipts, journals), update and cancel transactions\n- **Reports & Analytics**: Generate sales reports, payslips, bill receivables, stock aging, and more\n- **Company Configuration**: Set up GST, configure features, and manage company settings\n\n**Experimental TDL Files**: A collection of cutting-edge Tally Definition Language (TDL) files that push the boundaries of Tally integration:\n- **Advanced API Integrations**: TDLs that can be loaded directly into Tally for enhanced control\n- **Custom Function Libraries**: Extended functionality beyond default Tally capabilities  \n- **Voucher Processing**: Advanced voucher manipulation and filtering\n- **Company Management**: Automated company import and configuration\n- **Report Customization**: Custom report definitions and data extraction\n- **AI Integration Experiments**: TDLs designed to work with AI services (Claude, AI Studio)\n\nThese experimental TDLs represent a new approach to Tally integration - by placing them in specific directories and executing through APIs, developers can gain significantly more control over Tally than what's typically allowed by default.\n\n**Documentation & References**: Comprehensive developer materials including:\n- **Tally Developer Reference Guide**: Complete technical documentation for TDL and XML API\n- **TDL Reference Manual**: Official reference from a previous Tally version (PDF format)\n- **Tally Functions Guide**: Comprehensive PDF documenting all available Tally functions\n- **Troubleshooting Guides**: Common issues and solutions for Tally integration\n- **XML API Documentation**: Detailed specifications for Tally's XML interface\n\n## Experimental TDL Integration\n\n### Advanced Tally Control\n\nThis library includes experimental TDL files that represent a breakthrough approach to Tally integration. Unlike traditional XML API calls, these TDLs can be:\n\n- **Dynamically Loaded**: Placed in specific Tally directories and loaded at runtime\n- **API Executed**: Triggered through API calls for enhanced automation\n- **Deeply Integrated**: Access internal Tally functions not exposed through standard XML API\n- **Highly Customizable**: Create entirely new workflows and business logic within Tally\n\n### Current Experimental Features\n\nThe experimental TDL collection includes:\n- **AI Service Integration**: Direct connections to Claude and AI Studio for intelligent processing\n- **Advanced Voucher Operations**: Complex filtering, searching, and manipulation capabilities\n- **Custom Report Generation**: Reports that go beyond standard Tally reporting limitations  \n- **Company Automation**: Automated company setup and configuration processes\n- **Extended API Functions**: Access to Tally functions not available through traditional methods\n\n**Note**: These experimental TDLs are still under active development and may require specific Tally configurations or versions to function properly.\n\n## Installation\n\n### From Wheel File\n\nInstall directly from the pre-built wheel file:\n\n```bash\npip install dist/tally_integration-1.0.0-py3-none-any.whl\n```\n\n### From Source\n\nClone and install from the repository:\n\n```bash\n# Clone the repository\ngit clone https://github.com/aadil-sengupta/Tally.Py.git\ncd Tally.Py\n\n# Install the package\npip install -e .\n```\n\n### Requirements\n- Python 3.7 or higher\n- Tally.ERP 9 or TallyPrime with XML API enabled\n- Network access to Tally server (default: localhost:9000)\n- `requests` library (automatically installed as dependency)\n\n## Quick Start\n\n```python\nfrom tally_integration import TallyClient, TallyConnectionError\n\n# Initialize client (default: http://localhost:9000)\nclient = TallyClient()\n\n# For remote Tally server:\n# client = TallyClient(tally_url=\"http://192.168.1.100\", tally_port=9000)\n\ntry:\n    # Test connection\n    if client.test_connection():\n        print(\"\u2713 Connected to Tally!\")\n        \n        # Get company information\n        company_info = client.get_current_company()\n        print(\"Current company info retrieved\")\n        \n        # Create a new ledger\n        response = client.create_ledger(\n            name=\"Test API Customer\",\n            parent=\"Sundry Debtors\",\n            address=\"123 Test Street, Test City\",\n            mobile=\"9999999999\"\n        )\n        print(\"\u2713 New ledger created!\")\n        \n    else:\n        print(\"\u2717 Cannot connect to Tally. Please ensure Tally is running.\")\n        \nexcept TallyConnectionError as e:\n    print(f\"Connection error: {e}\")\n```\n\nFor more examples, see the `examples/` directory and check `DOCUMENTATION.md` for comprehensive API reference.\n\n## Key Features\n\n*   **Complete XML API Coverage**: Functions for most common Tally operations including data export, import, and manipulation\n*   **Ready-to-Use**: Pre-built functions that handle XML construction and parsing\n*   **Extensible**: Well-structured code that can be easily extended for custom requirements\n*   **Battle-Tested**: Most functions have been tested with real Tally instances\n*   **Developer-Friendly**: Clear function signatures, comprehensive docstrings, and logical organization\n\n## Function Categories\n\n### Data Collections & Reports\n- Company and ledger listings\n- Stock item and voucher collections  \n- Sales reports and financial statements\n- Stock aging and inventory reports\n- Custom filtered data retrieval\n\n### Master Data Operations\n- Create/update/delete ledgers and groups\n- Stock item and unit management\n- Company creation and configuration\n- GST setup and compliance features\n\n### Transaction Management  \n- Voucher creation (sales, purchase, receipt, payment, journal)\n- Transaction updates and cancellations\n- Bulk data imports and exports\n- Real-time data synchronization\n\n### Administrative Functions\n- Company configuration and feature toggles\n- User management and access control\n- License information and system status\n- Data validation and error handling\n\n## Target Developers\n\nThis library is designed for:\n\n*   **Software Developers**: Building ERP integrations, accounting software, or business applications\n*   **System Integrators**: Connecting Tally with e-commerce platforms, CRMs, or other business systems  \n*   **Automation Engineers**: Creating scripts for data migration, report generation, or routine operations\n*   **Business Application Developers**: Building custom Tally-based solutions for specific industries\n*   **API Integration Specialists**: Working on real-time data exchange between Tally and external systems\n\n## Important Notes\n\n**Testing Status**: Most functions have been tested and work reliably, but some may contain bugs or edge cases that need handling in production environments. Thorough testing is recommended before deploying in critical business scenarios.\n\n**Version Compatibility**: Functions are designed primarily for TallyPrime, with many also compatible with Tally.ERP 9. Always verify compatibility with your specific Tally version.\n\n**API Dependencies**: Requires Tally to be running with XML API enabled (typically on port 9000). Network connectivity and proper Tally configuration are prerequisites.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A comprehensive Python library for integrating with Tally accounting software",
    "version": "1.0.0",
    "project_urls": {
        "Bug Reports": "https://github.com/aadil-sengupta/Tally.Py/issues",
        "Documentation": "https://github.com/aadil-sengupta/Tally.Py/blob/main/README.md",
        "Homepage": "https://github.com/aadil-sengupta/Tally.Py",
        "Source": "https://github.com/aadil-sengupta/Tally.Py"
    },
    "split_keywords": [
        "tally",
        " accounting",
        " api",
        " xml",
        " integration",
        " erp"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c549961c7f12f545648deaf7f1e037bcc7f41499caa0d6e3c4d0f47834ae37c8",
                "md5": "ace46fe04cc3c858aa5a20c92de35b9d",
                "sha256": "739196317b0a09974b88952035f16eee4738665b0a8c1678a90272a6f3986b82"
            },
            "downloads": -1,
            "filename": "tally_integration-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ace46fe04cc3c858aa5a20c92de35b9d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 25661,
            "upload_time": "2025-08-07T02:31:29",
            "upload_time_iso_8601": "2025-08-07T02:31:29.338806Z",
            "url": "https://files.pythonhosted.org/packages/c5/49/961c7f12f545648deaf7f1e037bcc7f41499caa0d6e3c4d0f47834ae37c8/tally_integration-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "55cd9326d5e575c5c95483c204b08bbc2e668f1f3d42da12dc9e471329e1885c",
                "md5": "f1c8e11ed2872145e91911cadfd3b51f",
                "sha256": "748f998fd08e304a5e6214af4be55c3ba97915a9fcdbc7a851d32ed308c4004e"
            },
            "downloads": -1,
            "filename": "tally_integration-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f1c8e11ed2872145e91911cadfd3b51f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3713664,
            "upload_time": "2025-08-07T02:32:54",
            "upload_time_iso_8601": "2025-08-07T02:32:54.231945Z",
            "url": "https://files.pythonhosted.org/packages/55/cd/9326d5e575c5c95483c204b08bbc2e668f1f3d42da12dc9e471329e1885c/tally_integration-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-07 02:32:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "aadil-sengupta",
    "github_project": "Tally.Py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "tally-integration"
}
        
Elapsed time: 2.53092s