Metadata-Version: 2.1
Name: exacto
Version: 0.2.2
Summary: Python tools for splitting strings.
Home-page: http://github.com/arthexis/exacto
Author: Rafael Guillén
Author-email: arthexis@gmail.com
License: MIT
Download-URL: https://github.com/arthexis/exacto/archive/v0.2.2.tar.gz
Description: # Exacto
        
        Exacto is a collection of Python tools that simplify splitting strings according to non-trivial business rules. You may find this package useful if: 
        
          - A regular expression is not enough for your use case.
          - You want to avoid writing and maintaining manual parsing code.
          - You don't want to mess around with LLVM or FSMs.
         
        However, if performance is your primary goal, these tools may not be for you. 
        
        # Usage
        
        ```python
        from exacto import split, lift, quote, nest
        
        # Simple example with default rules: split on whitespace
        result = split("Hello   World")  
        assert list(result) == ["Hello", "World"]
        
        # Complicated example with custom separator and quotes
        result = split("ENV='Prod-172.0.10.10'.VER='2.1'", quote("'"), ".")
        assert list(result) == ["ENV='Prod Env'", "VER='2.1'"]
        
        # Extract embedded tokens
        result = lift("Hello [FOO] is [BAR]", nest("[", "]"))
        assert list(result) == ["FOO", "BAR"]
        ```
        
        
Keywords: UTILS,SPLIT,STRING
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Text Processing
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Provides-Extra: dev
