Metadata-Version: 2.1
Name: compact
Version: 0.1.1
Summary: PHP compact for Python
Home-page: http://github.com/robinvandernoord/compact
Author: Robin van der Noord
Author-email: robinvandernoord@gmail.com
License: MIT
Description: # Compact
        
        [PHP compact() ported to Python](https://www.php.net/manual/en/function.compact.php)
        
        ```python
        a = 1
        b = 2
        c = compact(a, 'b')
        # -> {'a': 1, 'b': 2}
        
        compact(c, d, dirty=True)
        # -> {c: {'a': 1, 'b': 2}, d: None}
        ```
        
        Only works in scripts, not interactive use 
        (the program needs to be able to read the source files)
Platform: UNKNOWN
Description-Content-Type: text/markdown
