Metadata-Version: 2.1
Name: advent-of-code-helpers
Version: 0.1.0
Summary: Advent of Code helper functions
Home-page: https://github.com/mvaal/advent-of-code-helpers
Author: Marcus Vaal
License: MIT
Description: Advent of Code helpers
        ======================
        .. image:: https://travis-ci.org/mvaal/advent-of-code-helpers.svg?branch=master
            :target: https://travis-ci.org/mvaal/advent-of-code-helpers
        .. image:: https://badge.fury.io/py/advent-of-code-helpers.svg
            :target: https://badge.fury.io/py/advent-of-code-helpers
        .. image:: https://coveralls.io/repos/github/mvaal/advent-of-code-helpers/badge.svg
            :target: https://coveralls.io/github/mvaal/advent-of-code-helpers
        
        Advent of Code helper functions
        
        .. code-block:: python
        
           from aoc.helpers import output, read_input_from_file, input_lines
        
        Setup Guide
        -----------
        
        Install with pip
        
        .. code-block:: bash
        
           pip install advent-of-code-helpers
        
        Usage
        -----------------
        
        Using the template:
        
        .. code-block:: python
        
            from aoc import template
        
        
            class Part1(template.Part1):
                def __init__(self, day: int, year: int) -> None:
                    super().__init__(day, year)
        
                def solve(self):
                    # Read input
                    lines = input_lines(self.input())
                    # Do some work here
        
                    # Sample output
                    result = ','.join(lines)
                    return result
        
        
            def main():
                output_dir = '../out'
                test_data = os.path.join(os.path.dirname(__file__),
                                         'resources/test_input.txt')
                Part1(1, 2018).data(test_data).output(output_dir)
        
                data = os.path.join(os.path.dirname(__file__), 'resources/input.txt')
                Part1(1, 2018).data(data).output(output_dir)
        
        
            if __name__ == "__main__":
                main()
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/x-rst
