advent-of-code


Nameadvent-of-code JSON
Version 2024.21.0 PyPI version JSON
download
home_pagehttps://github.com/fornwall/advent-of-code
SummaryNone
upload_time2024-12-22 17:37:08
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPi](https://img.shields.io/pypi/v/advent-of-code.svg)](https://pypi.org/project/advent-of-code/)

# advent-of-code-python
Solutions to [Advent of Code](https://adventofcode.com/) implemented in Rust and exposed to Python using [PyO3](https://pyo3.rs/).

# Usage as a library
Add dependency:

```sh
pip install --upgrade advent-of-code
```

The `advent_of_code` package exports a single `solve` function with the following signature:

```python
def solve(year: int, day: int, part: int, input: str) -> str
```

Examples:

```python
from advent_of_code import solve

assert solve(2019, 1, 1, "14") == "2"
assert solve(2019, 3, 2, "R8,U5,L5,D3\nU7,R6,D4,L4") == "30"
```

# Usage as a command line tool

```sh
$ pip install --upgrade advent-of-code
$ echo 14 | advent-of-code-py 2019 1 1
2
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fornwall/advent-of-code",
    "name": "advent-of-code",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": null,
    "download_url": null,
    "platform": null,
    "description": "[![PyPi](https://img.shields.io/pypi/v/advent-of-code.svg)](https://pypi.org/project/advent-of-code/)\n\n# advent-of-code-python\nSolutions to [Advent of Code](https://adventofcode.com/) implemented in Rust and exposed to Python using [PyO3](https://pyo3.rs/).\n\n# Usage as a library\nAdd dependency:\n\n```sh\npip install --upgrade advent-of-code\n```\n\nThe `advent_of_code` package exports a single `solve` function with the following signature:\n\n```python\ndef solve(year: int, day: int, part: int, input: str) -> str\n```\n\nExamples:\n\n```python\nfrom advent_of_code import solve\n\nassert solve(2019, 1, 1, \"14\") == \"2\"\nassert solve(2019, 3, 2, \"R8,U5,L5,D3\\nU7,R6,D4,L4\") == \"30\"\n```\n\n# Usage as a command line tool\n\n```sh\n$ pip install --upgrade advent-of-code\n$ echo 14 | advent-of-code-py 2019 1 1\n2\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "2024.21.0",
    "project_urls": {
        "Homepage": "https://github.com/fornwall/advent-of-code"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1091a72f0e17c98ac8b2d00cea4698ae17f045f23e4a9efab2f89d9ecc5addcf",
                "md5": "cd4b93ee7a1a1a3fac04779de70a5e23",
                "sha256": "765c28e3d44e84a5bebf252f6e39014e12a0ff99bf73d4e639945b9b6b46a8b5"
            },
            "downloads": -1,
            "filename": "advent_of_code-2024.21.0-cp39-abi3-macosx_10_12_universal2.whl",
            "has_sig": false,
            "md5_digest": "cd4b93ee7a1a1a3fac04779de70a5e23",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 1623928,
            "upload_time": "2024-12-22T17:37:08",
            "upload_time_iso_8601": "2024-12-22T17:37:08.921875Z",
            "url": "https://files.pythonhosted.org/packages/10/91/a72f0e17c98ac8b2d00cea4698ae17f045f23e4a9efab2f89d9ecc5addcf/advent_of_code-2024.21.0-cp39-abi3-macosx_10_12_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e2ff7113e58826914176ea9f3a9c0fd53ec242467fdd4a3eafdcbff89fe7f1b4",
                "md5": "cc099b7be5c6054044191b10308750bb",
                "sha256": "c7964d4e3e6f3039964674ea4dd34fe3bc20f6f16cc019ae5205101dfd3f675f"
            },
            "downloads": -1,
            "filename": "advent_of_code-2024.21.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "cc099b7be5c6054044191b10308750bb",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 876988,
            "upload_time": "2024-12-22T17:37:12",
            "upload_time_iso_8601": "2024-12-22T17:37:12.098271Z",
            "url": "https://files.pythonhosted.org/packages/e2/ff/7113e58826914176ea9f3a9c0fd53ec242467fdd4a3eafdcbff89fe7f1b4/advent_of_code-2024.21.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d686997b32e5f156e3b510e89724152c14456f14c69ab96692e88190d5b1197c",
                "md5": "9d60e361eb65ea2655a08aa1df037701",
                "sha256": "f6833af6334cbf677931a574993d730d2780d789413f28f1049c0cb30e963e30"
            },
            "downloads": -1,
            "filename": "advent_of_code-2024.21.0-cp39-abi3-musllinux_1_2_x86_64.whl",
            "has_sig": false,
            "md5_digest": "9d60e361eb65ea2655a08aa1df037701",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 938469,
            "upload_time": "2024-12-22T17:37:13",
            "upload_time_iso_8601": "2024-12-22T17:37:13.387598Z",
            "url": "https://files.pythonhosted.org/packages/d6/86/997b32e5f156e3b510e89724152c14456f14c69ab96692e88190d5b1197c/advent_of_code-2024.21.0-cp39-abi3-musllinux_1_2_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7dbafa250be845686843a24e300ed544f62df45649688f0dfbcee03c9fe5afd9",
                "md5": "ca90533aff04a428f3965381265af356",
                "sha256": "869307cda550aff181b01afd60cadc65bd7a3ac852035c784db7f3dcbde4d963"
            },
            "downloads": -1,
            "filename": "advent_of_code-2024.21.0-cp39-abi3-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "ca90533aff04a428f3965381265af356",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 768191,
            "upload_time": "2024-12-22T17:37:15",
            "upload_time_iso_8601": "2024-12-22T17:37:15.678063Z",
            "url": "https://files.pythonhosted.org/packages/7d/ba/fa250be845686843a24e300ed544f62df45649688f0dfbcee03c9fe5afd9/advent_of_code-2024.21.0-cp39-abi3-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-22 17:37:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fornwall",
    "github_project": "advent-of-code",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "advent-of-code"
}
        
Elapsed time: 0.82543s