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.
- Python 3.x
requests
library
You can install the requests
library using pip:
pip install requests
This script fetches and displays product and warranty information for a single Lenovo product based on its serial number.
python LenovoWarantyOne.py <serial_number>
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>
This file has a template structure that LenovoWaranty.py
expects.
We welcome contributions to this project! If you have suggestions for improvements, new features, or bug fixes, please follow the steps below:
-
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.
-
Clone Your Fork:
- Clone your forked repository to your local machine.
-
Create a Branch:
- Create a new branch for your changes:
git checkout -b feature/your-feature-name
- Create a new branch for your changes:
-
Make Your Changes:
- Modify the code and add your improvements or new features.
-
Commit Your Changes:
- Commit your changes with a descriptive commit message:
git commit -m "Description of your changes"
- Commit your changes with a descriptive commit message:
-
Push to Your Fork:
- Push your changes to your forked repository:
git push origin feature/your-feature-name
- Push your changes to your forked repository:
-
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!