semvec/pypi-packages huggingface dataset:
computed-cached-property 0.0.3
A decorator for caching computed properties in classes. like Vue's Computed-Properties
License: MIT
Requires Python: >=3.6
Keywords: cached-property

<!--
 * @Date: 2020-06-19 22:44:45
 * @LastEditors: code
 * @Author: code
 * @LastEditTime: 2020-06-23 21:58:40
-->  

# computed-cached-property

A decorator for caching computed properties in classes. like Vue's Computed-Properties

## install

```powershell
pip install computed-cached-property
```

## example

```python
from computed_cached_property import computed_cached_property
from dataclasses import dataclass


@dataclass
class A:
    v1: int = 1
    v2: str = 'fuck'
    v3: bool = False

    @property
    @computed_cached_property
    def v4(self):
        print('run code in v4 function')
        return f'v1:{self.v1}, v2:{self.v2}, v3:{self.v3}'

    @property
    @computed_cached_property(typed=Ture)
    # same as @functools.lru_cache(maxsize=1, typed=Ture)
    def v5(self):
        print('run code in v4 function')
        return f'v1:{self.v1}, v2:{self.v2}, v3:{self.v3}'


a1 = A(v1=99)
print(a1.v4)
print(a1.v4)
a1.v2 = 'xxoo'
print(a1.v4)

# output
# run code in v4 function
# v1:99, v2:fuck, v3:False
# v1:99, v2:fuck, v3:False
# run code in v4 function
# v1:99, v2:xxoo, v3:False
```

## Hint

Not recommended for use in a production environment

## License

MIT
django-easyaudit-utils 0.0.6
A Django app to provide handy tools for django-easy-audit.
License: MIT

Django EasyAudit Utils
======================

This is a simple Django app to provide hand views, analytics and tools for better handling data from easyaudit_.


Detailed documentation is in the "docs" directory.

Quick start
-----------
1. Install the package using::

    pip install django-easyaudit-utils

2. Add "easyaudit_utils" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        ...
        'easyaudit',
        'easyaudit_utils',
        ...
    ]

3. Include the polls URLconf in your project urls.py like this::

    path("easyaudit/", include("easyaudit_utils.urls", namespace="easyaudit_utils")),


.. _easyaudit: https://github.com/soynatan/django-easy-audit
pytescomobileirl 0.2.4
Unofficial Python Tesco Mobile (Ireland) API
License: MIT
Keywords: tesco mobile phone balance status web ireland api

# pytescomobileirl
[![Build Status](https://travis-ci.org/skhg/pytescomobileirl.svg?branch=master)](https://travis-ci.org/skhg/pytescomobileirl) [![PyPI](https://img.shields.io/pypi/v/pytescomobileirl.svg)](https://pypi.python.org/pypi/pytescomobileirl/) [![Codecov](https://img.shields.io/codecov/c/github/skhg/pytescomobileirl.svg)](https://codecov.io/gh/skhg/pytescomobileirl)

A Python API for accessing your [Tesco Mobile Ireland](http://www.tescomobile.ie) account balance &amp; usage stats. This is an unoffical API and the author/contributors are in no way connected to Tesco or Tesco Mobile. The API provides methods to:
* Get your current balances (€ credit and voice/text/data packages)
* Get your usage records as far back as is available.

For an example of this in use, see my [Tesco Mobile BitBar plugin](https://github.com/skhg/BitBar-Plugins/tree/master/TescoMobileIrl)

## Installation
`pip install pytescomobileirl`

## Usage
It's very easy to use. Try the following to get your balance data:
```python
from pytescomobileirl import *
from pprint import pprint

session = pytescomobileirl.TescoSession()
session.login("<PhoneNumber>","<Password>")
balances = session.get_balances()

my_credit = balances.credit_remaining
my_data = balances.remaining_total("data")

print(my_credit)
print(my_data.summary())
pprint(vars(my_data))
```
returns:
```python
14.28
939 MB
{'balance_expires': datetime.datetime(2017, 10, 15, 0, 0),
 'balance_type': u'data',
 'is_active': True,
 'remaining_qty': 939.181640625,
 'serviceCode': u'AB3',
 'unit': 'MByte'}
 ```
 
 Or to get your usage history enter:
 ```python
 usage = session.get_usage()
 pprint(vars(usage.records[0]))
  ```
  returns:
  ```python
  {'called_number': u'tescomobile.liffeytelecom.com',
 'charge': u'0.0',
 'country_code': None,
 'event_date': datetime.datetime(2017, 9, 23, 13, 33),
 'roaming': False,
 'service_code': u'GPBAS',
 'service_name': u'GPRS Basic Service',
 'unit': u'Bytes',
 'use_type': u'DATA',
 'volume': 119896.0}
 ```
 
 ## Tests
 `python ./tests/tests.py`
 
 ## Contributing
 Fork this repo, make some changes and create a new pull request!