Metadata-Version: 2.1
Name: PyMsgPrompt
Version: 1.2.2
Summary: 
        PyMsgPrompt is a python module to embed prompt functionality in your code.
        Current Version of the module is 1.2.2
    
Home-page: https://github.com/antaripchatterjee/PyMsgPrompt
Author: Antarip Chatterjee
Author-email: antarip.chatterjee22@gmail.com
License: MIT
Description: # PyMsgPrompt
        
        PyMsgPrompt is a python module to embed prompt functionality in your code.
        
        ## Version
        
        The current version of this module is `1.2.2` and this is the second BETA release after first BETA version `1.1.1`, however, you can run the below command to check the version of the module.
        
        ```bash
        python -m pymsgprompt.version
        ```
        
        ## Platform Supports
        
        This is a cross platform module and supported both in python 2 and 3.
        
        ## Installation
        
        To install this module you can use clone with git or just simply run pip install command.
        
        ### Using git
        
        ```bash
        git clone https://github.com/antaripchatterjee/PyMsgPrompt.git
        cd PyMsgPrompt
        python setup.py install
        ```
        
        ### Using pip
        
        ```bash
        pip install pymsgprompt
        ```
        
        ## Uninstallation
        
        Uninstallation can be done by running pip uninstall command.
        
        ```bash
        pip uninstall pymsgpropmt
        ```
        
        ## Usage
        
        To test this module, you can run the below simple code.
        
        ```python
        from pymsgprompt.prompt import ask, log
        from pymsgprompt.logger import perror, pinfo, pwarn
        import time
        if __name__ == '__main__':
            answer = ask('Do you want to close?', choices=['yes', 'no', 'yesss'], default='no', timestamp=True, regexp=True, ignore_case=False)
            # with open('test.txt', 'w') as test:
            #     print (log('Answer is %s'%answer, logtype='error', timestamp=True, file=test))
            if answer.startswith('n'):
                log('Answer is %s'%answer, logtype='error', timestamp=False, reset=True)
            else:
                log('Answer is %s'%answer, logtype='info', timestamp=False, reset=True)
            for i in range(1000, 0, -1):
                log('The message is %d'%i, timestamp=True, end=None if i > 1 else '\n', reset=i==1)
                time.sleep(0.01)
            
            pinfo('I am a Python Developer')
            pwarn('Some kind of warning message')
            perror('Some kind of error message')
        ```
        
        Below is the output,
        
        ```output
        [QUES] 2020-Oct-14 22:11:08: Do you want to close? (no/ yes/ yesss)[no]
        no
        Answer is no
        [INFO] 2020-Oct-14 22:11:21: The message is 1
        [INFO] 2020-Oct-14 22:11:21: I am a Python Developer
        [WARN] 2020-Oct-14 22:11:21: Some kind of warning message
        [ERROR] 2020-Oct-14 22:11:21: Some kind of error message
        ```
        
        ## API Reference
        
        A good documentation, specially for the developers, will be provided later.
        
        ## Development Areas
        
        I am already working on some other functionalities, which will be provided in the future releases.
        
        ## License
        
        This module is licensed under [MIT License](https://github.com/antaripchatterjee/PyMsgPrompt/blob/master/LICENSE).
        
        ## Contribution
        
        Pull requests are always awesome, but please make sure of raising request, before making any changes.
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: Unix
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Environment :: Console
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Topic :: Education
Classifier: Topic :: Software Development
Classifier: Topic :: System :: Shells
Description-Content-Type: text/markdown
