Code Monkey home page Code Monkey logo

lenovo-warranty-checker's Introduction

Lenovo Warranty Checker

Description

This project consists of two scripts, LenovoWarantyOne.py and LenovoWaranty.py, designed to interact with Lenovo's API to retrieve product and warranty information based on serial numbers. The LenovoWarantyOne.py script processes a single serial number provided as a command-line argument, while LenovoWaranty.py processes multiple serial numbers from a CSV file and updates the CSV with the retrieved information.

Requirements

  • Python 3.x
  • requests library

You can install the requests library using pip:

pip install requests

Files

1. LenovoWarantyOne.py

This script fetches and displays product and warranty information for a single Lenovo product based on its serial number.

python LenovoWarantyOne.py <serial_number>

2. LenovoWaranty.py

This script processes a CSV file of Lenovo serial numbers, fetches the corresponding product and warranty information, and updates the CSV file with this information.

python LenovoWaranty.py <csv_file_path>

template.csv

This file has a template structure that LenovoWaranty.py expects.

Contributing

We welcome contributions to this project! If you have suggestions for improvements, new features, or bug fixes, please follow the steps below:

  1. Fork the Repository:

    • Click on the "Fork" button at the top of this repository page to create a copy of the repository in your GitHub account.
  2. Clone Your Fork:

    • Clone your forked repository to your local machine.
  3. Create a Branch:

    • Create a new branch for your changes: git checkout -b feature/your-feature-name
  4. Make Your Changes:

    • Modify the code and add your improvements or new features.
  5. Commit Your Changes:

    • Commit your changes with a descriptive commit message: git commit -m "Description of your changes"
  6. Push to Your Fork:

    • Push your changes to your forked repository: git push origin feature/your-feature-name
  7. Create a Pull Request:

    • Go to the original repository and click on the "Pull Requests" tab.
    • Click on the "New Pull Request" button and select your branch from the dropdown menu.
    • Provide a descriptive title and detailed description of your changes.
    • Click on the "Create Pull Request" button.

We will review your pull request and provide feedback or merge it into the main branch. Thank you for your contributions!

lenovo-warranty-checker's People

Contributors

nikigre avatar

Watchers

 avatar

lenovo-warranty-checker's Issues

No License

Hi!

Your code has no licence?

Could you provide one?

TiA,

Andreas

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.