A simple Django app to download LCBO Product Data.
Project description
=====
Liquor
=====
Liquor is a simple library that will copy the lcbo's products api to your database.
This was created from a workshop assignment for the YMC (www.theymc.com).
The purpose is to avoid creating fake data, when building sample applications,
Using manage.py steal_booze, we can now populate our database with live data,
and build a sample site with accurate information.
http://git.io/NM2urA
Quick start
-----------
1. `pip install liquor`
2. Add "liquor" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'liquor',
)
3. Run `python manage.py syncdb` to create the LcboProduct models.
4. Run `python manage.py steal_booze` to get data from the LCBO API, and store it in your models.
5. Run `python manage.py analyze_booze` to get some insights.
Accessing the data
-----------------
1. Run `python manage.py shell` to launch the shell
2. `from liquor import models`
3. `models.LcboProduct.objects.all()`
Liquor
=====
Liquor is a simple library that will copy the lcbo's products api to your database.
This was created from a workshop assignment for the YMC (www.theymc.com).
The purpose is to avoid creating fake data, when building sample applications,
Using manage.py steal_booze, we can now populate our database with live data,
and build a sample site with accurate information.
http://git.io/NM2urA
Quick start
-----------
1. `pip install liquor`
2. Add "liquor" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = (
...
'liquor',
)
3. Run `python manage.py syncdb` to create the LcboProduct models.
4. Run `python manage.py steal_booze` to get data from the LCBO API, and store it in your models.
5. Run `python manage.py analyze_booze` to get some insights.
Accessing the data
-----------------
1. Run `python manage.py shell` to launch the shell
2. `from liquor import models`
3. `models.LcboProduct.objects.all()`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
liquor-0.1.tar.gz
(3.6 kB
view details)
File details
Details for the file liquor-0.1.tar.gz
.
File metadata
- Download URL: liquor-0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9afd0e5fb4f1b5d8d2095ae9770c9632edadcf5e9c571d8770c46e1abaaef949 |
|
MD5 | fdabec612ad49b1586b350fab19e6f12 |
|
BLAKE2b-256 | 94739da1733db6cf338645e7be3c118d271576604524ea568003f6b1f45be723 |