Skip to main content
# pynarlivs

![https://badge.fury.io/py/pynarlivs](http://badge.fury.io/py/pynarlivs.png)

Ever wanted to interact with ![http://www.narlivs.se](Narlivs) 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.

Metadata

Release files for pynarlivs 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pynarlivs 0.9.0
File Size Uploaded
pynarlivs-0.9.0.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pynarlivs 0.9.0
File Interpreter ABI Platform
pynarlivs-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / pynarlivs-0.9.0.tar.gz

Download URL pynarlivs-0.9.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
32a8765f8a9b213ee26a23bf3be17cc141bfb038857f11995d3695058cd863cf
BLAKE2b-256 checksum
How to use checksums
e58f3fb3c4cd8e6c26cb9c10005947aed278fb68d86355db8005e18d90402c56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pynarlivs-0.9.0-py3-none-any.whl

Download URL pynarlivs-0.9.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccd8479c7d36713492625eba0a6d80b46da10d4889b066264d94d0216c9fcb95
BLAKE2b-256 checksum
How to use checksums
340df8aa0fabae94d350071dd34b1dfa60c6cedd6cf7e4e9b1f8659fe30369a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page