Skip to main content

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


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)

Uploaded Source

Built Distribution

villaInvDatabase-0.0.11-py3-none-any.whl (17.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page