A description of your project
Project description
villaInventorySdk
read and write inventory in real time
Install
pip install villaInventorySdk
How to use
Uploading a large amount of data
sample input
sampleInput = [
{'ib_brcode': '1023', 'ib_cf_qty': '835', 'ib_prcode': '84621', 'new_ib_vs_stock_cv': '839'},
{'ib_brcode': '1022', 'ib_cf_qty': '24', 'ib_prcode': '12424', 'new_ib_vs_stock_cv': '21'}
]
Upload data
init sdk
%%time
sdk = InventorySdk(user=USER, pw=PW, branchName = branch)
CPU times: user 5.63 ms, sys: 103 µs, total: 5.73 ms
Wall time: 5.38 ms
Update inventory
%%time
sdk.updateWithS3( sampleInput )
CPU times: user 13 ms, sys: 8.05 ms, total: 21.1 ms
Wall time: 130 ms
{'body': 'true', 'statusCode': 200, 'header': {}}
Query single product
%%time
sdk.querySingleProduct('0000002')
CPU times: user 13.7 ms, sys: 0 ns, total: 13.7 ms
Wall time: 64.3 ms
{'body': '{"ib_prcode":"0000002","1000":{"ib_cf_qty":35,"new_ib_bs_stock_cv":33,"lastUpdate":1600567810.529301},"1001":{"ib_cf_qty":32,"new_ib_bs_stock_cv":30,"lastUpdate":1600567810.529316},"1002":{"ib_cf_qty":34,"new_ib_bs_stock_cv":30,"lastUpdate":1600567810.529318},"lastUpdate":1600567810.529318}',
'statusCode': 200,
'header': {}}
Query Branch
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
villaInventorySdk-0.0.10.tar.gz
(12.4 kB
view hashes)
Built Distribution
Close
Hashes for villaInventorySdk-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3403cf517f312a47426b74bfd11ddd83e28255016e065617f245078aebde35f |
|
MD5 | 1c15242e4a7ff39eafce4f7b4ac84fbf |
|
BLAKE2b-256 | 8e902c25eb20c0e0c3fa9c473d53e30f8111ff1d03a95bcd5296803f51c39093 |