{"id":21970882,"url":"https://github.com/ronknight/webjaguar-inventory-checker","last_synced_at":"2026-07-17T03:34:31.161Z","repository":{"id":263886350,"uuid":"891662478","full_name":"ronknight/webjaguar-inventory-checker","owner":"ronknight","description":"🔍 A Python script to validate the inventory status of products on WebJaguar by checking SKUs against their API and logging results to CSV and log files.","archived":false,"fork":false,"pushed_at":"2024-11-20T19:54:53.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T08:25:14.645Z","etag":null,"topics":["csv","python","webjaguar"],"latest_commit_sha":null,"homepage":"https://www.pinoyitsolution.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ronknight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-20T18:21:33.000Z","updated_at":"2024-11-20T19:54:56.000Z","dependencies_parsed_at":"2024-11-20T20:35:59.801Z","dependency_job_id":"d5ff92cd-3bbb-4398-9aa1-f7997c8090d2","html_url":"https://github.com/ronknight/webjaguar-inventory-checker","commit_stats":null,"previous_names":["ronknight/webjaguar-inventory-checker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ronknight/webjaguar-inventory-checker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronknight%2Fwebjaguar-inventory-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronknight%2Fwebjaguar-inventory-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronknight%2Fwebjaguar-inventory-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronknight%2Fwebjaguar-inventory-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronknight","download_url":"https://codeload.github.com/ronknight/webjaguar-inventory-checker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronknight%2Fwebjaguar-inventory-checker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35566567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-17T02:00:06.162Z","response_time":116,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","python","webjaguar"],"created_at":"2024-11-29T14:43:55.344Z","updated_at":"2026-07-17T03:34:31.134Z","avatar_url":"https://github.com/ronknight.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🦈 \u003ca href=\"https://github.com/ronknight/webjaguar-inventory-checker\"\u003eWebJaguar Inventory Checker\u003c/a\u003e\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003e🔍 A Python script to validate the inventory status of products on WebJaguar by checking SKUs against their API and logging results to CSV and log files.\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://twitter.com/PinoyITSolution\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/PinoyITSolution?style=social\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/ronknight?tab=followers\"\u003e\u003cimg src=\"https://img.shields.io/github/followers/ronknight?style=social\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/ronknight/webjaguar-inventory-checker/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/BEPb/BEPb.svg?logo=github\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/ronknight/webjaguar-inventory-checker/network/members\"\u003e\u003cimg src=\"https://img.shields.io/github/forks/BEPb/BEPb.svg?color=blue\u0026logo=github\"\u003e\u003c/a\u003e\n\u003ca href=\"https://youtube.com/@PinoyITSolution\"\u003e\u003cimg src=\"https://img.shields.io/youtube/channel/subscribers/UCeoETAlg3skyMcQPqr97omg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/ronknight/webjaguar-inventory-checker/issues\"\u003e\u003cimg src=\"https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/ronknight/webjaguar-inventory-checker/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/ronknight\"\u003e\u003cimg src=\"https://img.shields.io/badge/Made%20with%20%F0%9F%A4%8D%20by%20-%20Ronknight%20-%20red\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#project-overview\"\u003eProject Overview\u003c/a\u003e •\n  \u003ca href=\"#features\"\u003eFeatures\u003c/a\u003e •\n  \u003ca href=\"#setup\"\u003eSetup\u003c/a\u003e •\n  \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e •\n  \u003ca href=\"#files\"\u003eFiles\u003c/a\u003e •\n  \u003ca href=\"#diagram\"\u003eDiagram\u003c/a\u003e •\n  \u003ca href=\"#disclaimer\"\u003eDisclaimer\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## 📖 Project Overview\n\nThe **WebJaguar Inventory Checker** is a Python script designed to streamline inventory management. It reads a list of product SKUs from a CSV file, fetches their statuses from the WebJaguar API, and writes the results to a new CSV file while also logging the responses for debugging purposes.\n\n---\n\n## ✨ Features\n\n- **SKU Status Validation**: Check the `active` status of products on WebJaguar.\n- **CSV Input and Output**: Input SKUs via a CSV file and output results with additional columns indicating inventory statuses.\n- **Logging**: Logs all API responses to a timestamped log file for transparency and debugging.\n- **Environment Variables**: Secures sensitive credentials using a `.env` file.\n\n---\n\n## ⚙️ Setup\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/ronknight/webjaguar-inventory-checker.git\n   ```\n\n2. **Navigate to the Project Directory**:\n   ```bash\n   cd webjaguar-inventory-checker\n   ```\n\n3. **Install Dependencies**:\n   Make sure Python 3.6+ is installed. Install required packages using:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Configure Environment Variables**:\n   Create a `.env` file in the project directory with the following content:\n   ```env\n   API_URL=https://your-webjaguar-api-url.com\n   AUTH_CREDENTIALS=your-username:your-password\n   COOKIE=your-session-cookie\n   ```\n\n---\n\n## 🚀 Usage\n\n1. **Prepare the Input CSV File**:\n   - Create a file named `product_id.csv` with the following format:\n     ```csv\n     4SGM_SKU\n     SKU123\n     SKU456\n     SKU789\n     ```\n\n2. **Run the Script**:\n   - Execute the script to validate product statuses:\n     ```bash\n     python check_inventory_status.py\n     ```\n\n3. **Review the Outputs**:\n   - **`product_id_with_status_\u003ctimestamp\u003e.csv`**: Contains the original SKUs with an additional `inventory_active` column indicating the product status (`True` or `False`).\n   - **`response_log_\u003ctimestamp\u003e.txt`**: Logs all API responses for auditing or troubleshooting.\n\n---\n\n## 📂 Files\n\n### Key Files\n- **`check_inventory_status.py`**: The main Python script for inventory validation.\n- **`.env`**: File for securely storing API credentials and other sensitive configuration values.\n- **`requirements.txt`**: Lists Python dependencies required to run the script.\n\n### Example/Generated Files\n- **`product_id.csv`**: Example input file containing SKUs to validate.\n- **`product_id_with_status_\u003ctimestamp\u003e.csv`**: Output file with validated statuses.\n- **`response_log_\u003ctimestamp\u003e.txt`**: Logs API responses for each SKU.\n\n---\n\n## 📊 Diagram\n\n```mermaid\ngraph TD\n    A[Start: User Executes Script] --\u003e|Reads Input| B[Input CSV File]\n    B --\u003e|Extracts SKUs| C[Check SKU Status via API]\n    C --\u003e|Sends Request| D[WebJaguar API]\n    D --\u003e|Returns Response| E[Parse API Response]\n    E --\u003e|Extract Status| F[Write to Output CSV]\n    F --\u003e|Save Logs| G[Log API Responses]\n    G --\u003e H[End: Results Saved]\n```\n\n## ⚠️ Disclaimer\n\nThis script interacts with WebJaguar's API using sensitive credentials (API keys and cookies). Ensure proper security measures, such as excluding `.env` files from version control, and comply with the WebJaguar terms of service. Use at your own risk.\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronknight%2Fwebjaguar-inventory-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronknight%2Fwebjaguar-inventory-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronknight%2Fwebjaguar-inventory-checker/lists"}