Git Product home page Git Product logo

gross-net-calculator-switzerland's Introduction

Gross Net Calculator Switzerland

Coverage Quality Gate Status

The CLI-based tool is designed to help users calculate approximate monthly net salary from their gross income in Switzerland. This tool utilizes Selenium, a web browser automation tool, to replicate user interactions with the Lohncomputer website.

Python Version License

Project Overview

This Gross Net Calculator is tailored for Swiss residents, offering detailed net salary calculations from gross income. It employs Python and integrates libraries like click, InquirerPy, tabulate, and selenium for a seamless command-line experience. The application uniquely utilizes Selenium to emulate user interactions with the Lohncomputer website.

Demo

App Demo

Built With

  • Python - The core programming language used.
  • Poetry - Dependency Management and Packaging.
  • Click - Creates a command-line interface.
  • InquirerPy - Simplifies creating interactive CLI prompts.
  • Tabulate - Formats tabular data.
  • Selenium - Automates web browser interaction.

Getting Started

These instructions will guide you through setting up the project on your local machine for development and testing purposes.

Prerequisites

  • Python 3.11: Make sure you have Python 3.11 installed on your system.
  • Firefox Browser: Required for Selenium automation. Make sure Firefox is installed on your system.
  • Poetry: Used for managing dependencies. To install Poetry please refer to the official documentation.

Installation

  1. Clone the repository:
git clone https://github.com/loncarales/gross-net-calculator-switzerland.git
cd gross-net-calculator-switzerland
  1. Use Makefile for setup

The project includes a Makefile to simplify common tasks such as installing dependencies, running tests, and formatting/linting code.

To install the project dependencies, run:

make install

Usage

Run the Gross Net Calculator using the Makefile:

make run

You will be prompted to enter your gross monthly wage in CHF and your age in years. Then, you will be asked to provide additional information such as church membership, status, children, and canton of residence. The program will automate interactions with the Lohncomputer website to provide approximate net salary calculations based on the provided inputs and display the results in a tabular format.

Makefile Commands

The Makefile provides convenient commands for development and testing:

  • Install Dependencies: make install
  • Run Application: make run
  • Run Tests: make test
  • Generate Coverage Report: make coverage
  • Format Code: make format
  • Lint Code: make lint

Contributing

Contributions to this project are welcome! Please feel free to report bugs, suggest features, improve documentation, or submit pull requests. Follow the standard fork-and-pull request workflow.

License

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

Acknowledgments

  • Special thanks to all the open-source libraries and contributors that make this project possible.
  • Gratitude to the community for their valuable feedback and suggestions.

Developed with ❤️ by Aleš Lončar

SonarCloud

gross-net-calculator-switzerland's People

Contributors

loncarales avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.