Client library for the non-existent Narlivs API.
Project description
# pynarlivs

Ever wanted to interact with  using an API?
Yep, there is none. We are here to make your life easier! This library aims
to provide a Pythonic interface for some basic functionalities on Narlivs,
i.e. retrieving product information (or, in future, automating the order
process).
## What do we use pynarlivs for?
When receiving a delivery from Narlivs, we get a delivery receipt both on paper
and in PDF format. We parse the PDF file programatically in order to automatically
update the in-stock product quantities.
## Quickstart guide
Install using pip:
```bash
pip install pynarlivs
```
Retrieve product information using its EAN code:
```python
>>> from narlivs import Narlivs
>>> client = Narlivs('username', 'password')
>>> product = client.get_product(ean='7310350109265')
>>> product
<Product sku=100102201 name=BRIO FRUKT PÅSE >
>>> product.data
{'ean': '7310350109265',
'image': '(...)/product/products/images/7310350109265.jpg',
'name': 'BRIO FRUKT PÅSE',
'price': Decimal('3.99'),
'sku': '100102201'}
```
## License
MIT License. Please see the LICENSE file.

Ever wanted to interact with  using an API?
Yep, there is none. We are here to make your life easier! This library aims
to provide a Pythonic interface for some basic functionalities on Narlivs,
i.e. retrieving product information (or, in future, automating the order
process).
## What do we use pynarlivs for?
When receiving a delivery from Narlivs, we get a delivery receipt both on paper
and in PDF format. We parse the PDF file programatically in order to automatically
update the in-stock product quantities.
## Quickstart guide
Install using pip:
```bash
pip install pynarlivs
```
Retrieve product information using its EAN code:
```python
>>> from narlivs import Narlivs
>>> client = Narlivs('username', 'password')
>>> product = client.get_product(ean='7310350109265')
>>> product
<Product sku=100102201 name=BRIO FRUKT PÅSE >
>>> product.data
{'ean': '7310350109265',
'image': '(...)/product/products/images/7310350109265.jpg',
'name': 'BRIO FRUKT PÅSE',
'price': Decimal('3.99'),
'sku': '100102201'}
```
## License
MIT License. Please see the LICENSE file.
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
pynarlivs-0.9.0.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pynarlivs-0.9.0.tar.gz.
File metadata
- Download URL: pynarlivs-0.9.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32a8765f8a9b213ee26a23bf3be17cc141bfb038857f11995d3695058cd863cf
|
|
| MD5 |
2f3893a9ead839b777b47f17492a9e62
|
|
| BLAKE2b-256 |
e58f3fb3c4cd8e6c26cb9c10005947aed278fb68d86355db8005e18d90402c56
|
File details
Details for the file pynarlivs-0.9.0-py3-none-any.whl.
File metadata
- Download URL: pynarlivs-0.9.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccd8479c7d36713492625eba0a6d80b46da10d4889b066264d94d0216c9fcb95
|
|
| MD5 |
4c0cf1bf1c234b7607463b444c847e50
|
|
| BLAKE2b-256 |
340df8aa0fabae94d350071dd34b1dfa60c6cedd6cf7e4e9b1f8659fe30369a0
|