semvec/pypi-packages huggingface dataset:
decimal-monkeypatch 0.4.3
Python 2 performance patches: decimal to cdecimal, json to ujson for psycopg2
License: BSD

#### decimal-monkeypatch

A Python module based on [autowrapt](https://github.com/GrahamDumpleton/autowrapt)
for: 
- Interpreter-wide monkey patching slow `decimal` module to [cdecimal](http://www.bytereef.org/mpdecimal/index.html) on Python 2 with preservation of the functionality of the `boto` lib.
- `psycopg2` `json` to `ujson` replacement
- Custom `deepcopy` for boto.dynamodb2.items. This patch can give huge performance benefits if you know expected data structure.
##### Usage
`pip install decimal-monkeypatch`  
- set `AUTOWRAPT_BOOTSTRAP=decimal` env variable for `decimal` patch activation
- set `AUTOWRAPT_BOOTSTRAP=psycopg2` env variable for `psycopg2` patch activation
- set `AUTOWRAPT_BOOTSTRAP=dynamodb` env variable for `dynamodb` patch activation
- set `AUTOWRAPT_BOOTSTRAP=decimal,psycopg2,dynamodb` for all at once
##### Additional reading
* [Swapping decimal for cdecimal on Python 2](https://adamj.eu/tech/2015/06/06/swapping-decimal-for-cdecimal-on-python-2/)
* [Automatic patching of Python applications](https://github.com/openstack/deb-python-wrapt/blob/master/blog/14-automatic-patching-of-python-applications.md)
* [Discussion about json module selection in psycopg2](https://github.com/psycopg/psycopg2/issues/284)
* [SO deepcopy question](https://stackoverflow.com/a/45858907/4249707)
###### WARNING
Tested on only this configuration:  
Python 2.7.12+  
`boto` 2.48.0   
`m3-cdecimal` 2.3  
`psycopg2-binary` 2.7.4  
`ujson` 1.35
amazonstoreprice 0.1.7
Find the price on Amazon store starting from url
License: BSD
Keywords: Amazon,amazonprice,amazonstoreprice,amazonstore

## AmazonStorePrice
This module find the price from url given

Compatible with all amazon store

[![Build Status](https://travis-ci.org/Mirio/amazonstoreprice.svg?branch=0.1)](https://travis-ci.org/Mirio/amazonstoreprice)  [![Github All Releases](https://img.shields.io/github/downloads/mirio/amazonstoreprice/total.svg)]() [![Documentation Status](https://readthedocs.org/projects/amazonstoreprice/badge/?version=0.1)](http://amazonstoreprice.readthedocs.org/en/latest/?badge=0.1)
[![Coverage Status](https://coveralls.io/repos/github/Mirio/amazonstoreprice/badge.svg?branch=0.1)](https://coveralls.io/github/Mirio/amazonstoreprice?branch=0.1)


## Link
Documentation: http://amazonstoreprice.readthedocs.org/

Bug Tracker: https://github.com/Mirio/amazonstoreprice/issues

GitHub: https://github.com/Mirio/amazonstoreprice


## Requirement
Python 3.x

Python Library = [ 'requests', 'beautifulsoup4' ]

## How to install
```
pip install amazonstoreprice
```

## Install from source
```
git clone https://github.com/Mirio/amazonstoreprice.git
cd amazonstoreprice
python setup.py install
```

## Getting Started

Example:
```
from amazonstoreprice import AmazonStorePrice

url = "http://www.amazon.it/Inside-Out-Ronnie-Del-Carmen/dp/B016LMC90O/" \
      "ref=sr_1_1?ie=UTF8&qid=1455389197&sr=8-1&keywords=inside+out"
pricelib = AmazonStorePrice()
print(pricelib.getprice(url, retry_ontemp=True))
```

Output:
```
$ python example_getprice.py
15.99
```