semvec/pypi-packages huggingface dataset:
bwdatausagelib 0.0.5
A packaged library for sim usage data
Requires Python: >=3.8

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`
serializepy 0.0.2
Serialize and deserialize using type hints
Requires Python: >=3.6

serializepy: typed deserialization
=======================================
![example workflow](https://github.com/jepperaskdk/serializepy/actions/workflows/python-package.yml/badge.svg)
[![PyPI version serializepy](https://badge.fury.io/py/serializepy.svg)](https://pypi.python.org/pypi/serializepy/)


File issues here: [Issues tracker](https://github.com/jepperaskdk/serializepy/issues)

Motivation
------------

serializepy inspects the type-hints of self-assignments in class-constructors, and constructs the type from a given dictionary. The goal is to support this work recursively for large and complex (typed) hierarchies.


Installation
-----------

Install serializepy with pip:

    $ python3 -m pip install serializepy

Usage
-----------
```
# Example class hierarchy
class B():
    def __init__(self, b: int) -> None:
        self.b: int = b


class A():
    def __init__(self, a: int, b: B) -> None:
        self.a: int = a
        self.b: B = b

# Data that we want to fit the above hierarchy, possibly from json.load(..)
d = {
    'a': 1,
    'b': {
        'b': 2
    }
}

# Deserialization and assertion
obj: A = deserialize(A, d)
assert isinstance(obj, A)
assert obj.a == 1
assert isinstance(obj.b, B)
assert obj.b.b == 2

```

Inheritance:
```
class A():
    def __init__(self, a: int) -> None:
        self.a: int = a

class B(A):
    def __init__(self, a: int, b: int) -> None:
        super().__init__(a)
        self.b: int = b
d = {
    'a': 5,
    'b': 7
}

obj: B = deserialize(B, d)

assert isinstance(obj, B)
assert obj.a == 5
assert obj.b == 7
```


License
-----------

serializepy is licensed under the terms of the MIT License (see the LICENSE file).