#### 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
Metadata
Release files for decimal-monkeypatch 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| decimal-monkeypatch-0.4.3.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| decimal_monkeypatch-0.4.3-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 14.8 kB
Release files / decimal-monkeypatch-0.4.3.tar.gz
| Download URL | decimal-monkeypatch-0.4.3.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
207cd8fd4e2e56b8baf3543dae85dcf32260dc8323051767dc014ccb441f818b
|
|
BLAKE2b-256 checksum How to use checksums |
5987607b83bc42206d892d919a2799be8203dcfb844a09e7bd31d949560b6b73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.12
|
Release files / decimal_monkeypatch-0.4.3-py2-none-any.whl
| Download URL | decimal_monkeypatch-0.4.3-py2-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
032352f1d02598e97ad608b57b204c04d2dc07071a0c3b80b24d22ab02bdb5dc
|
|
BLAKE2b-256 checksum How to use checksums |
001a7ce21f8b5874f0cb86704f07da3882a129d9a7f7c85c90c00dd25168cba0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.12
|