adventofcode 25.5__py3-none-any.whl → 25.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
adventofcode/__about__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "25.5"
1
+ __version__ = "25.7"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: adventofcode
3
- Version: 25.5
3
+ Version: 25.7
4
4
  Summary: Helper utilities for solving Advent of Code puzzles
5
5
  Project-URL: Documentation, https://github.com/anze3db/adventofcode#readme
6
6
  Project-URL: Issues, https://github.com/anze3db/adventofcode/issues
@@ -27,16 +27,14 @@ Requires-Dist: requests
27
27
  Requires-Dist: rich
28
28
  Description-Content-Type: text/markdown
29
29
 
30
- # 🎄 adventofcode
31
-
32
-
33
- ## Your framework for solving and benchmarking Advent of Code puzzles 🧩
30
+ # 🎄 adventofcode [![PyPI - Version](https://img.shields.io/pypi/v/adventofcode.svg)](https://pypi.org/project/adventofcode) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/adventofcode.svg)](https://pypi.org/project/adventofcode)
34
31
 
35
32
  <p align="center">
36
- <img src="https://github.com/user-attachments/assets/a00cec03-ab16-47c9-b9bf-a5c9162bcdfd" width="742" alt="benchmark results">
33
+ <img width="742" height="613" alt="Screenshot 2025-12-02 at 10 04 42" src="https://github.com/anze3db/adventofcode/blob/main/screenshot.png?raw=true" />
37
34
  </p>
38
35
 
39
- ## Features
36
+
37
+ ### Your framework for solving [Advent Of Code](https://adventofcode.com) puzzles 🧩 and benchmarking solutions 🚀
40
38
 
41
39
  * Project scaffolding with `uv run adventofcode init`.
42
40
  * Assert and submit your solutions with `uv run adventofcode run`.
@@ -44,9 +42,22 @@ Description-Content-Type: text/markdown
44
42
  * No copy-pasting puzzle inputs or loading inputs from files.
45
43
  * Submit the answer immediately when your code returns the result. 🏅
46
44
 
