Catalog PyPI
PACKAGE EXPLORERView in registry

adventocr

PyPI

Parsing text output for Advent of Code puzzles

Versions collected1
Direct dependencies0From release 0.1
Last observed20 Oct, 20:01 UTC

README

Version 0.1 documentation

Advent of Code Optical Character Recognition (adventocr)

Some Advent of Code puzzles provide visual outputs which must be converted into text. This package is a helper to automate this task.

Installation

pip install adventocr

Usage

An example puzzle output may look something like

word = [
    '#', '#', '#', '#', ' ', '#', '#', '#', '#', ' ',
    '#', ' ', ' ', ' ', ' ', '#', ' ', ' ', ' ', ' ',
    '#', '#', '#', ' ', ' ', '#', '#', '#', ' ', ' ',
    '#', ' ', ' ', ' ', ' ', '#', ' ', ' ', ' ', ' ',
    '#', ' ', ' ', ' ', ' ', '#', ' ', ' ', ' ', ' ',
    '#', '#', '#', '#', ' ', '#', ' ', ' ', ' ', ' '
]

When tidied and printed, this appears to be

#### #### 
#    #    
###  ###  
#    #    
#    #    
#### #

This process can be automated through:

import adventocr
parsed = adventocr.word(word)
parsed
'EF' 

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.17 Jan 20210

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
cqkh42/aoc_letters

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:01 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:1b152f007b4f234f230dee10b9a7a1c94665596ee5a6aa19a87ef5c47ede0017