From d6dd0e5232698640c0c4923d55f79298fda40282 Mon Sep 17 00:00:00 2001 From: Aaron <7063649+ahcodedev@users.noreply.github.com> Date: Thu, 5 Nov 2026 23:00:12 -0800 Subject: [PATCH 1/2] Update Python version --- .github/dependabot.yml | 4 +-- .github/workflows/release-drafter.yml | 3 --- .python-version | 2 +- pyproject.toml | 2 +- uv.lock | 38 ++------------------------- 5 files changed, 6 insertions(+), 43 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d3535f0..acc4078 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -31,7 +31,7 @@ updates: - package-ecosystem: "docker" directory: "/.devcontainer" schedule: - interval: "weekly" + interval: "monthly" cooldown: default-days: 7 labels: ["dependencies"] @@ -40,7 +40,7 @@ updates: - package-ecosystem: "devcontainers" directory: "/" schedule: - interval: "weekly" + interval: "monthly" cooldown: default-days: 7 labels: ["dependencies"] diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index a1ab2b4..3434748 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -6,9 +6,6 @@ on: pull_request: types: [ opened, reopened, synchronize, labeled, unlabeled ] -permissions: - contents: read - jobs: update-draft: if: github.event_name == 'push' diff --git a/.python-version b/.python-version index 6324d40..93a848f 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.14 +3.15 diff --git a/pyproject.toml b/pyproject.toml index de1e577..4e92aa2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "pypricecharting" description = "Python PriceCharting API Client" version = "0.0.1" -requires-python = ">=3.14" +requires-python = ">=3.15" dependencies = [] diff --git a/uv.lock b/uv.lock index 5410bda..a9ce786 100644 --- a/uv.lock +++ b/uv.lock @@ -1,6 +1,6 @@ version = 1 -revision = 3 -requires-python = ">=3.14" +revision = 5 +requires-python = ">=3.15" [[package]] name = "codespell" @@ -26,40 +26,6 @@ version = "7.17.2" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/78/4a/740c3134227763ebc30a226d7f2f29b25e35898d162dd8b2dd792be83fb2/coverage-7.17.2.tar.gz", hash = "sha256:d05a1bef52f4d7f1b484a1cf46a8929e50963f910e51396373f06cd3b6248f38", size = 996756, upload-time = "2026-11-04T19:52:34.313Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/96/f9/30d6ff7a66e1519d79940fdee542ead9a63601de60be5cc9fe62c74bab58/coverage-7.17.2-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:0439f77deb5c023003533ae8909a9aa1e174c847d655327035b1e542c7c8a54e", size = 229094, upload-time = "2026-11-04T19:50:42.193Z" }, - { url = "https://files.pythonhosted.org/packages/1a/db/82c722c37dce98fe1abc953768903752bdd415dfe8cfeb7b744a7236a735/coverage-7.17.2-cp314-cp314-android_24_x86_64.whl", hash = "sha256:e86a66f96d80c770daeed78394c1d4f6e8d03e5a3e08c5dab5275d56414f296a", size = 229213, upload-time = "2026-11-04T19:50:43.779Z" }, - { url = "https://files.pythonhosted.org/packages/7d/07/71b68d870975776cb185f11cd80e053b01739f3646488fe8b9721744f56a/coverage-7.17.2-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:87b30f3daa0bedda6b770b303410a6def007844772aaa143dc52675b3d95cd8a", size = 227374, upload-time = "2026-11-04T19:50:45.258Z" }, - { url = "https://files.pythonhosted.org/packages/aa/23/ed60f79576175e108c77df2bdc116f46e367aab108542ddeecaab752f0f6/coverage-7.17.2-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:3f219efbc3ec71c377e278dee201633e1d4ad0d2d9bdaddfd9489b2869d584c4", size = 227676, upload-time = "2026-11-04T19:50:47.095Z" }, - { url = "https://files.pythonhosted.org/packages/10/7e/60a51850d3ff659b82cc211bc98fa126aab2ac9b81bd4ed6abc3e3720a09/coverage-7.17.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:36248fb6c03341501169539bcab35eb3a59159100be1246fad3c14cb73c17685", size = 227915, upload-time = "2026-11-04T19:50:48.581Z" }, - { url = "https://files.pythonhosted.org/packages/77/80/a9539c15076fb9b95d8cbdb7f0caec90857d80bddca3eeca439f5e2e64e2/coverage-7.17.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:2a6281011cf85699763bf88ab55e0774f6696f87b390f39152b14ecefadccb59", size = 228072, upload-time = "2026-11-04T19:50:50.073Z" }, - { url = "https://files.pythonhosted.org/packages/7f/3b/0a84b6032511834105fd4f8a8b4e76927783cea03dc4796032d5c4bfec8b/coverage-7.17.2-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:3dfefb1ec16ca1a01e5da40ba162e268ced8bd3624b9eba4e9384ebfa14af7ec", size = 259991, upload-time = "2026-11-04T19:50:51.665Z" }, - { url = "https://files.pythonhosted.org/packages/2e/e4/a3e6b8bcc219b00ea91e36f071c2659b253e5d6e1b258c31eb4524231718/coverage-7.17.2-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:34e5c7a2da36804c6e6f10b368eae01ad56f5a4ac5ecce7297300a3d46fdef2a", size = 262995, upload-time = "2026-11-04T19:50:53.236Z" }, - { url = "https://files.pythonhosted.org/packages/05/54/a666b65c5bb145d8796b7902ff1c0f60600a6c2a08949e20f2fb7af15de3/coverage-7.17.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e6bf531deaebf8f69ba6015bba3fb817cab6694dfb69ac2a708889dc59a3926e", size = 263980, upload-time = "2026-11-04T19:50:55.366Z" }, - { url = "https://files.pythonhosted.org/packages/a6/73/ac9d06da9e0c143b874a68b17d8dfeedc45acdf1bdcee5b22a42bece098e/coverage-7.17.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:88d4dc83b6ad09a2134cad9d8ec780b274b17ac7dfba8c2c6e92e3bc468fe85d", size = 266457, upload-time = "2026-11-04T19:50:57.04Z" }, - { url = "https://files.pythonhosted.org/packages/87/b1/8a500e16cf787383b00b5a86eb50a490b4d8ebde505f92e1aaca515afc0a/coverage-7.17.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8dc17707fd463b4dfab53792e41d50a23316ac6b98539007aa2388a1d44a8535", size = 259768, upload-time = "2026-11-04T19:50:58.508Z" }, - { url = "https://files.pythonhosted.org/packages/f7/be/642762c5973b89e2b8bf66c95778bdd80e96ceea442ae8fa753732597b73/coverage-7.17.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:df0a34d445eea64f3766e9ca2ff57bcde600a89c7c0330434a7a37e8d6e2549f", size = 261831, upload-time = "2026-11-04T19:51:00.25Z" }, - { url = "https://files.pythonhosted.org/packages/e4/b1/f7d6c0ef0a4aecf3f91f19df4ab3fa131fec8c89f554187511716584c9f5/coverage-7.17.2-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:c5a98aff9eb681312ed403ecb7beb5f15fd25d6e0acc2554b9ca4b4d6f0b6705", size = 259871, upload-time = "2026-11-04T19:51:01.776Z" }, - { url = "https://files.pythonhosted.org/packages/c7/c0/3ae087d52cfa5119ad9ecbd193c40089924d1101cef7333f15a86dccb444/coverage-7.17.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:7565c17092f2f4021abbe3f5007300c224f362364a388f5ddad9216dab44b611", size = 264169, upload-time = "2026-11-04T19:51:03.365Z" }, - { url = "https://files.pythonhosted.org/packages/c5/95/d324108991f892cb361ef8b2f91bd4cda9c2563e0954247409e9e6b911ab/coverage-7.17.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:555257578e20a46020c27b2af4ef99059cd906aa9b8e163baf9da9a5afb65a64", size = 259502, upload-time = "2026-11-04T19:51:04.91Z" }, - { url = "https://files.pythonhosted.org/packages/14/b5/13a62eac66cecbaaa098bb753a3693b44454a4d21d53db4f1a0953f35f0b/coverage-7.17.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:460ba2139866e758c3a8e9d9422fdc889942bcbc5ccaf710dc4fbd8707d14aa8", size = 261613, upload-time = "2026-11-04T19:51:06.414Z" }, - { url = "https://files.pythonhosted.org/packages/53/13/9ea31cfa72434449b9a98666760169d1e0ab31b3f6cdb12e68149106668e/coverage-7.17.2-cp314-cp314-win32.whl", hash = "sha256:e72cf9556f799c3fce7597c1bd7dbfc9104befbd08088deb3b9ae9fd98117c02", size = 229842, upload-time = "2026-11-04T19:51:08.61Z" }, - { url = "https://files.pythonhosted.org/packages/f6/cc/aa8f34b014979c973740f5a5ed6861ecfc6009082c70e72030ca1519e0f8/coverage-7.17.2-cp314-cp314-win_amd64.whl", hash = "sha256:205f9e329d9d5e47c320f8712326a01620689edae50531cc8934511e2c5e8f7e", size = 230474, upload-time = "2026-11-04T19:51:10.167Z" }, - { url = "https://files.pythonhosted.org/packages/49/64/16afaa19b3886dc157c3c5ebace5241b84b96a005cb28545584e66b80895/coverage-7.17.2-cp314-cp314-win_arm64.whl", hash = "sha256:a5909dd087006c70c128297312ba67d877123e871100645d9bd73ae021a4d01d", size = 230325, upload-time = "2026-11-04T19:51:11.63Z" }, - { url = "https://files.pythonhosted.org/packages/e8/95/acc865e1411c8ebc5c5d230367f3bfed5c605ed54bb41b84fc58f4e7f137/coverage-7.17.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:674bcd023a3743666d4d7a15238e57a00c968553780a36c80d3779fc410b912c", size = 228384, upload-time = "2026-11-04T19:51:13.729Z" }, - { url = "https://files.pythonhosted.org/packages/10/98/02c37c6a928ccfc84b7a43eda44d96d3b1ccbc93989c178754b7e67e7650/coverage-7.17.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ba45dc072bfbf1798e68ec81379b73473fc912174bff9f91924d77711a1d2b30", size = 228758, upload-time = "2026-11-04T19:51:15.394Z" }, - { url = "https://files.pythonhosted.org/packages/28/ab/d503b0aaebb92b171260469463915af5e16a64457b289d4cb844e8c366ac/coverage-7.17.2-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:0d8a5dc709da9b90ad5cc859a9b88c9b801e65ca2fbf7cbdbed5b9cbf457fcc9", size = 268749, upload-time = "2026-11-04T19:51:17.179Z" }, - { url = "https://files.pythonhosted.org/packages/f6/e5/6d6ba15bde22fcccd07e14305be14291d041f732771a73f787297445d3e7/coverage-7.17.2-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:248873a144c067f981742ff4bbfb48b57e281a8cb7a3821d4e293bdb50b47970", size = 271301, upload-time = "2026-11-04T19:51:18.893Z" }, - { url = "https://files.pythonhosted.org/packages/63/e7/bd6dcec5b8130f5bd8679087a2bc3a50a53c4ee78d5ec449610020088ff3/coverage-7.17.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d0332e2b27fc5cc761d6b8a33118b958e6a46be7f00fd30e03a5cf103350c0b3", size = 273924, upload-time = "2026-11-04T19:51:20.605Z" }, - { url = "https://files.pythonhosted.org/packages/55/c1/b3f06aa1f1c51f4295fdfa6500eb7409aaa6273cf5f27bafc25217f3547d/coverage-7.17.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:27fc4384a1154f7df30d304ccddc05ef457368c065670ecbd392606279b3329a", size = 275412, upload-time = "2026-11-04T19:51:22.09Z" }, - { url = "https://files.pythonhosted.org/packages/a7/f0/b68ab3654af3541488b26856e3043c13c782d8e6104fc8149746ecaa83f0/coverage-7.17.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:603140eeae3f9adc562f91b1b98d4d1fc491bd1f66c5082482c568d0b7891bb1", size = 268638, upload-time = "2026-11-04T19:51:23.653Z" }, - { url = "https://files.pythonhosted.org/packages/fd/16/4a9d56bd4ca4572cbd20f9843813623cef1b88b15f979ec4f381704d2f84/coverage-7.17.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:be0fec33b69c40f845c76f67fb4495b62a84da8c31a579dc6e18c5a63fa6a1f3", size = 271211, upload-time = "2026-11-04T19:51:25.678Z" }, - { url = "https://files.pythonhosted.org/packages/78/d2/1c04b38bab92d2b7d62718d170b5bea43755fefee7e29cc056448c433d92/coverage-7.17.2-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:960e199965e506d78f62252355397a05c8cee8072ad2d82d932745517d566539", size = 268638, upload-time = "2026-11-04T19:51:27.262Z" }, - { url = "https://files.pythonhosted.org/packages/26/c9/2c639e9aee78b0522cb3dc245de09685e34b479bcc45d4d2a277d0de1174/coverage-7.17.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:d7a363c0788435ff5324d9582d37c63f215c75f974d755cfd6cfc9fbe0e64b04", size = 272935, upload-time = "2026-11-04T19:51:28.96Z" }, - { url = "https://files.pythonhosted.org/packages/79/1f/11bdaf03c1b12f88094b57420b4238d3974ebec6a7d674b645a54e24f90c/coverage-7.17.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:afd81658f17b1a50bbc1d247a61fa435be0be471246136eb946f9cbfc437a4fa", size = 268057, upload-time = "2026-11-04T19:51:30.44Z" }, - { url = "https://files.pythonhosted.org/packages/bb/f6/43d40d1b4d4892e54c68a241cd5b92efed4d5934109e0e5e24a94759f732/coverage-7.17.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:d88fcc24470d73ed4360e910f8549718b913ba56fb8775d9ef929a647835dfea", size = 269986, upload-time = "2026-11-04T19:51:31.913Z" }, - { url = "https://files.pythonhosted.org/packages/8e/33/6874185b791c71684c401fc74abd71bbdb102e8ee41c8f380cf25af41d29/coverage-7.17.2-cp314-cp314t-win32.whl", hash = "sha256:2c42c222939b8699e7bc0e453149627f211ebbbb2f74c1a04331b0cd9834e2c8", size = 230160, upload-time = "2026-11-04T19:51:33.304Z" }, - { url = "https://files.pythonhosted.org/packages/16/e0/9057b4cf962ca6089b144f0d93a748f5e2d13876dd0f33f9d5a2c2ec49d2/coverage-7.17.2-cp314-cp314t-win_amd64.whl", hash = "sha256:b94c509e26603ba7f8cb1bf8bb63967c7be533493be5668d8442cd06ec853d76", size = 231086, upload-time = "2026-11-04T19:51:35.002Z" }, - { url = "https://files.pythonhosted.org/packages/5e/4f/bd626297c942380279dff323e1d8a8937990d553119a4f887358488b1b54/coverage-7.17.2-cp314-cp314t-win_arm64.whl", hash = "sha256:eca90e028932de597e2c50f454ad8cc631281e14d20b9f801a649ab555deb580", size = 230657, upload-time = "2026-11-04T19:51:36.742Z" }, { url = "https://files.pythonhosted.org/packages/ac/92/ff8badc05ff0c4ed26ca62fb3d155e9014ff65768b76d5f399e63d9e9a79/coverage-7.17.2-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:cbf751ae86ef0d80e719915c087b05776c8d9300141f6c3e56f536d78a62c301", size = 229092, upload-time = "2026-11-04T19:51:38.222Z" }, { url = "https://files.pythonhosted.org/packages/5a/8b/c5a5392e5a5dceb68f3b1b8cdba925c7997699f351d811cd4a41add9c29e/coverage-7.17.2-cp315-cp315-android_24_x86_64.whl", hash = "sha256:249c4b4eaac9ced6fb85e465027ca26348111c2760108fffc356a16be4f54cd9", size = 229212, upload-time = "2026-11-04T19:51:39.738Z" }, { url = "https://files.pythonhosted.org/packages/7b/bc/9259a1fc49ad663861cbfb3df6a99d4c8f62a11b242a2db3358822d28b17/coverage-7.17.2-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:e2fd4e664a34854cae8db58ca6132fb7b5a7efc67b14233e797194bd0d63b6b0", size = 227390, upload-time = "2026-11-04T19:51:41.16Z" }, From a1189ea6d97d7b65aa1271f186407a793568d0d8 Mon Sep 17 00:00:00 2001 From: Aaron <7063649+ahcodedev@users.noreply.github.com> Date: Sun, 8 Nov 2026 12:44:32 -0800 Subject: [PATCH 2/2] Add API Types --- CI.md | 13 ++ README.md | 46 +---- RELEASE.md | 25 +++ pyproject.toml | 5 +- src/pypricecharting/hello_world.py | 6 - src/pypricecharting/types/condition.py | 77 +++++++ src/pypricecharting/types/console.py | 246 +++++++++++++++++++++++ src/pypricecharting/types/genre.py | 51 +++++ src/pypricecharting/types/rate_limit.py | 13 ++ src/pypricecharting/types/status.py | 9 + tests/test_hello_world.py | 5 - tests/types_tests/test_condition.py | 109 ++++++++++ tests/types_tests/test_console.py | 256 ++++++++++++++++++++++++ tests/types_tests/test_genre.py | 61 ++++++ tests/types_tests/test_ratelimit.py | 17 ++ tests/types_tests/test_status.py | 19 ++ uv.lock | 171 ++++++++++++++++ 17 files changed, 1076 insertions(+), 53 deletions(-) create mode 100644 CI.md create mode 100644 RELEASE.md delete mode 100644 src/pypricecharting/hello_world.py create mode 100644 src/pypricecharting/types/condition.py create mode 100644 src/pypricecharting/types/console.py create mode 100644 src/pypricecharting/types/genre.py create mode 100644 src/pypricecharting/types/rate_limit.py create mode 100644 src/pypricecharting/types/status.py delete mode 100644 tests/test_hello_world.py create mode 100644 tests/types_tests/test_condition.py create mode 100644 tests/types_tests/test_console.py create mode 100644 tests/types_tests/test_genre.py create mode 100644 tests/types_tests/test_ratelimit.py create mode 100644 tests/types_tests/test_status.py diff --git a/CI.md b/CI.md new file mode 100644 index 0000000..7df7bb0 --- /dev/null +++ b/CI.md @@ -0,0 +1,13 @@ +# CI and Security + +| Workflow | Runs on | Purpose | +| ------------------------------------------------- | ---------------------------- | ---------------------------------------------- | +| `python.yml` | push / PR to `main` | lint and unit tests | +| `security.yml` | push to `main`, all PRs | zizmor workflow audit, gitleaks secret scan | +| `release-drafter.yml` | push to `main`, PRs | update the draft release, label PRs | +| `release.yml` | manual | publish a release | + +* GitHub Actions are pinned to full commit SHAs, with the version in a trailing comment +* Dependabot (`.github/dependabot.yml`) checks weekly for updates to GitHub Actions, Python + dependencies, the dev container image, and dev container features. New releases wait 7 days + before an update is proposed. Dependabot PRs get the `dependencies` label diff --git a/README.md b/README.md index 300d92f..16bbe3a 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# PyPricecharting API Client ![](https://github.com/ahcodedev/pypricecharting/actions/workflows/python.yml/badge.svg?branch=main) +# PyPriceCharting API Client ![](https://github.com/ahcodedev/pypricecharting/actions/workflows/python.yml/badge.svg?branch=main) [![Security](https://github.com/ahcodedev/pypricecharting/actions/workflows/security.yml/badge.svg?branch=main)](https://github.com/ahcodedev/pypricecharting/actions/workflows/security.yml) [![gitleaks](https://img.shields.io/badge/protected%20by-gitleaks-blue)](https://github.com/gitleaks/gitleaks) -Pricecharting API Client written in Python +PriceCharting API Client written in Python ## Setup @@ -24,12 +24,8 @@ manage project configuration and commands * Install Docker * Install VSCode * Open project folder in VS Code -* Optional - Install recommended extensions * Reopen in container using Remote Development Container menu -The base image, `just`, and `uv` are pinned by version and digest in `.devcontainer/Dockerfile` -and updated by Dependabot. To change the Python version, edit the `FROM` line. - ## Project Commands * `just setup` - install tools and git hooks, then sync dependencies @@ -53,47 +49,15 @@ and updated by Dependabot. To change the Python version, edit the `FROM` line. ## CI and Security -| Workflow | Runs on | Purpose | -| ------------------------------------------------- | ---------------------------- | ---------------------------------------------- | -| `python.yml` | push / PR to `main` | lint and unit tests | -| `security.yml` | push to `main`, all PRs | zizmor workflow audit, gitleaks secret scan | -| `release-drafter.yml` | push to `main`, PRs | update the draft release, label PRs | -| `release.yml` | manual | publish a release | - -* GitHub Actions are pinned to full commit SHAs, with the version in a trailing comment -* Dependabot (`.github/dependabot.yml`) checks weekly for updates to GitHub Actions, Python - dependencies, the dev container image, and dev container features. New releases wait 7 days - before an update is proposed. Dependabot PRs get the `dependencies` label +See [CI.md](CI.md) for the GitHub Actions workflows and Dependabot setup. ## Releases -Releases are managed with [Release Drafter](https://github.com/release-drafter/release-drafter), -which reads the **release labels** on merged pull requests. - -A release label is a GitHub label added to the pull request itself, from the **Labels** section -of the PR sidebar. Release Drafter only reads these labels. Commit messages and PR titles are not -parsed, so prefixes like `feat:` or `fix:` have no effect. Only the labels below count as release -labels; other repository labels (e.g. `good first issue`, `question`) are ignored. - -| Release label | Version bump | Release notes section | -| ----------------------------------------------------------------- | ------------ | --------------------- | -| `breaking` | major | Breaking Changes | -| `feature`, `enhancement` | minor | Features | -| `bug`, `fix` | patch | Bug Fixes | -| `chore`, `ci`, `dependencies`, `documentation`, `refactor` | patch | Maintenance | -| `skip-changelog` | none | Excluded | - -* Every PR must have at least one release label, or the `Release Drafter / require-label` check fails. If a release - has PRs with different labels, the largest bump wins -* Release labels are added automatically from the PR's branch name prefix (`feat/`, `fix/`, `chore/`, - `ci/`, `docs/`, `refactor/`) and from the files it changes. You can add or change them by hand -* Merging to `main` updates a draft GitHub Release with the next version and notes -* To release, run the **Release** workflow from the Actions tab. It bumps the version in - `pyproject.toml`/`uv.lock`, updates `CHANGELOG.md`, tags the release, and uploads build artifacts +See [RELEASE.md](RELEASE.md) for how releases and release labels work. ## Usage -* Usage Notes +### Types ## Supporting Files diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000..ed0b326 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,25 @@ +# Releases + +Releases are managed with [Release Drafter](https://github.com/release-drafter/release-drafter), +which reads the **release labels** on merged pull requests. + +A release label is a GitHub label added to the pull request itself, from the **Labels** section +of the PR sidebar. Release Drafter only reads these labels. Commit messages and PR titles are not +parsed, so prefixes like `feat:` or `fix:` have no effect. Only the labels below count as release +labels; other repository labels (e.g. `good first issue`, `question`) are ignored. + +| Release label | Version bump | Release notes section | +| ----------------------------------------------------------------- | ------------ | --------------------- | +| `breaking` | major | Breaking Changes | +| `feature`, `enhancement` | minor | Features | +| `bug`, `fix` | patch | Bug Fixes | +| `chore`, `ci`, `dependencies`, `documentation`, `refactor` | patch | Maintenance | +| `skip-changelog` | none | Excluded | + +* Every PR must have at least one release label, or the `Release Drafter / require-label` check fails. If a release + has PRs with different labels, the largest bump wins +* Release labels are added automatically from the PR's branch name prefix (`feat/`, `fix/`, `chore/`, + `ci/`, `docs/`, `refactor/`) and from the files it changes. You can add or change them by hand +* Merging to `main` updates a draft GitHub Release with the next version and notes +* To release, run the **Release** workflow from the Actions tab. It bumps the version in + `pyproject.toml`/`uv.lock`, updates `CHANGELOG.md`, tags the release, and uploads build artifacts diff --git a/pyproject.toml b/pyproject.toml index 4e92aa2..e6b5408 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,10 @@ description = "Python PriceCharting API Client" version = "0.0.1" requires-python = ">=3.15" -dependencies = [] +dependencies = [ + "httpx2>=2.16.0", + "pydantic>=2.14.3", +] [build-system] requires = ["uv_build>=0.13.7,<0.14.0"] diff --git a/src/pypricecharting/hello_world.py b/src/pypricecharting/hello_world.py deleted file mode 100644 index 1965b2b..0000000 --- a/src/pypricecharting/hello_world.py +++ /dev/null @@ -1,6 +0,0 @@ -"""Sample Python file""" - - -def hello_world(): - """Prints hello world to console""" - return "Hello World!" diff --git a/src/pypricecharting/types/condition.py b/src/pypricecharting/types/condition.py new file mode 100644 index 0000000..8c8132d --- /dev/null +++ b/src/pypricecharting/types/condition.py @@ -0,0 +1,77 @@ +from enum import Enum, unique + +# https://www.pricecharting.com/api-documentation#includes + + +@unique +class VideoGames(Enum): + """Condition IDs for video game products.""" + + LOOSE = 1 + NEW_AND_SEALED = 2 + CIB = 3 + GRADED = 5 + BOX_ONLY = 6 + MANUAL_ONLY = 7 + ITEM_AND_BOX = 8 + ITEM_AND_MANUAL = 9 + BOX_AND_MANUAL = 10 + GRADED_CIB = 13 + + +@unique +class Cards(Enum): + """Condition IDs for trading card products.""" + + UNGRADED = 1 + GRADE_8 = 2 + GRADE_7 = 3 + GRADE_9 = 5 + GRADE_9_5 = 6 + GRADE_10 = 7 + BGS_10 = 8 + GRADE_1 = 9 + GRADE_2 = 10 + GRADE_3 = 13 + + +@unique +class Comics(Enum): + """Condition IDs for comic book products.""" + + UNGRADED = 1 + GRADE_6_0 = 2 + GRADE_4_0 = 3 + GRADE_8_0 = 5 + GRADE_9_2 = 6 + GRADE_9_8 = 7 + GRADE_10_0 = 8 + GRADE_2_0 = 9 + GRADE_9_6 = 10 + GRADE_3_0 = 13 + + +@unique +class Coins(Enum): + """Condition IDs for coin products.""" + + UNGRADED = 1 + AU_50_58 = 2 + VF_20_35 = 3 + MS_62 = 5 + MS_64 = 6 + MS_66 = 7 + F_12_15 = 8 + XF_40_45 = 9 + MS_60 = 10 + MS_61 = 13 + + +@unique +class Condition(Enum): + """Condition ID enums grouped by product category.""" + + VIDEOGAMES = VideoGames + CARDS = Cards + COMICS = Comics + COINS = Coins diff --git a/src/pypricecharting/types/console.py b/src/pypricecharting/types/console.py new file mode 100644 index 0000000..d4c4cbe --- /dev/null +++ b/src/pypricecharting/types/console.py @@ -0,0 +1,246 @@ +from enum import Enum, unique + +# https://www.pricecharting.com/api-documentation#console-ids + + +@unique +class Console(Enum): + """PriceCharting Console IDs""" + + PANASONIC_3DO = "G25" + ACTION_MAX = "G36545" + ADVANCED_PICO_BEENA = "G102752" + AMIGA = "G46" + AMIGA_CD32 = "G92" + AMIIBO = "G56" + AMIIBO_CARDS = "G46757" + AMSTRAD_CPC = "G70472" + AMSTRAD_GX4000 = "G66098" + APPLE_II = "G79417" + ARCADIA_2001 = "G91" + ASIAN_ENGLISH_NINTENDO_3DS = "G56638" + ASIAN_ENGLISH_PSP = "G59682" + ASIAN_ENGLISH_PLAYSTATION_2 = "G70756" + ASIAN_ENGLISH_PLAYSTATION_3 = "G56634" + ASIAN_ENGLISH_PLAYSTATION_4 = "G56635" + ASIAN_ENGLISH_PLAYSTATION_5 = "G56636" + ASIAN_ENGLISH_PLAYSTATION_VITA = "G56637" + ASIAN_ENGLISH_SWITCH = "G56633" + ASIAN_ENGLISH_SWITCH_2 = "G80190" + ASIAN_ENGLISH_XBOX = "G72899" + ASIAN_XBOX_360 = "G79471" + ATARI_2600 = "G24" + ATARI_2800 = "G84152" + ATARI_400 = "G45" + ATARI_5200 = "G31" + ATARI_7800 = "G33" + ATARI_LYNX = "G26" + ATARI_ST = "G146" + ATARI_XE = "G72528" + BALLY_ASTROCADE = "G90" + BANDAI_PLAYDIA = "G94412" + CD_I = "G37" + CASIO_LOOPY = "G63134" + CLUB_NINTENDO_MAGAZINE = "G77760" + COLECOVISION = "G30" + COMMODORE_128 = "G72569" + COMMODORE_16 = "G56918" + COMMODORE_64 = "G28" + DISNEY_INFINITY = "G52" + DREAMCAST_MAGAZINE = "G53043" + ELECTRONIC_GAMING_MONTHLY = "G53047" + ENTEX_ADVENTURE_VISION = "G72005" + EVERCADE = "G28704" + FM_TOWNS_MARTY = "G55665" + FAIRCHILD_CHANNEL_F = "G83" + FAMICOM = "G55" + FAMICOM_DISK_SYSTEM = "G117" + GAME_AND_WATCH = "G68" + GAME_INFORMER = "G53044" + GAME_PLAYERS = "G93674" + GAME_WAVE = "G55666" + GAME_COM = "G93" + GAMEBOY = "G49" + GAMEBOY_ADVANCE = "G1" + GAMEBOY_COLOR = "G2" + GAMEPRO = "G53046" + GAMECUBE = "G3" + GIZMONDO = "G7728" + HYPERSCAN = "G55667" + INTELLIVISION = "G27" + JP_3DO = "G68532" + JP_GAMEBOY = "G112" + JP_GAMEBOY_ADVANCE = "G79" + JP_GAMEBOY_COLOR = "G113" + JP_GAMECUBE = "G98" + JP_LASERACTIVE = "G68060" + JP_MSX = "G122" + JP_MSX2 = "G128" + JP_NEO_GEO_AES = "G115" + JP_NEO_GEO_CD = "G43342" + JP_NEO_GEO_MVS = "G114" + JP_NEO_GEO_POCKET = "G59835" + JP_NEO_GEO_POCKET_COLOR = "G129" + JP_NINTENDO_3DS = "G119" + JP_NINTENDO_64 = "G99" + JP_NINTENDO_DS = "G111" + JP_NINTENDO_SWITCH = "G100" + JP_NINTENDO_SWITCH_2 = "G80189" + JP_PC_ENGINE = "G82" + JP_PC_ENGINE_CD = "G154" + JP_PSP = "G110" + JP_PLAYSTATION = "G107" + JP_PLAYSTATION_2 = "G108" + JP_PLAYSTATION_3 = "G109" + JP_PLAYSTATION_4 = "G118" + JP_PLAYSTATION_5 = "G7470" + JP_PLAYSTATION_VITA = "G106" + JP_SEGA_DREAMCAST = "G64" + JP_SEGA_GAME_GEAR = "G74" + JP_SEGA_MARK_III = "G6900" + JP_SEGA_MEGA_CD = "G140" + JP_SEGA_MEGA_DRIVE = "G105" + JP_SEGA_PICO = "G137" + JP_SEGA_SATURN = "G67" + JP_SUPER_32X = "G142" + JP_VIRTUAL_BOY = "G76" + JP_WII = "G102" + JP_WII_U = "G104" + JP_XBOX = "G125" + JP_XBOX_360 = "G124" + JP_XBOX_ONE = "G126" + JP_XBOX_SERIES_X = "G7587" + JAGUAR = "G21" + JAGUAR_CD = "G65467" + LASERACTIVE = "G66470" + LEGO_DIMENSIONS = "G144" + MACINTOSH = "G81500" + MAGNAVOX_ODYSSEY = "G130" + MAGNAVOX_ODYSSEY_2 = "G36" + MAGNAVOX_ODYSSEY_300 = "G131" + MATTEL_AQUARIUS = "G132" + MEGAZONE = "G58494" + MICROVISION = "G6956" + MINI_ARCADE = "G69" + N_GAGE = "G42" + NES = "G17" + NEO_GEO_AES = "G116" + NEO_GEO_CD = "G60" + NEO_GEO_MVS = "G18" + NEO_GEO_POCKET_COLOR = "G40" + NINTENDO_3DS = "G39" + NINTENDO_64 = "G4" + NINTENDO_DS = "G5" + NINTENDO_POWER = "G81" + NINTENDO_SWITCH = "G59" + NINTENDO_SWITCH_2 = "G80178" + NUON = "G72978" + OFFICIAL_NINTENDO_MAGAZINE = "G77563" + OFFICIAL_US_PLAYSTATION_MAGAZINE = "G73272" + PAL_3DO = "G68531" + PAL_AMIGA_CD32 = "G153" + PAL_AMSTRAD_GX4000 = "G72181" + PAL_ATARI_2600 = "G72094" + PAL_ATARI_7800 = "G62701" + PAL_DREAMCAST_MAGAZINE = "G85742" + PAL_EVERCADE = "G61287" + PAL_GAMEBOY = "G73" + PAL_GAMEBOY_ADVANCE = "G80" + PAL_GAMEBOY_COLOR = "G77" + PAL_GAMECUBE = "G70" + PAL_MSX = "G123" + PAL_MSX2 = "G127" + PAL_MEGA_DRIVE_32X = "G141" + PAL_N_GAGE = "G63150" + PAL_NES = "G58" + PAL_NEO_GEO_POCKET = "G61530" + PAL_NEO_GEO_POCKET_COLOR = "G37074" + PAL_NINTENDO_3DS = "G94" + PAL_NINTENDO_64 = "G62" + PAL_NINTENDO_DS = "G78" + PAL_NINTENDO_SWITCH = "G87" + PAL_NINTENDO_SWITCH_2 = "G80188" + PAL_PSP = "G84" + PAL_PLAYSTATION = "G72" + PAL_PLAYSTATION_2 = "G63" + PAL_PLAYSTATION_3 = "G75" + PAL_PLAYSTATION_4 = "G86" + PAL_PLAYSTATION_5 = "G7469" + PAL_PLAYSTATION_VITA = "G101" + PAL_SEGA_DREAMCAST = "G65" + PAL_SEGA_GAME_GEAR = "G121" + PAL_SEGA_MASTER_SYSTEM = "G51" + PAL_SEGA_MEGA_CD = "G139" + PAL_SEGA_MEGA_DRIVE = "G71" + PAL_SEGA_PICO = "G138" + PAL_SEGA_SATURN = "G97" + PAL_SUPER_NINTENDO = "G61" + PAL_VECTREX = "G133" + PAL_VIDEOPAC_G7000 = "G134" + PAL_VIDEOPAC_G7400 = "G135" + PAL_WII = "G85" + PAL_WII_U = "G96" + PAL_XBOX = "G88" + PAL_XBOX_360 = "G89" + PAL_XBOX_ONE = "G95" + PAL_XBOX_SERIES_X = "G7586" + PC_FX = "G6955" + PC_GAMER_MAGAZINE = "G53045" + PC_GAMES = "G145" + PC_8801 = "G99621" + PSP = "G9" + PIPPIN = "G55669" + PLAYSTATION = "G6" + PLAYSTATION_2 = "G7" + PLAYSTATION_3 = "G12" + PLAYSTATION_4 = "G53" + PLAYSTATION_5 = "G7468" + PLAYSTATION_VITA = "G43" + POKEMON_MINI = "G143" + POLYMEGA = "G76600" + RCA_STUDIO_II = "G87937" + RDI_HALCYON = "G91000" + RETRO_GAMER_MAGAZINE = "G93657" + RUMBLE_U = "G43345" + SEGA_32X = "G50" + SEGA_CD = "G23" + SEGA_DREAMCAST = "G16" + SEGA_GAME_GEAR = "G20" + SEGA_GENESIS = "G15" + SEGA_MASTER_SYSTEM = "G29" + SEGA_PICO = "G136" + SEGA_SATURN = "G14" + SEGA_SATURN_MAGAZINE = "G85478" + SHARP_X1 = "G99620" + SHARP_X68000 = "G61110" + SINCLAIR_ZX81 = "G77384" + SKYLANDERS = "G48" + STARLINK = "G43344" + STONEHEART = "G60326" + STRATEGY_GUIDE = "G26297" + SUPER_CASSETTE_VISION = "G101795" + SUPER_FAMICOM = "G66" + SUPER_NINTENDO = "G13" + SUPERVISION = "G55668" + TI_99 = "G120" + TRS_80 = "G75713" + TAPWAVE_ZODIAC = "G51260" + TIGER_R_ZONE = "G43401" + TURBOGRAFX_CD = "G6927" + TURBOGRAFX_16 = "G19" + UB_FUNKEYS = "G75110" + VTECH_SMILE = "G99622" + VTECH_SOCRATES = "G56889" + VECTREX = "G32" + VIC_20 = "G44" + VIRTUAL_BOY = "G22" + WHOLESALE = "G57" + WII = "G11" + WII_U = "G47" + WONDERSWAN = "G151" + WONDERSWAN_COLOR = "G152" + XBOX = "G8" + XBOX_360 = "G10" + XBOX_ONE = "G54" + XBOX_SERIES_X = "G7585" + ZX_SPECTRUM = "G44257" diff --git a/src/pypricecharting/types/genre.py b/src/pypricecharting/types/genre.py new file mode 100644 index 0000000..9421e43 --- /dev/null +++ b/src/pypricecharting/types/genre.py @@ -0,0 +1,51 @@ +from enum import Enum, unique + +# https://www.pricecharting.com/api-documentation#genres + + +@unique +class Genre(Enum): + """Product genres as labeled by PriceCharting.""" + + ACCESSORIES = "Accessories" + ACTION_AND_ADVENTURE = "Action & Adventure" + ARCADE = "Arcade" + BASEBALL = "Baseball" + BEAT_EM_UP = "Beat'em Up" + BASKETBALL = "Basketball" + BOARD_AND_CARD = "Board & Card" + CASINO = "Casino" + COMPILATION = "Compilation" + CONTROLLERS = "Controllers" + DANCE = "Dance" + DEMO_AND_NFR = "Demo & NFR" + EXTREME_SPORTS = "Extreme Sports" + EDUCATIONAL = "Educational" + FIGHTING = "Fighting" + FOOTBALL = "Football" + FPS = "FPS" + GOLF = "Golf" + HACK_AND_SLASH = "Hack and Slash" + HORROR = "Horror" + LIGHT_GUN = "Light Gun" + MAGAZINE = "Magazine" + MINI_GAMES = "Mini Games" + MOVIE = "Movie" + MUSIC = "Music" + OTHER = "Other" + PARTY = "Party" + PINBALL = "Pinball" + PLATFORMER = "Platformer" + PUZZLE = "Puzzle" + RACING = "Racing" + RPG = "RPG" + SIMULATION = "Simulation" + SHOOT_EM_UP = "Shoot'em Up" + SOCCER = "Soccer" + SPORTS = "Sports" + STRATEGY = "Strategy" + SYSTEMS = "Systems" + THIRD_PERSON_SHOOTER = "Third Person Shooter" + TRIVIA = "Trivia" + VISUAL_NOVEL = "Visual Novel" + WRESTLING = "Wrestling" diff --git a/src/pypricecharting/types/rate_limit.py b/src/pypricecharting/types/rate_limit.py new file mode 100644 index 0000000..a1c4224 --- /dev/null +++ b/src/pypricecharting/types/rate_limit.py @@ -0,0 +1,13 @@ +import datetime +from enum import Enum, unique + + +@unique +class RateLimit(Enum): + """Minimum wait between PriceCharting API calls.""" + + API = datetime.timedelta(seconds=1) + CSV = datetime.timedelta(minutes=10) + + # Offers requests rate limited to 5 minutes for the SAME query + OFFERS_POLLING = datetime.timedelta(minutes=5) diff --git a/src/pypricecharting/types/status.py b/src/pypricecharting/types/status.py new file mode 100644 index 0000000..0404a6f --- /dev/null +++ b/src/pypricecharting/types/status.py @@ -0,0 +1,9 @@ +from enum import Enum, unique + + +@unique +class Status(Enum): + """PriceCharting API response status""" + + SUCCESS = "success" + ERROR = "error" diff --git a/tests/test_hello_world.py b/tests/test_hello_world.py deleted file mode 100644 index 187ba61..0000000 --- a/tests/test_hello_world.py +++ /dev/null @@ -1,5 +0,0 @@ -from pypricecharting.hello_world import hello_world - - -def test_hello_world(): - assert hello_world() == "Hello World!" diff --git a/tests/types_tests/test_condition.py b/tests/types_tests/test_condition.py new file mode 100644 index 0000000..5e22452 --- /dev/null +++ b/tests/types_tests/test_condition.py @@ -0,0 +1,109 @@ +import pytest + +from pypricecharting.types.condition import Cards, Coins, Comics, Condition, VideoGames + +# Source: https://www.pricecharting.com/api-documentation#includes + + +def test_video_games_members(): + assert len(VideoGames) == 10 + assert VideoGames.LOOSE.value == 1 + assert VideoGames.NEW_AND_SEALED.value == 2 + assert VideoGames.CIB.value == 3 + assert VideoGames.GRADED.value == 5 + assert VideoGames.BOX_ONLY.value == 6 + assert VideoGames.MANUAL_ONLY.value == 7 + assert VideoGames.ITEM_AND_BOX.value == 8 + assert VideoGames.ITEM_AND_MANUAL.value == 9 + assert VideoGames.BOX_AND_MANUAL.value == 10 + assert VideoGames.GRADED_CIB.value == 13 + + +def test_video_games_lookup_by_id(): + for member in VideoGames: + assert VideoGames(member.value) is member + + +def test_video_games_unknown_id_raises(): + with pytest.raises(ValueError, match="is not a valid"): + VideoGames(4) + + +def test_cards_members(): + assert len(Cards) == 10 + assert Cards.UNGRADED.value == 1 + assert Cards.GRADE_8.value == 2 + assert Cards.GRADE_7.value == 3 + assert Cards.GRADE_9.value == 5 + assert Cards.GRADE_9_5.value == 6 + assert Cards.GRADE_10.value == 7 + assert Cards.BGS_10.value == 8 + assert Cards.GRADE_1.value == 9 + assert Cards.GRADE_2.value == 10 + assert Cards.GRADE_3.value == 13 + + +def test_cards_lookup_by_id(): + for member in Cards: + assert Cards(member.value) is member + + +def test_cards_unknown_id_raises(): + with pytest.raises(ValueError, match="is not a valid"): + Cards(4) + + +def test_comics_members(): + assert len(Comics) == 10 + assert Comics.UNGRADED.value == 1 + assert Comics.GRADE_6_0.value == 2 + assert Comics.GRADE_4_0.value == 3 + assert Comics.GRADE_8_0.value == 5 + assert Comics.GRADE_9_2.value == 6 + assert Comics.GRADE_9_8.value == 7 + assert Comics.GRADE_10_0.value == 8 + assert Comics.GRADE_2_0.value == 9 + assert Comics.GRADE_9_6.value == 10 + assert Comics.GRADE_3_0.value == 13 + + +def test_comics_lookup_by_id(): + for member in Comics: + assert Comics(member.value) is member + + +def test_comics_unknown_id_raises(): + with pytest.raises(ValueError, match="is not a valid"): + Comics(4) + + +def test_coins_members(): + assert len(Coins) == 10 + assert Coins.UNGRADED.value == 1 + assert Coins.AU_50_58.value == 2 + assert Coins.VF_20_35.value == 3 + assert Coins.MS_62.value == 5 + assert Coins.MS_64.value == 6 + assert Coins.MS_66.value == 7 + assert Coins.F_12_15.value == 8 + assert Coins.XF_40_45.value == 9 + assert Coins.MS_60.value == 10 + assert Coins.MS_61.value == 13 + + +def test_coins_lookup_by_id(): + for member in Coins: + assert Coins(member.value) is member + + +def test_coins_unknown_id_raises(): + with pytest.raises(ValueError, match="is not a valid"): + Coins(4) + + +def test_condition_categories(): + assert len(Condition) == 4 + assert Condition.VIDEOGAMES.value is VideoGames + assert Condition.CARDS.value is Cards + assert Condition.COMICS.value is Comics + assert Condition.COINS.value is Coins diff --git a/tests/types_tests/test_console.py b/tests/types_tests/test_console.py new file mode 100644 index 0000000..7b2a414 --- /dev/null +++ b/tests/types_tests/test_console.py @@ -0,0 +1,256 @@ +import pytest + +from pypricecharting.types.console import Console + +# Source: https://www.pricecharting.com/api-documentation#console-ids + + +def test_console_members(): + assert len(Console) == 237 + assert Console.PANASONIC_3DO.value == "G25" + assert Console.ACTION_MAX.value == "G36545" + assert Console.ADVANCED_PICO_BEENA.value == "G102752" + assert Console.AMIGA.value == "G46" + assert Console.AMIGA_CD32.value == "G92" + assert Console.AMIIBO.value == "G56" + assert Console.AMIIBO_CARDS.value == "G46757" + assert Console.AMSTRAD_CPC.value == "G70472" + assert Console.AMSTRAD_GX4000.value == "G66098" + assert Console.APPLE_II.value == "G79417" + assert Console.ARCADIA_2001.value == "G91" + assert Console.ASIAN_ENGLISH_NINTENDO_3DS.value == "G56638" + assert Console.ASIAN_ENGLISH_PSP.value == "G59682" + assert Console.ASIAN_ENGLISH_PLAYSTATION_2.value == "G70756" + assert Console.ASIAN_ENGLISH_PLAYSTATION_3.value == "G56634" + assert Console.ASIAN_ENGLISH_PLAYSTATION_4.value == "G56635" + assert Console.ASIAN_ENGLISH_PLAYSTATION_5.value == "G56636" + assert Console.ASIAN_ENGLISH_PLAYSTATION_VITA.value == "G56637" + assert Console.ASIAN_ENGLISH_SWITCH.value == "G56633" + assert Console.ASIAN_ENGLISH_SWITCH_2.value == "G80190" + assert Console.ASIAN_ENGLISH_XBOX.value == "G72899" + assert Console.ASIAN_XBOX_360.value == "G79471" + assert Console.ATARI_2600.value == "G24" + assert Console.ATARI_2800.value == "G84152" + assert Console.ATARI_400.value == "G45" + assert Console.ATARI_5200.value == "G31" + assert Console.ATARI_7800.value == "G33" + assert Console.ATARI_LYNX.value == "G26" + assert Console.ATARI_ST.value == "G146" + assert Console.ATARI_XE.value == "G72528" + assert Console.BALLY_ASTROCADE.value == "G90" + assert Console.BANDAI_PLAYDIA.value == "G94412" + assert Console.CD_I.value == "G37" + assert Console.CASIO_LOOPY.value == "G63134" + assert Console.CLUB_NINTENDO_MAGAZINE.value == "G77760" + assert Console.COLECOVISION.value == "G30" + assert Console.COMMODORE_128.value == "G72569" + assert Console.COMMODORE_16.value == "G56918" + assert Console.COMMODORE_64.value == "G28" + assert Console.DISNEY_INFINITY.value == "G52" + assert Console.DREAMCAST_MAGAZINE.value == "G53043" + assert Console.ELECTRONIC_GAMING_MONTHLY.value == "G53047" + assert Console.ENTEX_ADVENTURE_VISION.value == "G72005" + assert Console.EVERCADE.value == "G28704" + assert Console.FM_TOWNS_MARTY.value == "G55665" + assert Console.FAIRCHILD_CHANNEL_F.value == "G83" + assert Console.FAMICOM.value == "G55" + assert Console.FAMICOM_DISK_SYSTEM.value == "G117" + assert Console.GAME_AND_WATCH.value == "G68" + assert Console.GAME_INFORMER.value == "G53044" + assert Console.GAME_PLAYERS.value == "G93674" + assert Console.GAME_WAVE.value == "G55666" + assert Console.GAME_COM.value == "G93" + assert Console.GAMEBOY.value == "G49" + assert Console.GAMEBOY_ADVANCE.value == "G1" + assert Console.GAMEBOY_COLOR.value == "G2" + assert Console.GAMEPRO.value == "G53046" + assert Console.GAMECUBE.value == "G3" + assert Console.GIZMONDO.value == "G7728" + assert Console.HYPERSCAN.value == "G55667" + assert Console.INTELLIVISION.value == "G27" + assert Console.JP_3DO.value == "G68532" + assert Console.JP_GAMEBOY.value == "G112" + assert Console.JP_GAMEBOY_ADVANCE.value == "G79" + assert Console.JP_GAMEBOY_COLOR.value == "G113" + assert Console.JP_GAMECUBE.value == "G98" + assert Console.JP_LASERACTIVE.value == "G68060" + assert Console.JP_MSX.value == "G122" + assert Console.JP_MSX2.value == "G128" + assert Console.JP_NEO_GEO_AES.value == "G115" + assert Console.JP_NEO_GEO_CD.value == "G43342" + assert Console.JP_NEO_GEO_MVS.value == "G114" + assert Console.JP_NEO_GEO_POCKET.value == "G59835" + assert Console.JP_NEO_GEO_POCKET_COLOR.value == "G129" + assert Console.JP_NINTENDO_3DS.value == "G119" + assert Console.JP_NINTENDO_64.value == "G99" + assert Console.JP_NINTENDO_DS.value == "G111" + assert Console.JP_NINTENDO_SWITCH.value == "G100" + assert Console.JP_NINTENDO_SWITCH_2.value == "G80189" + assert Console.JP_PC_ENGINE.value == "G82" + assert Console.JP_PC_ENGINE_CD.value == "G154" + assert Console.JP_PSP.value == "G110" + assert Console.JP_PLAYSTATION.value == "G107" + assert Console.JP_PLAYSTATION_2.value == "G108" + assert Console.JP_PLAYSTATION_3.value == "G109" + assert Console.JP_PLAYSTATION_4.value == "G118" + assert Console.JP_PLAYSTATION_5.value == "G7470" + assert Console.JP_PLAYSTATION_VITA.value == "G106" + assert Console.JP_SEGA_DREAMCAST.value == "G64" + assert Console.JP_SEGA_GAME_GEAR.value == "G74" + assert Console.JP_SEGA_MARK_III.value == "G6900" + assert Console.JP_SEGA_MEGA_CD.value == "G140" + assert Console.JP_SEGA_MEGA_DRIVE.value == "G105" + assert Console.JP_SEGA_PICO.value == "G137" + assert Console.JP_SEGA_SATURN.value == "G67" + assert Console.JP_SUPER_32X.value == "G142" + assert Console.JP_VIRTUAL_BOY.value == "G76" + assert Console.JP_WII.value == "G102" + assert Console.JP_WII_U.value == "G104" + assert Console.JP_XBOX.value == "G125" + assert Console.JP_XBOX_360.value == "G124" + assert Console.JP_XBOX_ONE.value == "G126" + assert Console.JP_XBOX_SERIES_X.value == "G7587" + assert Console.JAGUAR.value == "G21" + assert Console.JAGUAR_CD.value == "G65467" + assert Console.LASERACTIVE.value == "G66470" + assert Console.LEGO_DIMENSIONS.value == "G144" + assert Console.MACINTOSH.value == "G81500" + assert Console.MAGNAVOX_ODYSSEY.value == "G130" + assert Console.MAGNAVOX_ODYSSEY_2.value == "G36" + assert Console.MAGNAVOX_ODYSSEY_300.value == "G131" + assert Console.MATTEL_AQUARIUS.value == "G132" + assert Console.MEGAZONE.value == "G58494" + assert Console.MICROVISION.value == "G6956" + assert Console.MINI_ARCADE.value == "G69" + assert Console.N_GAGE.value == "G42" + assert Console.NES.value == "G17" + assert Console.NEO_GEO_AES.value == "G116" + assert Console.NEO_GEO_CD.value == "G60" + assert Console.NEO_GEO_MVS.value == "G18" + assert Console.NEO_GEO_POCKET_COLOR.value == "G40" + assert Console.NINTENDO_3DS.value == "G39" + assert Console.NINTENDO_64.value == "G4" + assert Console.NINTENDO_DS.value == "G5" + assert Console.NINTENDO_POWER.value == "G81" + assert Console.NINTENDO_SWITCH.value == "G59" + assert Console.NINTENDO_SWITCH_2.value == "G80178" + assert Console.NUON.value == "G72978" + assert Console.OFFICIAL_NINTENDO_MAGAZINE.value == "G77563" + assert Console.OFFICIAL_US_PLAYSTATION_MAGAZINE.value == "G73272" + assert Console.PAL_3DO.value == "G68531" + assert Console.PAL_AMIGA_CD32.value == "G153" + assert Console.PAL_AMSTRAD_GX4000.value == "G72181" + assert Console.PAL_ATARI_2600.value == "G72094" + assert Console.PAL_ATARI_7800.value == "G62701" + assert Console.PAL_DREAMCAST_MAGAZINE.value == "G85742" + assert Console.PAL_EVERCADE.value == "G61287" + assert Console.PAL_GAMEBOY.value == "G73" + assert Console.PAL_GAMEBOY_ADVANCE.value == "G80" + assert Console.PAL_GAMEBOY_COLOR.value == "G77" + assert Console.PAL_GAMECUBE.value == "G70" + assert Console.PAL_MSX.value == "G123" + assert Console.PAL_MSX2.value == "G127" + assert Console.PAL_MEGA_DRIVE_32X.value == "G141" + assert Console.PAL_N_GAGE.value == "G63150" + assert Console.PAL_NES.value == "G58" + assert Console.PAL_NEO_GEO_POCKET.value == "G61530" + assert Console.PAL_NEO_GEO_POCKET_COLOR.value == "G37074" + assert Console.PAL_NINTENDO_3DS.value == "G94" + assert Console.PAL_NINTENDO_64.value == "G62" + assert Console.PAL_NINTENDO_DS.value == "G78" + assert Console.PAL_NINTENDO_SWITCH.value == "G87" + assert Console.PAL_NINTENDO_SWITCH_2.value == "G80188" + assert Console.PAL_PSP.value == "G84" + assert Console.PAL_PLAYSTATION.value == "G72" + assert Console.PAL_PLAYSTATION_2.value == "G63" + assert Console.PAL_PLAYSTATION_3.value == "G75" + assert Console.PAL_PLAYSTATION_4.value == "G86" + assert Console.PAL_PLAYSTATION_5.value == "G7469" + assert Console.PAL_PLAYSTATION_VITA.value == "G101" + assert Console.PAL_SEGA_DREAMCAST.value == "G65" + assert Console.PAL_SEGA_GAME_GEAR.value == "G121" + assert Console.PAL_SEGA_MASTER_SYSTEM.value == "G51" + assert Console.PAL_SEGA_MEGA_CD.value == "G139" + assert Console.PAL_SEGA_MEGA_DRIVE.value == "G71" + assert Console.PAL_SEGA_PICO.value == "G138" + assert Console.PAL_SEGA_SATURN.value == "G97" + assert Console.PAL_SUPER_NINTENDO.value == "G61" + assert Console.PAL_VECTREX.value == "G133" + assert Console.PAL_VIDEOPAC_G7000.value == "G134" + assert Console.PAL_VIDEOPAC_G7400.value == "G135" + assert Console.PAL_WII.value == "G85" + assert Console.PAL_WII_U.value == "G96" + assert Console.PAL_XBOX.value == "G88" + assert Console.PAL_XBOX_360.value == "G89" + assert Console.PAL_XBOX_ONE.value == "G95" + assert Console.PAL_XBOX_SERIES_X.value == "G7586" + assert Console.PC_FX.value == "G6955" + assert Console.PC_GAMER_MAGAZINE.value == "G53045" + assert Console.PC_GAMES.value == "G145" + assert Console.PC_8801.value == "G99621" + assert Console.PSP.value == "G9" + assert Console.PIPPIN.value == "G55669" + assert Console.PLAYSTATION.value == "G6" + assert Console.PLAYSTATION_2.value == "G7" + assert Console.PLAYSTATION_3.value == "G12" + assert Console.PLAYSTATION_4.value == "G53" + assert Console.PLAYSTATION_5.value == "G7468" + assert Console.PLAYSTATION_VITA.value == "G43" + assert Console.POKEMON_MINI.value == "G143" + assert Console.POLYMEGA.value == "G76600" + assert Console.RCA_STUDIO_II.value == "G87937" + assert Console.RDI_HALCYON.value == "G91000" + assert Console.RETRO_GAMER_MAGAZINE.value == "G93657" + assert Console.RUMBLE_U.value == "G43345" + assert Console.SEGA_32X.value == "G50" + assert Console.SEGA_CD.value == "G23" + assert Console.SEGA_DREAMCAST.value == "G16" + assert Console.SEGA_GAME_GEAR.value == "G20" + assert Console.SEGA_GENESIS.value == "G15" + assert Console.SEGA_MASTER_SYSTEM.value == "G29" + assert Console.SEGA_PICO.value == "G136" + assert Console.SEGA_SATURN.value == "G14" + assert Console.SEGA_SATURN_MAGAZINE.value == "G85478" + assert Console.SHARP_X1.value == "G99620" + assert Console.SHARP_X68000.value == "G61110" + assert Console.SINCLAIR_ZX81.value == "G77384" + assert Console.SKYLANDERS.value == "G48" + assert Console.STARLINK.value == "G43344" + assert Console.STONEHEART.value == "G60326" + assert Console.STRATEGY_GUIDE.value == "G26297" + assert Console.SUPER_CASSETTE_VISION.value == "G101795" + assert Console.SUPER_FAMICOM.value == "G66" + assert Console.SUPER_NINTENDO.value == "G13" + assert Console.SUPERVISION.value == "G55668" + assert Console.TI_99.value == "G120" + assert Console.TRS_80.value == "G75713" + assert Console.TAPWAVE_ZODIAC.value == "G51260" + assert Console.TIGER_R_ZONE.value == "G43401" + assert Console.TURBOGRAFX_CD.value == "G6927" + assert Console.TURBOGRAFX_16.value == "G19" + assert Console.UB_FUNKEYS.value == "G75110" + assert Console.VTECH_SMILE.value == "G99622" + assert Console.VTECH_SOCRATES.value == "G56889" + assert Console.VECTREX.value == "G32" + assert Console.VIC_20.value == "G44" + assert Console.VIRTUAL_BOY.value == "G22" + assert Console.WHOLESALE.value == "G57" + assert Console.WII.value == "G11" + assert Console.WII_U.value == "G47" + assert Console.WONDERSWAN.value == "G151" + assert Console.WONDERSWAN_COLOR.value == "G152" + assert Console.XBOX.value == "G8" + assert Console.XBOX_360.value == "G10" + assert Console.XBOX_ONE.value == "G54" + assert Console.XBOX_SERIES_X.value == "G7585" + assert Console.ZX_SPECTRUM.value == "G44257" + + +def test_console_lookup_by_id(): + for member in Console: + assert Console(member.value) is member + + +def test_console_unknown_id_raises(): + with pytest.raises(ValueError, match="is not a valid"): + Console("G0") diff --git a/tests/types_tests/test_genre.py b/tests/types_tests/test_genre.py new file mode 100644 index 0000000..c9c00f1 --- /dev/null +++ b/tests/types_tests/test_genre.py @@ -0,0 +1,61 @@ +import pytest + +from pypricecharting.types.genre import Genre + +# Source: https://www.pricecharting.com/api-documentation#genres + + +def test_genre_members(): + assert len(Genre) == 42 + assert Genre.ACCESSORIES.value == "Accessories" + assert Genre.ACTION_AND_ADVENTURE.value == "Action & Adventure" + assert Genre.ARCADE.value == "Arcade" + assert Genre.BASEBALL.value == "Baseball" + assert Genre.BEAT_EM_UP.value == "Beat'em Up" + assert Genre.BASKETBALL.value == "Basketball" + assert Genre.BOARD_AND_CARD.value == "Board & Card" + assert Genre.CASINO.value == "Casino" + assert Genre.COMPILATION.value == "Compilation" + assert Genre.CONTROLLERS.value == "Controllers" + assert Genre.DANCE.value == "Dance" + assert Genre.DEMO_AND_NFR.value == "Demo & NFR" + assert Genre.EXTREME_SPORTS.value == "Extreme Sports" + assert Genre.EDUCATIONAL.value == "Educational" + assert Genre.FIGHTING.value == "Fighting" + assert Genre.FOOTBALL.value == "Football" + assert Genre.FPS.value == "FPS" + assert Genre.GOLF.value == "Golf" + assert Genre.HACK_AND_SLASH.value == "Hack and Slash" + assert Genre.HORROR.value == "Horror" + assert Genre.LIGHT_GUN.value == "Light Gun" + assert Genre.MAGAZINE.value == "Magazine" + assert Genre.MINI_GAMES.value == "Mini Games" + assert Genre.MOVIE.value == "Movie" + assert Genre.MUSIC.value == "Music" + assert Genre.OTHER.value == "Other" + assert Genre.PARTY.value == "Party" + assert Genre.PINBALL.value == "Pinball" + assert Genre.PLATFORMER.value == "Platformer" + assert Genre.PUZZLE.value == "Puzzle" + assert Genre.RACING.value == "Racing" + assert Genre.RPG.value == "RPG" + assert Genre.SIMULATION.value == "Simulation" + assert Genre.SHOOT_EM_UP.value == "Shoot'em Up" + assert Genre.SOCCER.value == "Soccer" + assert Genre.SPORTS.value == "Sports" + assert Genre.STRATEGY.value == "Strategy" + assert Genre.SYSTEMS.value == "Systems" + assert Genre.THIRD_PERSON_SHOOTER.value == "Third Person Shooter" + assert Genre.TRIVIA.value == "Trivia" + assert Genre.VISUAL_NOVEL.value == "Visual Novel" + assert Genre.WRESTLING.value == "Wrestling" + + +def test_genre_lookup_by_value(): + for member in Genre: + assert Genre(member.value) is member + + +def test_genre_unknown_value_raises(): + with pytest.raises(ValueError, match="is not a valid"): + Genre("Not A Genre") diff --git a/tests/types_tests/test_ratelimit.py b/tests/types_tests/test_ratelimit.py new file mode 100644 index 0000000..4ea0222 --- /dev/null +++ b/tests/types_tests/test_ratelimit.py @@ -0,0 +1,17 @@ +import datetime + +import pytest + +from pypricecharting.types.rate_limit import RateLimit + + +def test_ratelimit_members(): + assert len(RateLimit) == 3 + assert RateLimit.API.value == datetime.timedelta(seconds=1) + assert RateLimit.CSV.value == datetime.timedelta(minutes=10) + assert RateLimit.OFFERS_POLLING.value == datetime.timedelta(minutes=5) + + +def test_ratelimit_raises_for_invalid_value(): + with pytest.raises(ValueError, match="is not a valid"): + RateLimit(datetime.timedelta(seconds=5)) diff --git a/tests/types_tests/test_status.py b/tests/types_tests/test_status.py new file mode 100644 index 0000000..ffc7412 --- /dev/null +++ b/tests/types_tests/test_status.py @@ -0,0 +1,19 @@ +import pytest + +from pypricecharting.types.status import Status + + +def test_status(): + assert len(Status) == 2 + assert Status.SUCCESS.value == "success" + assert Status.ERROR.value == "error" + + +def test_status_lookup_by_id(): + for member in Status: + assert Status(member.value) is member + + +def test_status_unknown_id_raises(): + with pytest.raises(ValueError, match="is not a valid"): + Status("invalid") diff --git a/uv.lock b/uv.lock index a9ce786..6ca90b7 100644 --- a/uv.lock +++ b/uv.lock @@ -2,6 +2,27 @@ version = 1 revision = 5 requires-python = ">=3.15" +[[package]] +name = "annotated-types" +version = "0.8.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5f/56/a8120250d128bed162cd73c76d45f6ef9991f3e068f62a8ee060afa3104a/annotated_types-0.8.0.tar.gz", hash = "sha256:13b2beaad985e05e2d6407ee4c4f35590b11f8d693a258a561055cac8f64cab7", size = 15893, upload-time = "2026-07-23T20:16:13.995Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/99/91/8acff4f5e50511b911bbccb72b8628a49c68ce14148cd9f6431094859a90/annotated_types-0.8.0-py3-none-any.whl", hash = "sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0", size = 13427, upload-time = "2026-07-23T20:16:12.938Z" }, +] + +[[package]] +name = "anyio" +version = "4.16.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "idna" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/a1/98/7e457a3b014976887a050561955c0b76e1e7e2d6e27b78ecef2ef80518f2/anyio-4.16.0.tar.gz", hash = "sha256:59bb03251907983d1603d27c3087ddb1e93299ea2163adcdba37899a4fb12ffb", size = 310971, upload-time = "2026-11-01T11:20:07.282Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a9/16/7757fb84c819accc7d7e9af5291b261e4abb8627ee040f99e7d35ef2457a/anyio-4.16.0-py3-none-any.whl", hash = "sha256:c66ae634e0b8228396b801741beb3294326d4b6102f7bba4041c0dfb58c29026", size = 134521, upload-time = "2026-11-01T11:20:05.59Z" }, +] + [[package]] name = "codespell" version = "2.4.3" @@ -63,6 +84,62 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/da/91/1805cc144497d76a436f66a21fa57492bee7ed1257826fb992f03b9b2b6f/coverage-7.17.2-py3-none-any.whl", hash = "sha256:e674027ceb6bfd959f1bb035000fd20fa8b717dc6765adaaf8bca347822c8c7d", size = 219280, upload-time = "2026-11-04T19:52:32.726Z" }, ] +[[package]] +name = "h11" +version = "0.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" }, +] + +[[package]] +name = "httpcore2" +version = "2.16.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "h11" }, + { name = "truststore" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c0/61/afa9d6b7452f9eca73f73d45324eb0bb52f098fd5e6049bf6b8263be9b4e/httpcore2-2.16.0.tar.gz", hash = "sha256:c72cd0413563b17e1cd8354677dff887466f8ec2551679759e93126534428643", size = 69886, upload-time = "2026-10-21T07:09:45.31Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/af/c2/ce417c397afa5181f0e3c6ff01a4d01639414e1adef08730d97571297151/httpcore2-2.16.0-py3-none-any.whl", hash = "sha256:5c4358319f2602d984ad93182c9fee5160f22e9da7babdda870a5e7c4e2dc34f", size = 85070, upload-time = "2026-10-21T07:09:42.802Z" }, +] + +[[package]] +name = "httpx2" +version = "2.16.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio", marker = "sys_platform != 'emscripten'" }, + { name = "httpcore2", marker = "sys_platform != 'emscripten'" }, + { name = "httpx2-jsfetch", marker = "sys_platform == 'emscripten'" }, + { name = "idna" }, + { name = "truststore", marker = "sys_platform != 'emscripten'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/43/73/5ca2cedf5e4e50423d1c258877865a6b62793633b561c58499f8aeb33b7e/httpx2-2.16.0.tar.gz", hash = "sha256:0d54c98128e8f2ff7fbbde0fca8c359e5f032edeaaaac443cdb7f31f685bcd7f", size = 103116, upload-time = "2026-10-21T07:09:46.348Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7b/3d/2e4bc4fd1ef9770871669adb348d612a6e4786b303a23f9935b81c48dd60/httpx2-2.16.0-py3-none-any.whl", hash = "sha256:fd2c5d7909e8d86fe92d53020c310ca0e4e431b838c207c5754b9bbf0308d49a", size = 97880, upload-time = "2026-10-21T07:09:44.01Z" }, +] + +[[package]] +name = "httpx2-jsfetch" +version = "1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cd/c4/0e5636363151a2a1795e0a77617168b9ca438e1748ec05fc9b5687f93d64/httpx2_jsfetch-1.0.tar.gz", hash = "sha256:70a0e3eabfef7cce5ad9c629f7d01ca05e418f586646f4ddf14782e4c1454c60", size = 6872, upload-time = "2026-08-07T00:13:07.492Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9b/43/832f631d32e4f1211caa2ba368317739fe71f0b8530e4c9d15dc454bac2a/httpx2_jsfetch-1.0-py3-none-any.whl", hash = "sha256:cb916b707601e69a07721aabc8f3f6659be3a6893bc1ff5c6f9e02241df2da32", size = 6382, upload-time = "2026-08-07T00:13:06.567Z" }, +] + +[[package]] +name = "idna" +version = "3.20" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f5/08/8eea9d4b8302028f3abb2c0813953f7aec26d33b7a8960ed760e65ff29fa/idna-3.20.tar.gz", hash = "sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44", size = 216463, upload-time = "2026-09-17T14:11:04.752Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/a2/bb081bab032533a855d44de1d56f8e8426114ff1ba5d1f07a438a0a654f8/idna-3.20-py3-none-any.whl", hash = "sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c", size = 69583, upload-time = "2026-09-17T14:11:03.168Z" }, +] + [[package]] name = "iniconfig" version = "2.3.1" @@ -107,6 +184,62 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/7f/af/06a905c3b341adb7838498b39157ef2079ecd11079c40d4265e6d14c70d6/prek-0.5.10-py3-none-win_arm64.whl", hash = "sha256:e689633358ec7c0e3dd3d0d9bce55613a9f78fc31ce3b4a16cdce70bb1d1d47a", size = 5410984, upload-time = "2026-11-04T01:47:53.978Z" }, ] +[[package]] +name = "pydantic" +version = "2.14.3" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "annotated-types" }, + { name = "pydantic-core" }, + { name = "typing-extensions" }, + { name = "typing-inspection" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b4/fc/1203d011145c98ddce3cd2f505bb54375ef8d43223053df6bfcf3c746f46/pydantic-2.14.3.tar.gz", hash = "sha256:1054f237f4d4733e5a30e1e2333bd33a2004ab9ab1510bd053a9a31bb48e232d", size = 925636, upload-time = "2026-11-05T09:17:04.686Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/72/b8/b864503789ef5c58597d2a7b4adbee62c26440ab1e682581fc6838df8947/pydantic-2.14.3-py3-none-any.whl", hash = "sha256:3f7b347782ab7e4cf4c798496ae3a82787d9f21ec12676a9c564355eeef8daa8", size = 494071, upload-time = "2026-11-05T09:17:02.426Z" }, +] + +[[package]] +name = "pydantic-core" +version = "2.50.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/9c/0f/34f9ce4ba701dd0b815033ef94d99b56f66200e578ee6052aa3ac26f064e/pydantic_core-2.50.4.tar.gz", hash = "sha256:aead3b74b68396bf0feab5d57e050b730ded7df55853c1e048a87e00aaf033c6", size = 522249, upload-time = "2026-11-05T09:15:26.774Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6d/9f/e6673535165d965a11c1d5339f53995f90234019827eaecb41a57e6e463d/pydantic_core-2.50.4-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:7ac2769a7ddd661e07e26c12220adc31b17014c48234b2a5a88993b8d4109e09", size = 2241950, upload-time = "2026-11-05T09:13:53.055Z" }, + { url = "https://files.pythonhosted.org/packages/6f/02/65951efadbf7826e6a270843f97e3da2ef726de2b6d9cd7c5dfa4c48807e/pydantic_core-2.50.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:930ad463d3fb7a340d323bcc496ec32dae469ec9974c29ff569f19806b6b03b4", size = 2112412, upload-time = "2026-11-05T09:13:55.309Z" }, + { url = "https://files.pythonhosted.org/packages/c9/d3/4fb6e2e4a9e4951f1e05b198366ed5330e0874e83d52077e8b985350fe0e/pydantic_core-2.50.4-cp315-cp315-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:b867f9fd183d76977f810c626d539265183c25b2284762893a31e8d6cacc81c0", size = 2263220, upload-time = "2026-11-05T09:13:57.555Z" }, + { url = "https://files.pythonhosted.org/packages/63/83/42e70436c523357b49393b73f161f2741acf36003c8efd2f941d2be56bae/pydantic_core-2.50.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:49eb1241a969a5994db6880c18c012b6cbe2340343d8f529721571806583e500", size = 2134716, upload-time = "2026-11-05T09:13:59.413Z" }, + { url = "https://files.pythonhosted.org/packages/36/66/ed9b87f4751fd07e472c62cfe151f575abdf4c452fab943d35ba8efdc6c4/pydantic_core-2.50.4-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:477af785d1846e4e96bf56983b92ea7553aaeccdeb8acdaa55c7cee9eda0ae32", size = 2201901, upload-time = "2026-11-05T09:14:01.472Z" }, + { url = "https://files.pythonhosted.org/packages/2b/21/ff2e6ac7202b6d326e9f007c6082f6e6f3aaa063790ea2a355bdc985addc/pydantic_core-2.50.4-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:29358a8ca74e7d81158d14e2b10c904bd18773293ae3788716c0626fe0342347", size = 2389670, upload-time = "2026-11-05T09:14:03.431Z" }, + { url = "https://files.pythonhosted.org/packages/b9/34/e9348bc13d549641791a51843ed140fbb311d9066628e27477343412d5ad/pydantic_core-2.50.4-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:300753f71c73302e218124baf995f00058e085cd01869bd9610bcbd0bd4500c1", size = 2468951, upload-time = "2026-11-05T09:14:05.028Z" }, + { url = "https://files.pythonhosted.org/packages/ac/5e/145a02bf2b9f66981108caf6cc9e78917e31e4caca14d1e3ccd3ff2c7293/pydantic_core-2.50.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:26cb012c4b8ca9f847bd0ac15978bd3d0f55b050bfbe6c47355edfc7e945029b", size = 2272957, upload-time = "2026-11-05T09:14:06.587Z" }, + { url = "https://files.pythonhosted.org/packages/fd/38/b71c5b245e923f6cf144e948ed2a9d6b7fb97d8905784db8d860f5176b8b/pydantic_core-2.50.4-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:9be1cfe715ecaa060ffd5d599ef410b94ef2697a0eed4cee562f788a2aa2175b", size = 2275028, upload-time = "2026-11-05T09:14:08.219Z" }, + { url = "https://files.pythonhosted.org/packages/ba/71/2504dacdc5cd3ea3ec5e68c9b6e097c979500bcff220b97046cc8ea3c1ad/pydantic_core-2.50.4-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:c81e35862aced259177a537ce1a6264c3a97bae1ced184ca9dc10ea754563688", size = 2305447, upload-time = "2026-11-05T09:14:09.795Z" }, + { url = "https://files.pythonhosted.org/packages/2c/90/904233a6c148bcac9f30bb96a2761e5fb52682d0d6de31a40c74a3714ceb/pydantic_core-2.50.4-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:b2f2d13239487cecaae98c9f4d5904ad0737643cdf8873c88ec6a78b12214f20", size = 2477852, upload-time = "2026-11-05T09:14:11.443Z" }, + { url = "https://files.pythonhosted.org/packages/72/33/1cbdcbf343ca23b507e967b21dddc4c8bf17a74c8b5cad59228c85ba4efc/pydantic_core-2.50.4-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:e6b4b08d09054310a4dc389fa61ee22a7a5a292cb23ab8a985136ca8828bf924", size = 2506352, upload-time = "2026-11-05T09:14:13.165Z" }, + { url = "https://files.pythonhosted.org/packages/91/24/3ad9ea0876e6624c90967e5f1446e751b275cfdfaaf798a0d8e0b30025bc/pydantic_core-2.50.4-cp315-cp315-win32.whl", hash = "sha256:6619d49a89a15cd04334f76fec530c155923bfc60da74ff5d815a52629e1aa6c", size = 2127780, upload-time = "2026-11-05T09:14:17.52Z" }, + { url = "https://files.pythonhosted.org/packages/c0/3c/0582532b90a12492471977bdbca1317eca5144f6342ea581d2cee73ccd35/pydantic_core-2.50.4-cp315-cp315-win_amd64.whl", hash = "sha256:e5bd109d095aaae989a0463d5ef0fcc43e9ddd5de125e656d3c119a79e466380", size = 2270596, upload-time = "2026-11-05T09:14:20.955Z" }, + { url = "https://files.pythonhosted.org/packages/6c/50/967cfe4f7043a993c0c80cd3563c598b5281d2276aa775d0f6ff7f714271/pydantic_core-2.50.4-cp315-cp315-win_arm64.whl", hash = "sha256:6118e5a5550e36582e19bac1a403711a748f9f18251b054c326d3db02aaa7a18", size = 2170880, upload-time = "2026-11-05T09:14:24.822Z" }, + { url = "https://files.pythonhosted.org/packages/9e/71/3ec5bd8a82f792482f16d79fdbe8ce85aa71bf7147e556c5fc5f8546818d/pydantic_core-2.50.4-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:d8201c9f9035520cdcc7dcad383b039ec8123969b87e01cf27c3dd883c02313b", size = 2233053, upload-time = "2026-11-05T09:14:27.942Z" }, + { url = "https://files.pythonhosted.org/packages/6e/2e/614dc37aedf8e9f811c1f2eedaf8eb09a7c196e2d137fe82bcc9d5662ca2/pydantic_core-2.50.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:1de7be9a66fc8536770481ab64a05aae5067c725f2b29a09543af00e6a417b97", size = 2090776, upload-time = "2026-11-05T09:14:30.281Z" }, + { url = "https://files.pythonhosted.org/packages/f9/14/aefc14e3e05013070ee959fc0b8703f6860a2776ed6e75b9c748f61aced0/pydantic_core-2.50.4-cp315-cp315t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:789a6453e5ffd18a7ab6b8c3a0dd8403053829197ec258ecb90c604c21ffcc99", size = 2272481, upload-time = "2026-11-05T09:14:32.578Z" }, + { url = "https://files.pythonhosted.org/packages/13/c9/d56999aa7236dc9303091db2b1ef7303f0b022baf25ebf33cd200c0cb933/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6348ad12fa741bcc9c2f173e99fbf27cbc038826d8c31a4a7d836eca27878ba2", size = 2113069, upload-time = "2026-11-05T09:14:34.69Z" }, + { url = "https://files.pythonhosted.org/packages/b7/d5/a62da9e72f272f198f6118c5457332bbd4b9fdc4b77858448120569756de/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:d49127f137f871cde3c5650af33bbbdcee02679dae76e020902fa106f522b8ae", size = 2202754, upload-time = "2026-11-05T09:14:36.49Z" }, + { url = "https://files.pythonhosted.org/packages/37/4a/e7f21577f96e42ac3082cd014df398c1c913d482afac1c8ef17b9e039198/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:2f5cc5bcb94063fbbdfd285a2b302da34af07491337c10bb35de1d5220fa1583", size = 2411472, upload-time = "2026-11-05T09:14:38.63Z" }, + { url = "https://files.pythonhosted.org/packages/38/ad/c57c5e13bbfd3404ec1af519764aadbc52ee01e39f9f9ae9d28317f982f2/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b99bed995ed7c41515c11fe2beb86f8a6cc298e5537cae2f736de2f982f74ef0", size = 2475330, upload-time = "2026-11-05T09:14:40.519Z" }, + { url = "https://files.pythonhosted.org/packages/6e/63/65cf0e1f1fd8cfaafee3c005712b8020e063b0f3e3571493ea68db5ec44f/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:faa4e96385c820ce9d7f7a623486e23d4134ae3c9ba2071e44e0ab5a5a5002c4", size = 2265718, upload-time = "2026-11-05T09:14:42.379Z" }, + { url = "https://files.pythonhosted.org/packages/72/5d/fd9fdec9b25e2ef1f788970a84f749f0e28f166573c87654fd5387d8e5ce/pydantic_core-2.50.4-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:d6a166978f22f10cb91413f70519861605219346decf65bc79008f9257c94afe", size = 2273454, upload-time = "2026-11-05T09:14:44.286Z" }, + { url = "https://files.pythonhosted.org/packages/34/8c/19705c6d5eb72ff8c25006df8a375da7466176a5968781789e5415384f65/pydantic_core-2.50.4-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:a70d5effebd81ebd8e15a8aabdc7980832367b2b00c36543bac378977004cc80", size = 2314862, upload-time = "2026-11-05T09:14:45.97Z" }, + { url = "https://files.pythonhosted.org/packages/b8/fb/acefa27031aba2646b0d3026c4a1602e526489d39395ab17bc47f03234e3/pydantic_core-2.50.4-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:f8fd23653a252cefabea11cd041efd7b80bdf403e43a36dea53f9cb0aaa21f0f", size = 2479073, upload-time = "2026-11-05T09:14:47.526Z" }, + { url = "https://files.pythonhosted.org/packages/ef/e1/db08fa1e5edf1779fa0612f8d09f9030bdc513f593687c883cb781b86caa/pydantic_core-2.50.4-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:7646353a5a7c553c04167aca628e2550b538f492765b03ccf34321a560acc43c", size = 2521328, upload-time = "2026-11-05T09:14:49.042Z" }, + { url = "https://files.pythonhosted.org/packages/0d/51/bf1ec5b96c076d8d514b08f3bcffb3397df7a0fcc729eb960838a8bbe27f/pydantic_core-2.50.4-cp315-cp315t-win32.whl", hash = "sha256:65376dbe1ab4dbc768ca2b72b7c13993562c035f5925fd3bc7ff9c8c585c515d", size = 2107629, upload-time = "2026-11-05T09:14:50.891Z" }, + { url = "https://files.pythonhosted.org/packages/18/32/43d5db1824ec2314f737ff8d9962ff59954a74616d8656a8cc78790e45f1/pydantic_core-2.50.4-cp315-cp315t-win_amd64.whl", hash = "sha256:f08ee8248aad2d054e5bc4c73554d4505464698f6d754f16198dbc5764e9821d", size = 2244906, upload-time = "2026-11-05T09:14:53.056Z" }, + { url = "https://files.pythonhosted.org/packages/3a/c0/38c505004969c4641c3a077a8e72e354f02d5c06d8f51d7a103699704772/pydantic_core-2.50.4-cp315-cp315t-win_arm64.whl", hash = "sha256:da779ae50b46f3f7d1e1b5f362fdc0ad376a49fd55f6f3122dc2b6149936cdf7", size = 2179018, upload-time = "2026-11-05T09:14:54.448Z" }, +] + [[package]] name = "pygments" version = "2.21.0" @@ -120,6 +253,10 @@ wheels = [ name = "pypricecharting" version = "0.0.1" source = { editable = "." } +dependencies = [ + { name = "httpx2" }, + { name = "pydantic" }, +] [package.dev-dependencies] dev = [ @@ -132,6 +269,10 @@ dev = [ ] [package.metadata] +requires-dist = [ + { name = "httpx2", specifier = ">=2.16.0" }, + { name = "pydantic", specifier = ">=2.14.3" }, +] [package.metadata.requires-dev] dev = [ @@ -198,6 +339,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/99/d5/4ad4ed31413c301430918e70d3d38ae6f097af0766cb9ab8c9d502b2a4d6/ruff-0.17.3-py3-none-win_arm64.whl", hash = "sha256:81fce74bcd6be0e9da7c67c7553fd0f1f12964a2052cd728ef917b937a5ca1d9", size = 9854332, upload-time = "2026-10-27T00:34:03.847Z" }, ] +[[package]] +name = "truststore" +version = "0.10.5" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ee/9f/c5201d42a484c061e528825fc8e2d565f5abd50a4ced6fb7d29c4ec99b2b/truststore-0.10.5.tar.gz", hash = "sha256:30d36967ccaded5cbb38d602c433f53600036c79d502f4533a49b60a03bbefcd", size = 28091, upload-time = "2026-10-12T22:27:31.808Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/51/e9/3a7820be2bb0fe53b6bc9c3be26d3d1158004e4c3ab953aa6840b955b1e9/truststore-0.10.5-py3-none-any.whl", hash = "sha256:9aaaedaefaf06d8b206278cf8b5012bc897f485a874503501e12d776df78951c", size = 19017, upload-time = "2026-10-12T22:27:30.377Z" }, +] + [[package]] name = "ty" version = "0.0.97" @@ -222,3 +372,24 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/b6/47/5d9b908dbc4a2addb984c3d58f008db75dd9c7cd04f0a7d92530779c1bd5/ty-0.0.97-py3-none-win_amd64.whl", hash = "sha256:69deddd2d1c4fbb2cae902a8c0d7c7ed67113659edcfd59ab5b6e4a2a02081ee", size = 14184823, upload-time = "2026-11-04T09:15:38.335Z" }, { url = "https://files.pythonhosted.org/packages/24/50/f0e0e2f137bd1b3539809a248b552002cd0b8b00ed36114acb9ca72eca8c/ty-0.0.97-py3-none-win_arm64.whl", hash = "sha256:88ec7fd1a91d70ed43fab52e326b375129c44c6b64d6c289825fb4561bc80253", size = 13685279, upload-time = "2026-11-04T09:15:41.961Z" }, ] + +[[package]] +name = "typing-extensions" +version = "4.16.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" }, +] + +[[package]] +name = "typing-inspection" +version = "0.4.5" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ff/50/0195198eb1d75bab716bb0a813abea4cc394bfa17a92a189f021a34859af/typing_inspection-0.4.5.tar.gz", hash = "sha256:7f16c411e7930dc79596d42ab44672a3fe5f60eb34b781a1647e7872363120c7", size = 81194, upload-time = "2026-11-04T14:13:23.774Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/de/0c/ea2544850a7c135e15033a5c7a8e7211136184b7ae63e2239d557c2b3019/typing_inspection-0.4.5-py3-none-any.whl", hash = "sha256:bc210535442b39e1bf2805e0c7a17dfd6a4ace760c84c7f7d16245d23a6b1c39", size = 14874, upload-time = "2026-11-04T14:13:22.616Z" }, +]