47
- ## Usage
45
+ ------
46
+
47
+ **Table of Contents**
48
+
49
+ - [Setup](#setup)
50
+ - [Session cookie](#session-cookie)
51
+ - [Run and submit your solution](#run-and-submit-your-solution)
52
+ - [Benchmark all your solutions](#benchmark-all-your-solutions)
53
+ - [Using AoC class](#using-aoc-class)
54
+ - [Happy solving 🎄](#happy-solving-)
55
+ - [Similar projects](#similar-projects)
48
56
 
49
- ### Setup
57
+
58
+
59
+
60
+ ## Setup
50
61
 
51
62
  ```bash
52
63
  uv init
@@ -105,23 +116,12 @@ def part2(inp: str) -> str | int | None:
105
116
  return None
106
117
 
107
118
  ```
119
+ ## Session cookie
108
120
 
109
- Implement your solution in `part1` and `part2` functions and run
110
-
111
- ```bash
112
- uv run adventofcode run 01.py
113
- ```
114
-
115
- This will:
116
-
117
- * Run your day 1, `part1` function with the inputs provided in the `part1_asserts` iterable and compare them with the expected values. If the function's return value doesn't match the expected answer, the command will stop. *Hint*: Each puzzle usually contains example input and an expected answer—these make for great asserts!
118
- * If all the `part1_asserts` pass, `part1` will be called with your puzzle input fetched from adventofcode.com using your session cookie.
119
- * If `part1` returns a non-None value for your puzzle input, that value will be submitted to adventofcode.com as your part 1 answer using your session cookie. All answer submissions are cached, so each unique answer will only be submitted once.
120
- * If your answer was correct the same process repeats for `part2`.
121
+ Before we can run these files we need to set up your session cookie. You can find the session cookie by going to [adventofcode.com] in your browser. Make sure you are logged in, then open your browser's developer tools and navigate to Application → Storage → Cookies. Look for the cookie named `session` and copy its value.
121
122
 
122
- ### Set your session cookie
123
123
 
124
- Add the [adventofcode.com](https://adventofcode.com) session cookie value to your `.env` file:
124
+ Then add the [adventofcode.com](https://adventofcode.com) session cookie value to your `.env` file:
125
125
 
126
126
  ```
127
127
  # Set your Advent of Code session cookie below
@@ -138,10 +138,22 @@ or to your environment variables:
138
138
  export AOC_SESSION="..."
139
139
  ```
140
140
 
141
- > [!NOTE]
142
- > You can find the session cookie by going to adventofcode.com in your browser. Make sure you are logged in, then open your browser's developer tools and navigate to Application → Storage → Cookies. Look for the cookie named `session` and copy its value.
141
+ ## Run and submit your solution
143
142
 
144
- ### Benchmarks
143
+ Implement your solution in `part1` and `part2` functions and run
144
+
145
+ ```bash
146
+ uv run adventofcode run 01.py
147
+ ```
148
+
149
+ This will:
150
+
151
+ * Run your day 1, `part1` function with the inputs provided in the `part1_asserts` iterable and compare them with the expected values. If the function's return value doesn't match the expected answer, the command will stop. *Hint*: Each puzzle usually contains example input and an expected answer—these make for great asserts!
152
+ * If all the `part1_asserts` pass, `part1` will be called with your puzzle input fetched from adventofcode.com using your session cookie.
153
+ * If `part1` returns a non-None value for your puzzle input, that value will be submitted to adventofcode.com as your part 1 answer using your session cookie. All answer submissions are cached, so each unique answer will only be submitted once.
154
+ * If your answer was correct the same process repeats for `part2`.
155
+
156
+ ## Benchmark all your solutions
145
157
 
146
158
  You can benchmark your solutions with
147
159
 
@@ -193,7 +205,9 @@ Legend:
193
205
  * 🔴 > 1s
194
206
  <!-- BENCHMARK_RESULTS_END -->
195
207
 
196
- ### Alternatively, you can build your own workflow using the lower level AoC class
208
+ ## Using AoC class
209
+
210
+ Alternatively, you can build your own workflow using the lower level AoC class
197
211
 
198
212
  ```python
199
213
  from adventofcode import AoC
@@ -0,0 +1,9 @@
1
+ adventofcode/__about__.py,sha256=6LsH-Sgy6mnAoxnUIsqchfv0y4jgogxX3Ct9FrLWQz0,21
2
+ adventofcode/__init__.py,sha256=Lyu-evu1YGwV94SThnt6-Bo4JP82Vt3JNRrCyjDd7w0,5533
3
+ adventofcode/cli.py,sha256=Ufj65ULzr_fz0l0NdnAVnIKcFgHAfP6LsRCWVd14qZ0,16422
4
+ adventofcode/utils.py,sha256=QJ2AanjoNt_yVI8VZM9plrl9cpHsEhl29NyA4Aqs8Ug,258
5
+ adventofcode-25.7.dist-info/METADATA,sha256=QDg55PI2ex8HyHPCoAAh2uQq8QcgnisihqC1_Im3atA,7649
6
+ adventofcode-25.7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
7
+ adventofcode-25.7.dist-info/entry_points.txt,sha256=Yw9pyDrVVS3XWRcjOv1BnAxkqtJdYoG747A1LysScak,83
8
+ adventofcode-25.7.dist-info/licenses/LICENSE,sha256=7w16SgIHVGYHh8TS_-XnKFvY6aKa_JDtVFoduWtIPTY,1069
9
+ adventofcode-25.7.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- adventofcode/__about__.py,sha256=ZBIYUAWQxNb4HdL1pHniLRG41vsjZ5zPL3aRyhnWv9M,21
2
- adventofcode/__init__.py,sha256=Lyu-evu1YGwV94SThnt6-Bo4JP82Vt3JNRrCyjDd7w0,5533
3
- adventofcode/cli.py,sha256=Ufj65ULzr_fz0l0NdnAVnIKcFgHAfP6LsRCWVd14qZ0,16422
4
- adventofcode/utils.py,sha256=QJ2AanjoNt_yVI8VZM9plrl9cpHsEhl29NyA4Aqs8Ug,258
5
- adventofcode-25.5.dist-info/METADATA,sha256=U8ZxUspQnrWM48xInFQUmUXkU7csphgeGf9mHjmO4vw,6917
6
- adventofcode-25.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
7
- adventofcode-25.5.dist-info/entry_points.txt,sha256=Yw9pyDrVVS3XWRcjOv1BnAxkqtJdYoG747A1LysScak,83
8
- adventofcode-25.5.dist-info/licenses/LICENSE,sha256=7w16SgIHVGYHh8TS_-XnKFvY6aKa_JDtVFoduWtIPTY,1069
9
- adventofcode-25.5.dist-info/RECORD,,