advent-of-code


Nameadvent-of-code JSON
Version 2019.12.268 PyPI version JSON
download
home_pagehttps://github.com/fornwall/advent-of-code
Summary
upload_time2021-01-05 12:07:04
maintainer
docs_urlNone
author
requires_python
license
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:

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

Examples:

```python
from advent_of_code import solve

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

# 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": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "",
    "author_email": "",
    "download_url": "",
    "platform": "",
    "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```js\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 \"2\" == solve(2019, 1, 1, \"14\")\nassert \"30\" == solve(2019, 3, 2, \"R8,U5,L5,D3\\nU7,R6,D4,L4\")\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\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "",
    "version": "2019.12.268",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "33c8d7b10529b0825686e1b4645c0b14",
                "sha256": "3c9f0de2cc5283655b38f28bf74478099bf98b2d8c1971e722d79fb3577c845d"
            },
            "downloads": -1,
            "filename": "advent_of_code-2019.12.268-cp37-cp37m-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "33c8d7b10529b0825686e1b4645c0b14",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": null,
            "size": 569036,
            "upload_time": "2021-01-05T12:07:04",
            "upload_time_iso_8601": "2021-01-05T12:07:04.449196Z",
            "url": "https://files.pythonhosted.org/packages/0f/c3/d1f36f388f906cae748fc52ee3c3478274d7e9e3d64a2034053c494e4f12/advent_of_code-2019.12.268-cp37-cp37m-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "cc9e9dbd4e507a1a1ba53ea480957f3c",
                "sha256": "1d3625fb0e16b877b7bf7d2fd724a237ae63014fc06e39becca7ddcee8e5701d"
            },
            "downloads": -1,
            "filename": "advent_of_code-2019.12.268-cp37-cp37m-manylinux1_x86_64.whl",
            "has_sig": false,
            "md5_digest": "cc9e9dbd4e507a1a1ba53ea480957f3c",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": null,
            "size": 1251417,
            "upload_time": "2021-01-05T12:07:05",
            "upload_time_iso_8601": "2021-01-05T12:07:05.652758Z",
            "url": "https://files.pythonhosted.org/packages/55/ce/13f899fce07520bcd7d2ff81be630b0bfd5d6a53000d8662480b43271cdf/advent_of_code-2019.12.268-cp37-cp37m-manylinux1_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "fabf60ea00083aa14b25bbd9096f4d75",
                "sha256": "f60657d92eef0bc97f8d4c8edac1bb21329ac815e2c4c5de2f6ab37a886b65b1"
            },
            "downloads": -1,
            "filename": "advent_of_code-2019.12.268-cp37-cp37m-manylinux2010_x86_64.whl",
            "has_sig": false,
            "md5_digest": "fabf60ea00083aa14b25bbd9096f4d75",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": null,
            "size": 1251418,
            "upload_time": "2021-01-05T12:07:06",
            "upload_time_iso_8601": "2021-01-05T12:07:06.602860Z",
            "url": "https://files.pythonhosted.org/packages/f1/67/fff4597bec9796372fa6430022b80708eed7f20a8caa4750f09179b733f6/advent_of_code-2019.12.268-cp37-cp37m-manylinux2010_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "df2712a4a5a18b2339c9ac7580d8534f",
                "sha256": "c68c33eab2796eec0156d59882703a477d4efe603e2ef90655a6b32dc7d5f19f"
            },
            "downloads": -1,
            "filename": "advent_of_code-2019.12.268-cp37-cp37m-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "df2712a4a5a18b2339c9ac7580d8534f",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": null,
            "size": 486103,
            "upload_time": "2021-01-05T12:07:07",
            "upload_time_iso_8601": "2021-01-05T12:07:07.793323Z",
            "url": "https://files.pythonhosted.org/packages/05/8f/e63bf3592c47eb2b7e5371f168e8870890685e3a05f85e4fa165d5bdfd51/advent_of_code-2019.12.268-cp37-cp37m-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "5f12053c5052c34c4a1a8f3d69dc4e01",
                "sha256": "c8c13c644d9b077173678a0aa802bc6f6d19dcff81c4384cde2e09944a9a0dbd"
            },
            "downloads": -1,
            "filename": "advent_of_code-2019.12.268-cp38-cp38-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "5f12053c5052c34c4a1a8f3d69dc4e01",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": null,
            "size": 568954,
            "upload_time": "2021-01-05T12:07:08",
            "upload_time_iso_8601": "2021-01-05T12:07:08.610722Z",
            "url": "https://files.pythonhosted.org/packages/23/0d/ef49db7fadecc1347809129972c4d351330e21e3ff7798152a8a30cb08ad/advent_of_code-2019.12.268-cp38-cp38-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "0b5420f445b81ab4b762325e03d792a8",
                "sha256": "9b42f4b698c9594e1062457b0c8999cc16a8bcc5835e500ae2eb72be21277c55"
            },
            "downloads": -1,
            "filename": "advent_of_code-2019.12.268-cp38-cp38-manylinux1_x86_64.whl",
            "has_sig": false,
            "md5_digest": "0b5420f445b81ab4b762325e03d792a8",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": null,
            "size": 1251434,
            "upload_time": "2021-01-05T12:07:09",
            "upload_time_iso_8601": "2021-01-05T12:07:09.873977Z",
            "url": "https://files.pythonhosted.org/packages/1d/77/7fe32db1b82a766e29b30e4c994a0c3930415569ad241c4110a471c22753/advent_of_code-2019.12.268-cp38-cp38-manylinux1_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "ca0b3545a837acb54559281473a502df",
                "sha256": "9514eeb2b608e8224a77d5df950e869085e6a3c96e3f134618aa5ace46fb57b4"
            },
            "downloads": -1,
            "filename": "advent_of_code-2019.12.268-cp38-cp38-manylinux2010_x86_64.whl",
            "has_sig": false,
            "md5_digest": "ca0b3545a837acb54559281473a502df",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": null,
            "size": 1251438,
            "upload_time": "2021-01-05T12:07:10",
            "upload_time_iso_8601": "2021-01-05T12:07:10.847462Z",
            "url": "https://files.pythonhosted.org/packages/12/16/542e1d563e433a09340348a1f6f816d39c732b8a6bf91742043025e39dc0/advent_of_code-2019.12.268-cp38-cp38-manylinux2010_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "27b94ac33c1fac63267e18cd09ee7b38",
                "sha256": "72ac788f4ed755a67ad1e89a07c37aa1a9a8ae0feaef91d83818924c19788473"
            },
            "downloads": -1,
            "filename": "advent_of_code-2019.12.268-cp38-cp38-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "27b94ac33c1fac63267e18cd09ee7b38",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": null,
            "size": 486026,
            "upload_time": "2021-01-05T12:07:11",
            "upload_time_iso_8601": "2021-01-05T12:07:11.869390Z",
            "url": "https://files.pythonhosted.org/packages/d5/b9/7b663f6ac1dcb7bd43c099ae28003d36870703e88f981b517e6fc1c8b452/advent_of_code-2019.12.268-cp38-cp38-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "8eb075d20920be3b05846fe4e4d391cd",
                "sha256": "6eb01ba1dd424e4296b04d28f7835ed612bf1985de7a3df1f4019c7e688fc709"
            },
            "downloads": -1,
            "filename": "advent_of_code-2019.12.268-cp39-cp39-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "8eb075d20920be3b05846fe4e4d391cd",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 568980,
            "upload_time": "2021-01-05T12:07:12",
            "upload_time_iso_8601": "2021-01-05T12:07:12.973143Z",
            "url": "https://files.pythonhosted.org/packages/4a/f0/c14598df852e252b118d83231291b35b1f3d50bef685a385454642232528/advent_of_code-2019.12.268-cp39-cp39-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "89574c89ee6f3f4e97fbe941bc47f057",
                "sha256": "1233cb57bd9c6c9898b6ddecca0362cc087510559de57e12e344ff93bc4f7f4f"
            },
            "downloads": -1,
            "filename": "advent_of_code-2019.12.268-cp39-cp39-manylinux1_x86_64.whl",
            "has_sig": false,
            "md5_digest": "89574c89ee6f3f4e97fbe941bc47f057",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 1251445,
            "upload_time": "2021-01-05T12:07:14",
            "upload_time_iso_8601": "2021-01-05T12:07:14.278208Z",
            "url": "https://files.pythonhosted.org/packages/31/b7/9a7a21eeab4cf63d27eb57515f63cc2e65ac92b16327c47cc77cdd02aa34/advent_of_code-2019.12.268-cp39-cp39-manylinux1_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "fea55b01a1326e8ee619bce2e2a3c214",
                "sha256": "a0e4c16ffb960b7eec868b5833e56beb9940e003e232de5fca78e42b98059c56"
            },
            "downloads": -1,
            "filename": "advent_of_code-2019.12.268-cp39-cp39-manylinux2010_x86_64.whl",
            "has_sig": false,
            "md5_digest": "fea55b01a1326e8ee619bce2e2a3c214",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 1251448,
            "upload_time": "2021-01-05T12:07:15",
            "upload_time_iso_8601": "2021-01-05T12:07:15.268776Z",
            "url": "https://files.pythonhosted.org/packages/70/41/7c08355cafbfcaee9b4b00dd0d733c1e375a7add7b6fe2affe7486d22374/advent_of_code-2019.12.268-cp39-cp39-manylinux2010_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "5a6331cf22f47fb8fe40a2c52363bccb",
                "sha256": "575a8154b698ed34736abc6e6a5e451f03389f417f57e64f2d982afc3e05e464"
            },
            "downloads": -1,
            "filename": "advent_of_code-2019.12.268-cp39-cp39-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "5a6331cf22f47fb8fe40a2c52363bccb",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 485292,
            "upload_time": "2021-01-05T12:07:16",
            "upload_time_iso_8601": "2021-01-05T12:07:16.440137Z",
            "url": "https://files.pythonhosted.org/packages/c6/33/50cd37e3f71d723c9f90a5897c8270b85f82164cc5683e32f4aaf765d810/advent_of_code-2019.12.268-cp39-cp39-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-01-05 12:07:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "fornwall",
    "error": "Could not fetch GitHub repository",
    "lcname": "advent-of-code"
}
        
Elapsed time: 0.19331s