Metadata-Version: 2.1
Name: bwdatausagelib
Version: 0.0.3
Summary: A packaged library for sim usage data
Home-page: https://github.com/ZainBW/bwdatausagelib
Author: Mohamad Zain Bin Aziz
Author-email: mohamad.zain@bluewireless.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/ZainBW/bwdatausage/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: azure.keyvault.secrets
Requires-Dist: azure-cosmosdb-table
Requires-Dist: azure.storage.queue
Requires-Dist: azure.identity
Requires-Dist: requests

A Package for API services and utilities for sim data usage

##Notes
- Clone the repository
- Create the virtual env and install the dependencies
```
py -m venv .venv
pip install -r requirements.txt
```
```
-  Run tests 
```
pytest -s
```
- Download the build package for local development
```
py -m pip install build
```

- Build the package to be used as an import to main script
```
py -m build
```

- To install from local folder, change to the root directory of the main script and install the package
```
py -m pip install ../bwdatausagelib/dist/bwdatausagelib-0.0.1.tar.gz
```

- upload to pypi using twine
```
twine upload dist/* --config-file .pypirc
```


**GlobalSimTable**
- The API service will check for the api queries on a table `GlobalSimsTable` to refill the queue each time it is below the set limit. This table will store all the entities that containing the Sim Provider and ICCID.
- `GlobalSimTable` must be created at the storage that is binded to the Azure function as set in Application Setting `AzureWebJobsStorage`

