Metadata-Version: 2.1
Name: reusable
Version: 0.0.3
Summary: Python reusable code and utility classes
Home-page: https://github.com/ohidurbappy/reusable
Author: Ohidur Rahman Bappy
Author-email: ohidurbappy+reusable@gmail.com
License: UNKNOWN
Platform: any
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Natural Language :: English
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Utilities
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.5
Description-Content-Type: text/markdown

# reusable
Python reusable code, utility functions and time saver.

## Overview
Python `reusable` library contains a handful of reusable functions and utility class

### Install

```bash
pip install -U reusable
```

## Usage
### Loading Configuration files as class attributes

```python
from reusable import AppConfig
config=AppConfig('config.json')
mykey=config.my_key
```
### Load config file accessible via class methods

```python
from reusable import Config
config=Config('config.json')
mykey=config.get('my_key')
```

## Available functions
- **random_string()** : return a random string of specified length and character set
- **print_table()** : prints a data table provided as list
- **print_time_taken** [decorator] : prints the time of execution of a parameter
- **groupby_count()** : groups a given list according the number of times it appears
- **generate_all_datetime_regex** : generate the regex for all possible datetime
- **download_file** : download a file from the given url
- **is_python3()** : check if the interpreter is python v3
- **is_python_above_or_equal()** : check if the interpreter is above or equal to the given version
- **check_modules_installed()** : check if the given modules are installed
- **random_useragent()** : return a random useragent

