inventory database management functions
Project description
Project name here
Summary description here.
This file will become your README and also the index of your documentation.
Install
pip install villaInvDatabase
How to use
interact with a database hosted in dynamodb
from villaInvDatabase.database import Database
error, missing environment variables
'DATABASE_TABLE_NAME'
dax endpoint missing
missing environment variable 'INVENTORY_BUCKET_NAME' in Database s3 NB
missing environment variable 'INVENTORY_BUCKET_NAME' in query NB
missing environment variable 'INPUT_BUCKET_NAME' in update NB
sampleinput = [
{ 'ib_prcode': '0000009', 'ib_brcode': '1000', 'ib_cf_qty': '50', 'new_ib_vs_stock_cv': '27' },
{ 'ib_prcode': '0000002', 'ib_brcode': '1000', 'ib_cf_qty': '35', 'new_ib_vs_stock_cv': '33' }
]
costPer100ms = 0.0000016667
costPerMs = costPer100ms / 100
timePerCallS = 40
timePerCallMs = timePerCallS * 1000
costPerCall = costPerMs * timePerCallMs
callsPerDay = 60 * 24 /10
costPerDay = callsPerDay * costPerCall
costPerDay * 33
3.16806336
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
villaInvDatabase-0.0.11.tar.gz
(16.0 kB
view hashes)
Built Distribution
Close
Hashes for villaInvDatabase-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbd6a8748489ed81416eb965f44132a4055b7066116d2da711410bf302288be6 |
|
MD5 | f6faf7a7632814ab8a149bbf6f507f94 |
|
BLAKE2b-256 | 591b6ac32c80e94edf687a532c0c54b6b885e6993ad684d836bd9a3c971b3a90 |