Metadata-Version: 2.1
Name: Recherche-Babac2
Version: 0.2.7
Summary: A Python3 module to search the Cycle Babac catalogue and return description, price and availability.
Home-page: http://github.com/normcyr/recherche_babac2
Author: Normand Cyr
Author-email: norm@normandcyr.com
License: GNU GPLv3
Keywords: bicycle babac parts repair diy
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Office/Business :: Financial
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: bs4
Requires-Dist: requests
Requires-Dist: lxml
Requires-Dist: pyyaml

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

# Recherche Babac2

A Python3 module to search the Cycle Babac catalogue and return description, price and availability.

## Installation

1. Clone the repository

```bash
git clone https://github.com/normcyr/recherche_babac2
```

2. Create a Python virtual environment using `virtualenv`

```bash
cd recherche_babac2
virtualenv -p python3 venv
source venv/bin/activate
```

3. Install the module

```bash
python setup.py install
```

## Setup the configuration file

```bash
cp config.yml.example config.yml
```

Then edit the `config.yml` file (*eg* `nano config.yml`) and change the value of the `username` and `password` variables to the proper credentials to log in to the Cycle Babac website.

## Perform a search

Launch the search with the following command:

```bash
recherche_babac2 search text
```

For example:

```bash
recherche_babac2 training wheels
```

or, using a catalogue number:

```bash
recherche_babac2 22-150
```
