Skip to main content

Trebuchet

Python implementation of day 1 of Advent of Code (2023)

Requirements

Running Instructions

This program can be run with the following command: ./main.py [text file] in which text file contains a collection of lines to parse through for integers. The first and last integer found will then be concatenated. All the final integers from each line will then be added together and the result written to standard out.

If this program is run without arguments, the following error message will be outputted: Usage: main.py [OPTIONS] INPUT_FILE

Sample Execution

When this program is run with ./main.py resources/example.txt, the following output is generated: The result is 281

Prompt Answer

The answer for part one is 55538.
The answer for part two is 54875.

Metadata

Release files for aoc-trebuchet 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aoc-trebuchet 1.1.0
File Size Uploaded Provenance
aoc_trebuchet-1.1.0.tar.gz 3.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aoc-trebuchet 1.1.0
File Interpreter ABI Platform
aoc_trebuchet-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / aoc_trebuchet-1.1.0.tar.gz

Download URL aoc_trebuchet-1.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a254c471b8eddcafc87a393aa3a002cad9d6892e993a5fa9fba05b52d000a0f7
BLAKE2b-256 checksum
How to use checksums
5200c73dc8a18b1fc0a7e94604ea2c9208b82c4f9eb5c3bb9c368cee4c0f2511
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2024.

Transparency log

Release files / aoc_trebuchet-1.1.0-py3-none-any.whl

Download URL aoc_trebuchet-1.1.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff8cd12a73c48a67405eccf9dfb9020f219cd9bba340d4698cbf567763f456be
BLAKE2b-256 checksum
How to use checksums
b201580ff434959c0d27ad05010b23421610e3dd81d6a32906da9daa66ae89a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2024.

Transparency log

Security for aoc-trebuchet 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aoc_trebuchet-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2024.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page