Metadata-Version: 2.1
Name: indent-print
Version: 1.1.0
Summary: library can print better readable code
Home-page: https://github.com/matinprogrammer/IPrint
Author: matin ahmadi
Author-email: matinahmadi.programmer@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# IPrint (indent print)
you can use easy like print but this print has indent and color
that create better readable for you


## Features:
+ indent data you use
+ colorize your data
+ write data with indent in file so easy


# Example:
    class AnotherData:
        pass
    string_data = "my name is matin"
    int_data = 20
    another_data = AnotherData()
    dict_data = {"auther": "matin ahmadi", "github": "https://github.com/matinprogrammer"}
    set_data = {1, 2, 3}
    list_data = [string_data, int_data, another_data, dict_data, set_data, [[["test list"]]]]

`>>> iprint(list_data)`

![Screenshot of example code of iprint](media/example_of_iprint.png)


`>>> cprint(list_data)`

![Screenshot of example code of iprint](media/example_of_cprint.png)


## how to install
    pip install indent-print

## how to use
`iprint()` for indent print

`cprint()` for indent and colorize print

    >>> from iprint import iprint, cprint

    >>> iprint(anydata)
    >>> cprint(anydata)

## customize
### custom indent length
default indent is 4(its mean 4 white space)

    >>> iprint([1], indent=8)
    [
            1
    ]

### write in file
NOTE: cprint hasn't got file parameter(cant write colorize text in file)

    >>> with open(test.txt, "w") as test_file:
            iprint(mydata, file=test_file)
### change seperator of input data
default seperator is " "(white space)

    >>> iprint(1, 2, 3, sep="-")
    1-2-3

### change end character
default seperator is "\n"(new line)

    >>> iprint(1, 2, 3, end="*")
    1 2 3*


    

