adventofcode 25.5__tar.gz → 25.6__tar.gz

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.
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Calendar Versioning](https://calver.org).
7
7
 
8
+ ## [25.6]
9
+
10
+ ### Fixed
11
+
12
+ * Image issue in README
13
+
8
14
  ## [25.5]
9
15
 
10
16
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: adventofcode
3
- Version: 25.5
3
+ Version: 25.6
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/user-attachments/assets/77b711b3-c2a2-4719-8d8a-083af2067c62" />
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
@@ -1,13 +1,11 @@
1
- # 🎄 adventofcode
2
-
3
-
4
- ## Your framework for solving and benchmarking Advent of Code puzzles 🧩
1
+ # 🎄 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)
5
2
 
6
3
  <p align="center">
7
- <img src="https://github.com/user-attachments/assets/a00cec03-ab16-47c9-b9bf-a5c9162bcdfd" width="742" alt="benchmark results">
4
+ <img width="742" height="613" alt="Screenshot 2025-12-02 at 10 04 42" src="https://github.com/user-attachments/assets/77b711b3-c2a2-4719-8d8a-083af2067c62" />
8
5
  </p>
9
6
 
10
- ## Features
7
+
8
+ ### Your framework for solving [Advent Of Code](https://adventofcode.com) puzzles 🧩 and benchmarking solutions 🚀
11
9
 
12
10
  * Project scaffolding with `uv run adventofcode init`.
13
11
  * Assert and submit your solutions with `uv run adventofcode run`.
@@ -15,9 +13,22 @@
15
13
  * No copy-pasting puzzle inputs or loading inputs from files.
16
14
  * Submit the answer immediately when your code returns the result. 🏅
17
15
 
18
- ## Usage
16
+ ------
17
+
18
+ **Table of Contents**
19
+
20
+ - [Setup](#setup)
21
+ - [Session cookie](#session-cookie)
22
+ - [Run and submit your solution](#run-and-submit-your-solution)
23
+ - [Benchmark all your solutions](#benchmark-all-your-solutions)
24
+ - [Using AoC class](#using-aoc-class)
25
+ - [Happy solving 🎄](#happy-solving-)
26
+ - [Similar projects](#similar-projects)
19
27
 
20
- ### Setup
28
+
29
+
30
+
31
+ ## Setup
21
32
 
22
33
  ```bash
23
34
  uv init
@@ -76,23 +87,12 @@ def part2(inp: str) -> str | int | None:
76
87
  return None
77
88
 
78
89
  ```
90
+ ## Session cookie
79
91
 
80
- Implement your solution in `part1` and `part2` functions and run
81
-
82
- ```bash
83
- uv run adventofcode run 01.py
84
- ```
85
-
86
- This will:
87
-
88
- * 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!
89
- * If all the `part1_asserts` pass, `part1` will be called with your puzzle input fetched from adventofcode.com using your session cookie.
90
- * 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.
91
- * If your answer was correct the same process repeats for `part2`.
92
+ 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.
92
93
 
93
- ### Set your session cookie
94
94
 
95
- Add the [adventofcode.com](https://adventofcode.com) session cookie value to your `.env` file:
95
+ Then add the [adventofcode.com](https://adventofcode.com) session cookie value to your `.env` file:
96
96
 
97
97
  ```
98
98
  # Set your Advent of Code session cookie below
@@ -109,10 +109,22 @@ or to your environment variables:
109
109
  export AOC_SESSION="..."
110
110
  ```
111
111
 
112
- > [!NOTE]
113
- > 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.
112
+ ## Run and submit your solution
114
113
 
115
- ### Benchmarks
114
+ Implement your solution in `part1` and `part2` functions and run
115
+
116
+ ```bash
117
+ uv run adventofcode run 01.py
118
+ ```
119
+
120
+ This will:
121
+
122
+ * 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!
123
+ * If all the `part1_asserts` pass, `part1` will be called with your puzzle input fetched from adventofcode.com using your session cookie.
124
+ * 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.
125
+ * If your answer was correct the same process repeats for `part2`.
126
+
127
+ ## Benchmark all your solutions
116
128
 
117
129
  You can benchmark your solutions with
118
130
 
@@ -164,7 +176,9 @@ Legend:
164
176
  * 🔴 > 1s
165
177
  <!-- BENCHMARK_RESULTS_END -->
166
178
 
167
- ### Alternatively, you can build your own workflow using the lower level AoC class
179
+ ## Using AoC class
180
+
181
+ Alternatively, you can build your own workflow using the lower level AoC class
168
182
 
169
183
  ```python
170
184
  from adventofcode import AoC
@@ -0,0 +1 @@
1
+ __version__ = "25.6"
@@ -1 +0,0 @@
1
- __version__ = "25.5"
File without changes
File without changes
File without changes
File without changes