Metadata-Version: 2.1
Name: automation-direct-stock
Version: 1.0.0
Summary: package checks Automation Direct's products' availability
Home-page: https://github.com/PhilipConte/automation_direct_stock
Author: Philip Conte
Author-email: philipmconte@gmail.com
License: MIT
Download-URL: https://github.com/PhilipConte/automation_direct_stock/archive/1.0.0.tar.gz
Keywords: automation direct stock
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: beautifulsoup4

# automation_direct_stock
**I am in no way associated with automationdirect.com**

A simple [python module](https://github.com/PhilipConte/automation_direct_stock) to easily check if the product at a given url on automationdirect.com is in stock

## Installation
**Requires Python 3 and pip**

From the PyPI:
```bash
pip install [--user] automation_direct_stock
```

From GitHub:
```bash
# Clone this repository
git clone https://github.com/PhilipConte/automation_direct_stock.git

# Go into the repository
cd automation_direct_stock

# install the module using pip
pip install [--user] .
```

## Usage
Use from the commandline or a python script (make sure to put the url in quotes)
```bash
#commandline
adstock "url_to_check"

#python script
from automation_direct_stock import isInStock
isInStock("url_to_check")
```
## Possible Return Values
```bash
#if in stock
'In Stock'

#if out of stock
'Out Of Stock'

#if not found or url invalid
'error'

#(commandline only) if invalid number of arguments passed
'bad arguments'
```

