Skip to content

🏒 PYSYSTEM - Professional Business Management System with Python & Tkinter. Features: Company CRUD, Product catalog, Sales orders, BrasilAPI integration, PDF reports & Clean Architecture

Notifications You must be signed in to change notification settings

teusdrz/PYSYSTEM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏒 PYSYSTEM - Business Management System

Python Tkinter License Tests Coverage

A comprehensive Python desktop application for business management with Clean Architecture, featuring company registration, product management, and sales order processing with external API integrations.

🎯 Overview

PYSYSTEM is a modern desktop business management application built with Python and Tkinter, implementing Domain-Driven Design (DDD) and Clean Architecture principles. The system provides comprehensive CRUD operations for companies, products, and sales orders, with advanced features like address autocomplete and document validation through Brazilian APIs.

✨ Key Features

🏒 Company Management

  • Complete CRUD Operations - Create, read, update, and delete companies
  • Smart Validation - CPF/CNPJ validation with verification digits
  • Address Autocomplete - Automatic address completion using CEP via BrasilAPI
  • Contact Management - Email and phone validation with proper formatting
  • Document Integration - Real-time CNPJ lookup with company data retrieval

πŸ“¦ Product Management

  • Excel Integration - Import products from .xlsx/.xls files with validation
  • Inventory Control - Real-time stock management with oversell prevention
  • Advanced Search - Search by name, SKU, or any product attribute
  • Bulk Operations - Mass updates and data management capabilities
  • Category Management - Product categorization and organization

πŸ“Š Sales Order Management

  • Complete Order Processing - From creation to completion
  • Stock Integration - Automatic inventory updates and validation
  • Dynamic Calculations - Real-time subtotals and totals
  • Multi-item Orders - Support for complex orders with multiple products
  • Order History - Complete audit trail and order tracking

🌐 External Integrations

  • BrasilAPI Integration - CEP, CNPJ, and bank data validation
  • Intelligent Caching - Performance optimization with automatic cache management
  • Fallback Mechanisms - Robust error handling with offline capabilities
  • Rate Limiting - Respectful API usage with built-in throttling

🎨 User Interface

  • Corporate Theme - Professional and consistent design
  • Responsive Layout - Adaptive to different screen sizes
  • Intuitive Navigation - Clear workflow and user experience
  • Real-time Feedback - Immediate validation and status updates

πŸš€ Quick Start

Prerequisites

  • Python 3.8+
  • Virtual environment (recommended)

Installation

  1. Clone the repository

    git clone https://github.com/teusdrz/PYSYSTEM.git
    cd PYSYSTEM
  2. Create virtual environment

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  3. Install dependencies

    pip install -r requirements.txt
  4. Run the application

    python run_system.py

πŸ“ Project Structure

PYSYSTEM/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ application/          # Use cases and DTOs
β”‚   β”‚   β”œβ”€β”€ dtos/            # Data Transfer Objects
β”‚   β”‚   └── use_cases/       # Business logic
β”‚   β”œβ”€β”€ domain/              # Core business entities
β”‚   β”‚   β”œβ”€β”€ entities/        # Domain models
β”‚   β”‚   β”œβ”€β”€ repositories/    # Repository interfaces
β”‚   β”‚   └── services/        # Domain services
β”‚   β”œβ”€β”€ infrastructure/      # External concerns
β”‚   β”‚   β”œβ”€β”€ external_services/  # API integrations
β”‚   β”‚   β”œβ”€β”€ persistence/     # Data storage
β”‚   β”‚   └── report_generators/  # Report services
β”‚   β”œβ”€β”€ presentation/        # UI layer
β”‚   β”‚   β”œβ”€β”€ controllers/     # Application controllers
β”‚   β”‚   └── gui/            # Tkinter interface
β”‚   └── shared/             # Common utilities
β”œβ”€β”€ data/                   # JSON data files
β”œβ”€β”€ assets/                # Icons and resources
β”œβ”€β”€ tests/                 # Test suite
└── requirements.txt       # Python dependencies

πŸ—οΈ Architecture

This project follows Clean Architecture principles:

  • Domain Layer: Core business logic and entities
  • Application Layer: Use cases and application services
  • Infrastructure Layer: External services and data persistence
  • Presentation Layer: User interface and controllers

πŸ’» Usage

Main Features

  1. Companies: Manage customer and supplier information
  2. Products: Track inventory with stock levels and pricing
  3. Sales Orders: Create orders and manage order items
  4. BrasilAPI: Automatic address lookup and data validation

Navigation

  • Use the tab interface to switch between different modules
  • All forms include validation and error handling
  • Data is automatically saved to JSON files in the data/ directory

πŸ§ͺ Testing

The project includes comprehensive test suites:

# Run ultra comprehensive tests
python ultra_comprehensive_gui_tests.py

# Run automated GUI tests  
python automated_gui_tests.py

Test Results: 82.3% success rate (93/113 tests passing)

πŸ”§ Configuration

The system uses JSON files for data storage located in the data/ directory:

  • companies.json - Company data
  • products.json - Product catalog
  • sales_orders.json - Sales order records

πŸ“Š API Integration

BrasilAPI Integration:

  • CEP address lookup
  • CNPJ validation
  • Bank information retrieval
  • Product categorization suggestions

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘¨β€πŸ’» Author

Matheus Souza

πŸ“ˆ Status

  • βœ… Core functionality implemented
  • βœ… GUI interface complete
  • βœ… Data persistence working
  • βœ… API integration functional
  • ⚠️ Minor optimizations pending

Built with ❀️ using Python and Clean Architecture principles

About

🏒 PYSYSTEM - Professional Business Management System with Python & Tkinter. Features: Company CRUD, Product catalog, Sales orders, BrasilAPI integration, PDF reports & Clean Architecture

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages