Current collected state Current
Observed since 20 Oct, 20:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Parsing text output for Advent of Code puzzles
Some Advent of Code puzzles provide visual outputs which must be converted into text. This package is a helper to automate this task.
pip install adventocr
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'
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1 | 7 Jan 2021 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 20:01 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:1b152f007b4f234f230dee10b9a7a1c94665596ee5a6aa19a87ef5c47ede0017