bidkit 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. bidkit-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +39 -0
  2. bidkit-0.1.0/.github/ISSUE_TEMPLATE/config.yml +11 -0
  3. bidkit-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +20 -0
  4. bidkit-0.1.0/.github/dependabot.yml +13 -0
  5. bidkit-0.1.0/.github/pull_request_template.md +11 -0
  6. bidkit-0.1.0/.github/workflows/ci.yml +123 -0
  7. bidkit-0.1.0/.github/workflows/docs.yml +46 -0
  8. bidkit-0.1.0/.github/workflows/pr-title.yml +17 -0
  9. bidkit-0.1.0/.github/workflows/publish.yml +31 -0
  10. bidkit-0.1.0/.github/workflows/release-please.yml +17 -0
  11. bidkit-0.1.0/.gitignore +11 -0
  12. bidkit-0.1.0/.pre-commit-config.yaml +12 -0
  13. bidkit-0.1.0/CHANGELOG.md +84 -0
  14. bidkit-0.1.0/CODE_OF_CONDUCT.md +132 -0
  15. bidkit-0.1.0/CONTRIBUTING.md +91 -0
  16. bidkit-0.1.0/LICENSE +21 -0
  17. bidkit-0.1.0/NOTICE +15 -0
  18. bidkit-0.1.0/PKG-INFO +425 -0
  19. bidkit-0.1.0/README.md +387 -0
  20. bidkit-0.1.0/SECURITY.md +28 -0
  21. bidkit-0.1.0/docs/comparison.md +29 -0
  22. bidkit-0.1.0/docs/guides/authentication.md +80 -0
  23. bidkit-0.1.0/docs/guides/configuration.md +66 -0
  24. bidkit-0.1.0/docs/guides/logging.md +49 -0
  25. bidkit-0.1.0/docs/guides/notifications.md +67 -0
  26. bidkit-0.1.0/docs/guides/pagination.md +41 -0
  27. bidkit-0.1.0/docs/guides/retries.md +55 -0
  28. bidkit-0.1.0/docs/guides/signing.md +41 -0
  29. bidkit-0.1.0/docs/index.md +59 -0
  30. bidkit-0.1.0/docs/reference/apis.md +93 -0
  31. bidkit-0.1.0/docs/reference/auth.md +15 -0
  32. bidkit-0.1.0/docs/reference/client.md +13 -0
  33. bidkit-0.1.0/docs/reference/helpers.md +11 -0
  34. bidkit-0.1.0/docs/reference/notifications.md +7 -0
  35. bidkit-0.1.0/examples/async_inventory.py +25 -0
  36. bidkit-0.1.0/examples/ebay-cli-config.example.json +20 -0
  37. bidkit-0.1.0/examples/paginate_orders.py +22 -0
  38. bidkit-0.1.0/examples/search_items.py +25 -0
  39. bidkit-0.1.0/examples/signing-key.example.json +6 -0
  40. bidkit-0.1.0/mkdocs.yml +72 -0
  41. bidkit-0.1.0/pyproject.toml +86 -0
  42. bidkit-0.1.0/scripts/generate_openapi.py +1469 -0
  43. bidkit-0.1.0/scripts/maintainers/README.md +11 -0
  44. bidkit-0.1.0/scripts/maintainers/live_smoke.py +1184 -0
  45. bidkit-0.1.0/scripts/maintainers/smoke_de.py +398 -0
  46. bidkit-0.1.0/scripts/oauth_login.py +192 -0
  47. bidkit-0.1.0/scripts/sync_ebay_specs.py +102 -0
  48. bidkit-0.1.0/src/bidkit/__init__.py +49 -0
  49. bidkit-0.1.0/src/bidkit/auth.py +477 -0
  50. bidkit-0.1.0/src/bidkit/client.py +212 -0
  51. bidkit-0.1.0/src/bidkit/config.py +216 -0
  52. bidkit-0.1.0/src/bidkit/errors.py +68 -0
  53. bidkit-0.1.0/src/bidkit/generated/__init__.py +1 -0
  54. bidkit-0.1.0/src/bidkit/generated/models/__init__.py +1 -0
  55. bidkit-0.1.0/src/bidkit/generated/models/buy_browse.py +3162 -0
  56. bidkit-0.1.0/src/bidkit/generated/models/buy_deal.py +604 -0
  57. bidkit-0.1.0/src/bidkit/generated/models/buy_feed.py +1377 -0
  58. bidkit-0.1.0/src/bidkit/generated/models/buy_marketing.py +891 -0
  59. bidkit-0.1.0/src/bidkit/generated/models/buy_marketplace_insights.py +432 -0
  60. bidkit-0.1.0/src/bidkit/generated/models/buy_offer.py +310 -0
  61. bidkit-0.1.0/src/bidkit/generated/models/buy_order.py +1363 -0
  62. bidkit-0.1.0/src/bidkit/generated/models/cancellation.py +6 -0
  63. bidkit-0.1.0/src/bidkit/generated/models/case.py +99 -0
  64. bidkit-0.1.0/src/bidkit/generated/models/commerce_catalog.py +318 -0
  65. bidkit-0.1.0/src/bidkit/generated/models/commerce_charity.py +412 -0
  66. bidkit-0.1.0/src/bidkit/generated/models/commerce_feedback.py +756 -0
  67. bidkit-0.1.0/src/bidkit/generated/models/commerce_identity.py +511 -0
  68. bidkit-0.1.0/src/bidkit/generated/models/commerce_media.py +333 -0
  69. bidkit-0.1.0/src/bidkit/generated/models/commerce_message.py +390 -0
  70. bidkit-0.1.0/src/bidkit/generated/models/commerce_notification.py +399 -0
  71. bidkit-0.1.0/src/bidkit/generated/models/commerce_taxonomy.py +511 -0
  72. bidkit-0.1.0/src/bidkit/generated/models/commerce_translation.py +121 -0
  73. bidkit-0.1.0/src/bidkit/generated/models/commerce_vero.py +560 -0
  74. bidkit-0.1.0/src/bidkit/generated/models/developer_analytics.py +116 -0
  75. bidkit-0.1.0/src/bidkit/generated/models/developer_client_registration.py +140 -0
  76. bidkit-0.1.0/src/bidkit/generated/models/developer_key_management.py +111 -0
  77. bidkit-0.1.0/src/bidkit/generated/models/inquiry.py +95 -0
  78. bidkit-0.1.0/src/bidkit/generated/models/return_.py +69 -0
  79. bidkit-0.1.0/src/bidkit/generated/models/sell_account_v1.py +1929 -0
  80. bidkit-0.1.0/src/bidkit/generated/models/sell_account_v2.py +1020 -0
  81. bidkit-0.1.0/src/bidkit/generated/models/sell_analytics.py +629 -0
  82. bidkit-0.1.0/src/bidkit/generated/models/sell_compliance.py +235 -0
  83. bidkit-0.1.0/src/bidkit/generated/models/sell_edelivery_international_shipping.py +1993 -0
  84. bidkit-0.1.0/src/bidkit/generated/models/sell_feed.py +853 -0
  85. bidkit-0.1.0/src/bidkit/generated/models/sell_finances.py +1348 -0
  86. bidkit-0.1.0/src/bidkit/generated/models/sell_fulfillment.py +2645 -0
  87. bidkit-0.1.0/src/bidkit/generated/models/sell_inventory.py +2949 -0
  88. bidkit-0.1.0/src/bidkit/generated/models/sell_leads.py +234 -0
  89. bidkit-0.1.0/src/bidkit/generated/models/sell_listing.py +169 -0
  90. bidkit-0.1.0/src/bidkit/generated/models/sell_logistics.py +1027 -0
  91. bidkit-0.1.0/src/bidkit/generated/models/sell_marketing.py +3656 -0
  92. bidkit-0.1.0/src/bidkit/generated/models/sell_metadata.py +2552 -0
  93. bidkit-0.1.0/src/bidkit/generated/models/sell_negotiation.py +414 -0
  94. bidkit-0.1.0/src/bidkit/generated/models/sell_recommendation.py +149 -0
  95. bidkit-0.1.0/src/bidkit/generated/models/sell_stores.py +214 -0
  96. bidkit-0.1.0/src/bidkit/generated/resources.py +19909 -0
  97. bidkit-0.1.0/src/bidkit/models.py +43 -0
  98. bidkit-0.1.0/src/bidkit/notifications.py +196 -0
  99. bidkit-0.1.0/src/bidkit/pagination.py +137 -0
  100. bidkit-0.1.0/src/bidkit/py.typed +0 -0
  101. bidkit-0.1.0/src/bidkit/resource.py +166 -0
  102. bidkit-0.1.0/src/bidkit/retry.py +81 -0
  103. bidkit-0.1.0/src/bidkit/signing.py +162 -0
  104. bidkit-0.1.0/src/bidkit/transport.py +499 -0
  105. bidkit-0.1.0/tests/conftest.py +18 -0
  106. bidkit-0.1.0/tests/test_auth_concurrency.py +77 -0
  107. bidkit-0.1.0/tests/test_client_lifecycle.py +89 -0
  108. bidkit-0.1.0/tests/test_client_options.py +120 -0
  109. bidkit-0.1.0/tests/test_config.py +202 -0
  110. bidkit-0.1.0/tests/test_content_negotiation.py +64 -0
  111. bidkit-0.1.0/tests/test_errors.py +72 -0
  112. bidkit-0.1.0/tests/test_generated_client.py +373 -0
  113. bidkit-0.1.0/tests/test_generator.py +31 -0
  114. bidkit-0.1.0/tests/test_logging.py +113 -0
  115. bidkit-0.1.0/tests/test_notifications.py +160 -0
  116. bidkit-0.1.0/tests/test_oauth.py +152 -0
  117. bidkit-0.1.0/tests/test_open_enums.py +41 -0
  118. bidkit-0.1.0/tests/test_package.py +7 -0
  119. bidkit-0.1.0/tests/test_pagination.py +164 -0
  120. bidkit-0.1.0/tests/test_retry.py +144 -0
  121. bidkit-0.1.0/tests/test_retry_auth_refresh.py +99 -0
  122. bidkit-0.1.0/tests/test_signing.py +257 -0
  123. bidkit-0.1.0/tests/test_token_cache.py +116 -0
  124. bidkit-0.1.0/uv.lock +1444 -0
@@ -0,0 +1,39 @@
1
+ name: Bug report
2
+ description: Something behaves incorrectly
3
+ labels: [bug]
4
+ body:
5
+ - type: textarea
6
+ id: what
7
+ attributes:
8
+ label: What happened?
9
+ description: What did you do, what did you expect, what happened instead?
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: repro
14
+ attributes:
15
+ label: Minimal reproduction
16
+ description: >-
17
+ Smallest snippet that shows the problem. Strip credentials; an httpx.MockTransport
18
+ repro is ideal.
19
+ render: python
20
+ - type: input
21
+ id: version
22
+ attributes:
23
+ label: bidkit version
24
+ placeholder: python -c "import bidkit; print(bidkit.__version__)"
25
+ validations:
26
+ required: true
27
+ - type: input
28
+ id: python
29
+ attributes:
30
+ label: Python version & OS
31
+ placeholder: "3.12.4 on macOS 15"
32
+ validations:
33
+ required: true
34
+ - type: textarea
35
+ id: traceback
36
+ attributes:
37
+ label: Traceback / logs
38
+ description: Full traceback if there is one. Redact tokens and account data.
39
+ render: text
@@ -0,0 +1,11 @@
1
+ blank_issues_enabled: true
2
+ contact_links:
3
+ - name: Question / usage help
4
+ url: https://github.com/heyalexej/bidkit/discussions
5
+ about: Ask questions and share usage tips in Discussions.
6
+ - name: Security issue
7
+ url: https://github.com/heyalexej/bidkit/security/advisories/new
8
+ about: Please report vulnerabilities privately, never as a public issue.
9
+ - name: eBay API behavior (not an SDK bug)
10
+ url: https://developer.ebay.com/support
11
+ about: Problems with the eBay APIs themselves belong to eBay developer support.
@@ -0,0 +1,20 @@
1
+ name: Feature request
2
+ description: Suggest an improvement or missing capability
3
+ labels: [enhancement]
4
+ body:
5
+ - type: textarea
6
+ id: problem
7
+ attributes:
8
+ label: Problem
9
+ description: What are you trying to do that bidkit doesn't support well?
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: proposal
14
+ attributes:
15
+ label: Proposed solution
16
+ description: What would the API look like? Sketches welcome.
17
+ - type: textarea
18
+ id: alternatives
19
+ attributes:
20
+ label: Alternatives considered
@@ -0,0 +1,13 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: uv
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ groups:
8
+ dev-dependencies:
9
+ dependency-type: development
10
+ - package-ecosystem: github-actions
11
+ directory: /
12
+ schedule:
13
+ interval: weekly
@@ -0,0 +1,11 @@
1
+ ## What & why
2
+
3
+ <!-- What does this change, and what problem does it solve? -->
4
+
5
+ ## Checklist
6
+
7
+ - [ ] PR title is a valid [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/) header (it becomes the squash commit)
8
+ - [ ] `uv run pytest`, `uv run ruff check .`, `uv run ruff format --check .`, and `uv run ty check src tests` pass
9
+ - [ ] Tests added/updated for behavior changes
10
+ - [ ] No hand edits to `src/bidkit/generated/` (change the generator/specs and regenerate instead)
11
+ - [ ] No credentials, tokens, or real account data in code, tests, or fixtures
@@ -0,0 +1,123 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ concurrency:
9
+ group: ${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
11
+
12
+ jobs:
13
+ static:
14
+ name: Lint, format, types
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v7
18
+
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v7
21
+ with:
22
+ python-version: "3.12"
23
+
24
+ - name: Install dependencies
25
+ run: uv sync --extra dev
26
+
27
+ - name: Lint (ruff)
28
+ run: uv run ruff check .
29
+
30
+ - name: Format (ruff)
31
+ run: uv run ruff format --check .
32
+
33
+ - name: Type check (ty)
34
+ run: uv run ty check src tests
35
+
36
+ test:
37
+ runs-on: ubuntu-latest
38
+ strategy:
39
+ fail-fast: false
40
+ matrix:
41
+ python-version: ["3.11", "3.12", "3.13", "3.14"]
42
+ steps:
43
+ - uses: actions/checkout@v7
44
+
45
+ - name: Install uv
46
+ uses: astral-sh/setup-uv@v7
47
+ with:
48
+ python-version: ${{ matrix.python-version }}
49
+
50
+ - name: Install dependencies
51
+ run: uv sync --extra dev
52
+
53
+ - name: Test (pytest + coverage)
54
+ run: uv run pytest -q --cov --cov-fail-under=88
55
+
56
+ generated-drift:
57
+ name: Generated code drift
58
+ runs-on: ubuntu-latest
59
+ steps:
60
+ - uses: actions/checkout@v7
61
+
62
+ - name: Install uv
63
+ uses: astral-sh/setup-uv@v7
64
+ with:
65
+ python-version: "3.12"
66
+
67
+ - name: Install dependencies
68
+ run: uv sync --extra dev
69
+
70
+ - name: Regenerate from committed specs
71
+ run: uv run scripts/generate_openapi.py
72
+
73
+ - name: Fail if generated code drifted
74
+ run: git diff --exit-code src/bidkit/generated
75
+
76
+ build:
77
+ name: Build distribution
78
+ runs-on: ubuntu-latest
79
+ steps:
80
+ - uses: actions/checkout@v7
81
+
82
+ - name: Install uv
83
+ uses: astral-sh/setup-uv@v7
84
+ with:
85
+ python-version: "3.12"
86
+
87
+ - name: Build wheel and sdist
88
+ run: uv build
89
+
90
+ - name: Guard against spec payloads in the wheel
91
+ run: |
92
+ python - <<'EOF'
93
+ import glob, sys, zipfile
94
+ whl = glob.glob("dist/*.whl")[0]
95
+ names = zipfile.ZipFile(whl).namelist()
96
+ leaked = [n for n in names if n.endswith(".json")]
97
+ if leaked:
98
+ sys.exit(f"spec JSON leaked into the wheel: {leaked}")
99
+ size = sum(i.file_size for i in zipfile.ZipFile(whl).infolist())
100
+ if size > 8_000_000:
101
+ sys.exit(f"wheel unexpectedly large: {size} bytes uncompressed")
102
+ print(f"wheel ok: {len(names)} files, {size} bytes uncompressed")
103
+ EOF
104
+
105
+ - name: Validate metadata (twine)
106
+ run: uvx twine check dist/*.whl dist/*.tar.gz
107
+
108
+ docs:
109
+ # Keep in sync with the build job in docs.yml (the Pages deploy).
110
+ name: Docs build
111
+ runs-on: ubuntu-latest
112
+ steps:
113
+ - uses: actions/checkout@v7
114
+
115
+ - name: Install uv
116
+ uses: astral-sh/setup-uv@v7
117
+ with:
118
+ python-version: "3.12"
119
+
120
+ - name: Build site (strict)
121
+ run: |
122
+ uv sync --extra docs
123
+ uv run mkdocs build --strict
@@ -0,0 +1,46 @@
1
+ name: Docs
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+ pages: write
11
+ id-token: write
12
+
13
+ concurrency:
14
+ group: pages
15
+ cancel-in-progress: false
16
+
17
+ jobs:
18
+ # Keep in sync with the docs job in ci.yml (the PR gate).
19
+ build:
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v7
23
+
24
+ - name: Install uv
25
+ uses: astral-sh/setup-uv@v7
26
+ with:
27
+ python-version: "3.12"
28
+
29
+ - name: Build site
30
+ run: |
31
+ uv sync --extra docs
32
+ uv run mkdocs build --strict
33
+
34
+ - uses: actions/upload-pages-artifact@v5
35
+ with:
36
+ path: site
37
+
38
+ deploy:
39
+ needs: build
40
+ runs-on: ubuntu-latest
41
+ environment:
42
+ name: github-pages
43
+ url: ${{ steps.deployment.outputs.page_url }}
44
+ steps:
45
+ - id: deployment
46
+ uses: actions/deploy-pages@v5
@@ -0,0 +1,17 @@
1
+ name: PR title
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened, edited, synchronize, reopened]
6
+
7
+ permissions:
8
+ pull-requests: read
9
+
10
+ jobs:
11
+ conventional-commit:
12
+ name: Validate conventional-commit title
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: amannn/action-semantic-pull-request@v6
16
+ env:
17
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,31 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ # release-please creates releases with GITHUB_TOKEN, which does NOT fire the
7
+ # release event for other workflows; dispatch this manually after merging the
8
+ # release PR (gh workflow run publish.yml).
9
+ workflow_dispatch:
10
+
11
+ jobs:
12
+ pypi:
13
+ runs-on: ubuntu-latest
14
+ # Trusted publishing (OIDC): configure this repo + workflow + environment as a
15
+ # pending publisher at https://pypi.org/manage/account/publishing/ - no token needed.
16
+ environment: pypi
17
+ permissions:
18
+ id-token: write
19
+ steps:
20
+ - uses: actions/checkout@v7
21
+
22
+ - name: Install uv
23
+ uses: astral-sh/setup-uv@v7
24
+ with:
25
+ python-version: "3.12"
26
+
27
+ - name: Build
28
+ run: uv build
29
+
30
+ - name: Publish
31
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,17 @@
1
+ name: release-please
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ permissions:
8
+ contents: write
9
+ pull-requests: write
10
+
11
+ jobs:
12
+ release-please:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: googleapis/release-please-action@v5
16
+ with:
17
+ release-type: python
@@ -0,0 +1,11 @@
1
+ .venv/
2
+ .ruff_cache/
3
+ .pytest_cache/
4
+ __pycache__/
5
+ *.py[cod]
6
+ dist/
7
+ build/
8
+ *.egg-info/
9
+ specs/normalized/
10
+ .coverage
11
+ site/
@@ -0,0 +1,12 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.14.0
4
+ hooks:
5
+ - id: ruff
6
+ args: [--fix]
7
+ - id: ruff-format
8
+ - repo: https://github.com/compilerla/conventional-pre-commit
9
+ rev: v4.0.0
10
+ hooks:
11
+ - id: conventional-pre-commit
12
+ stages: [commit-msg]
@@ -0,0 +1,84 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 (2026-07-02)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * **client:** the undocumented client.request()/client.stream() passthroughs are now private; call the typed generated methods, or client._transport for low-level needs.
9
+ * **transport:** requests outside eBay's signed set no longer carry signature headers when EbaySigningConfig is set. Use EbaySigningConfig(sign_all=True) to restore blanket signing if eBay expands its signature requirements before the SDK updates.
10
+ * import bidkit instead of ebay_sdk; install bidkit instead of ebay-sdk.
11
+
12
+ ### Features
13
+
14
+ * **auth:** add OAuth authorization-code exchange ([a2e8db6](https://github.com/heyalexej/bidkit/commit/a2e8db6d68e830af21a6b798d99c6a242e3040be))
15
+ * **auth:** add persistent FileTokenCache ([e77d6a5](https://github.com/heyalexej/bidkit/commit/e77d6a5b8609c8b9b874463b627f91c122eb5196))
16
+ * **client:** scoped config overrides via with_options() ([e5be066](https://github.com/heyalexej/bidkit/commit/e5be06652d94cc84aa13eb1c53599d1df64a5530))
17
+ * **config:** load ebay-cli style config files ([495d6ac](https://github.com/heyalexej/bidkit/commit/495d6ace368ddc71b88ae1c0831e338474cc4c98))
18
+ * expose __version__ ([da90d90](https://github.com/heyalexej/bidkit/commit/da90d90ef9ac50392b6443e23ece5186ff7a7dd5))
19
+ * **generator:** accept ints for limit/offset query params ([351819c](https://github.com/heyalexej/bidkit/commit/351819c911ce180344faca7df5e44c2f10dd636e))
20
+ * **generator:** clean and trim generated documentation text ([08e76bb](https://github.com/heyalexej/bidkit/commit/08e76bbc9f306a530bd29a124efdcc8560880468))
21
+ * **generator:** drop content-type/language params; derive them automatically ([9fbf679](https://github.com/heyalexej/bidkit/commit/9fbf679b615d1669b0def54272e48875b1cef683))
22
+ * **generator:** emit full method docstrings wrapped as multi-line blocks ([bfea77d](https://github.com/heyalexej/bidkit/commit/bfea77dc919f421161f139b85e0d204b30fb3e99))
23
+ * **models:** open enums so unknown eBay values don't fail validation ([139499d](https://github.com/heyalexej/bidkit/commit/139499de0f1d90976c478f3662f7a75ef20d7cde))
24
+ * **notifications:** verify inbound eBay push signatures ([2312a5b](https://github.com/heyalexej/bidkit/commit/2312a5b135aa47523169ba6bf01c668006ba3c9b))
25
+ * **pagination:** add auto-paging helpers for list endpoints ([e8976b8](https://github.com/heyalexej/bidkit/commit/e8976b8971d75ed86fb979569da0c8b738bd70e1))
26
+ * **pagination:** support responses that nest paging in a pagination object ([58d14ae](https://github.com/heyalexej/bidkit/commit/58d14ae01580aada814cbfa44eff1bfb863ce6e8))
27
+ * rename package to bidkit ([8004e0e](https://github.com/heyalexej/bidkit/commit/8004e0e40ed59137f342825e7ef7ed4632633857))
28
+ * **scripts:** --write-config persists minted tokens and expiries ([8d015b1](https://github.com/heyalexej/bidkit/commit/8d015b1b51b3ca3b1e0dbed47ed7014cbb67966b))
29
+ * **scripts:** add interactive CLI for the OAuth consent flow ([2a08bce](https://github.com/heyalexej/bidkit/commit/2a08bcef4b1d6c067f905d1ec46ce9e429b9107c))
30
+ * **signing:** add eBay digital-signature support for the Finances API ([8daca6c](https://github.com/heyalexej/bidkit/commit/8daca6c94e007f431333aa2cf2db14ea544534ba))
31
+ * **transport:** add structured logging for requests, retries, and refreshes ([1f97b4e](https://github.com/heyalexej/bidkit/commit/1f97b4e74527f5f4d0a3eda4b897ba0aa2cb6d74))
32
+ * **transport:** retry transient responses with rate-limit awareness ([f6dc107](https://github.com/heyalexej/bidkit/commit/f6dc107d1b20aafd2f15bcaef9e916c58b6c8897))
33
+
34
+
35
+ ### Bug Fixes
36
+
37
+ * **auth:** coalesce concurrent token refreshes behind a per-key lock ([f48f8b3](https://github.com/heyalexej/bidkit/commit/f48f8b32ddb12e963fdc33e76cdd70f34fd74878))
38
+ * **auth:** harden FileTokenCache against foreign files and concurrency ([821ee3a](https://github.com/heyalexej/bidkit/commit/821ee3a649bf07c6af356fcbaf31c6c75fa2a491))
39
+ * **config:** tolerant signing-key pickup, sandbox parsing, explicit optional timeout ([6674822](https://github.com/heyalexej/bidkit/commit/6674822c73101782e3349c21f93509aae0e07138))
40
+ * **generator:** complete the signing allowlist and stop eating literal angle-bracket prose ([9a108bd](https://github.com/heyalexej/bidkit/commit/9a108bd92f1515076a4a844816f300b80259c5b4))
41
+ * normalize generated enum schemas ([a656567](https://github.com/heyalexej/bidkit/commit/a6565671ac03e5551920cc0e59367293e8db7c5e))
42
+ * **notifications:** fetch public keys with application credentials ([6d36f1b](https://github.com/heyalexej/bidkit/commit/6d36f1b855f14b362555fa03793157b8adb2cb2d))
43
+ * **packaging:** correct description and complete PyPI metadata ([028f64c](https://github.com/heyalexej/bidkit/commit/028f64c8b9d361e0e4a893882fcf2b29c5b38574))
44
+ * **scripts:** guard sandbox/prod keyset mismatch and add non-interactive code input ([ef81127](https://github.com/heyalexej/bidkit/commit/ef81127bdb51c0027ee0887f8f32d0ab66ff4cb1))
45
+ * **scripts:** restore the missing-scopes guard and the maintainer smoke bootstrap ([e429ac0](https://github.com/heyalexej/bidkit/commit/e429ac05e88ac333dd9d7aaa4e4a1283556589aa))
46
+ * tenant-safe token cache, http-client ownership, schemaless GET typing ([b514e10](https://github.com/heyalexej/bidkit/commit/b514e1041a18767ee05d6a1879e35fa2a07b3e59))
47
+ * **transport:** re-fetch the auth header on each retry attempt ([d03703d](https://github.com/heyalexej/bidkit/commit/d03703db7a02832b633e52682d2fe62a777f2259))
48
+ * **transport:** sign only operations that eBay requires signatures for ([be215e4](https://github.com/heyalexej/bidkit/commit/be215e428afae4c6246929de452cd941b94239a3))
49
+
50
+
51
+ ### Performance Improvements
52
+
53
+ * lazy-load generated model modules and defer Pydantic builds ([230a985](https://github.com/heyalexej/bidkit/commit/230a98580f3a880d036b8c8f8878325029dd58fa))
54
+
55
+
56
+ ### Documentation
57
+
58
+ * add contributing guide with conventional-commit policy ([d03e3a6](https://github.com/heyalexej/bidkit/commit/d03e3a63a32037c6b9f90e3ce3b8b58bd6aeeac0))
59
+ * add mkdocs site ([6235b91](https://github.com/heyalexej/bidkit/commit/6235b9155e34be16b35a330f3462c615846f3492))
60
+ * add NOTICE and eBay attribution/disclaimer ([7f3f845](https://github.com/heyalexej/bidkit/commit/7f3f845ca0d201db383d32aeb2ac2b11ec97b37b))
61
+ * add security policy, code of conduct, and issue templates ([5a86dcd](https://github.com/heyalexej/bidkit/commit/5a86dcd544784dd83b597134a07815774777a598))
62
+ * **examples:** add config and signing-key templates for the scripts ([fbb0120](https://github.com/heyalexej/bidkit/commit/fbb0120c8c51fd35cd3de23df27e004f70a149fe))
63
+ * **examples:** add runnable usage examples ([38b96b1](https://github.com/heyalexej/bidkit/commit/38b96b15993582b39879c61921cd4840fd1a6218))
64
+ * **readme:** add implementation status overview of all APIs and versions ([05469d4](https://github.com/heyalexej/bidkit/commit/05469d42884ea69dcc4f743d6eabd3aef13b7c6b))
65
+ * **readme:** document the two rate-limit lookups and their token types ([b82ba84](https://github.com/heyalexej/bidkit/commit/b82ba84d78f8e28d906c98823891912ca21294c9))
66
+ * **readme:** document with_options and rate-limit lookups ([fb7cf92](https://github.com/heyalexej/bidkit/commit/fb7cf92e88b505fa9e13ab8a97cb0d494c20ff0e))
67
+ * **readme:** restructure around install + quickstart ([ea749f8](https://github.com/heyalexej/bidkit/commit/ea749f86caa1196cc90fae1dd5369f5284540bdd))
68
+ * seed changelog ([932c933](https://github.com/heyalexej/bidkit/commit/932c933ef9862c341d482467f5ea9a1b179af0b3))
69
+
70
+
71
+ ### Code Refactoring
72
+
73
+ * **client:** tighten the public surface ([79e5858](https://github.com/heyalexej/bidkit/commit/79e585860cf9899193d1e71008439cf6d9518b11))
74
+
75
+ ## Changelog
76
+
77
+ All notable changes to bidkit are documented here. The format follows
78
+ [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) and entries are
79
+ generated by [release-please](https://github.com/googleapis/release-please); versioning is
80
+ [SemVer](https://semver.org/) with 0.x semantics (see CONTRIBUTING.md).
81
+
82
+ No releases yet — 0.1.0 will be the first published version, covering the initial SDK:
83
+ 41 eBay REST APIs / 455 typed operations, sync + async clients, OAuth with cached refresh,
84
+ retries, pagination helpers, and Finances API digital signatures.
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ heyalexej@gmail.com. All complaints will be reviewed and investigated promptly
64
+ and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,91 @@
1
+ # Contributing to bidkit
2
+
3
+ Thanks for helping out! This guide covers the dev setup, the commit conventions, and how the
4
+ code generation works.
5
+
6
+ ## Development setup
7
+
8
+ bidkit uses [uv](https://docs.astral.sh/uv/) exclusively:
9
+
10
+ ```bash
11
+ uv sync --extra dev # create .venv and install everything
12
+ uv run pytest # tests
13
+ uv run ruff check . # lint
14
+ uv run ruff format . # format
15
+ uv run ty check src tests # type check
16
+ ```
17
+
18
+ All four must pass before a PR is ready; CI enforces them on Python 3.11–3.14.
19
+
20
+ Optional but recommended:
21
+
22
+ ```bash
23
+ uvx pre-commit install --install-hooks # lint/format + commit-message checks on commit
24
+ ```
25
+
26
+ ## Commit messages: Conventional Commits 1.0.0
27
+
28
+ Every commit message MUST follow [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/).
29
+ Releases and the changelog are generated from them (release-please), so the format is
30
+ load-bearing, not cosmetic. CI also validates PR titles, which become the squash-commit
31
+ message.
32
+
33
+ ```
34
+ <type>(<optional scope>): <description>
35
+
36
+ [optional body]
37
+
38
+ [optional BREAKING CHANGE: footer]
39
+ ```
40
+
41
+ | Type | Use for | Release effect |
42
+ |------|---------|----------------|
43
+ | `feat` | new user-facing capability | minor bump |
44
+ | `fix` | bug fixes | patch bump |
45
+ | `perf` | performance improvements | patch bump |
46
+ | `refactor` | code change with no behavior change | none |
47
+ | `docs` | documentation only | none |
48
+ | `test` | tests only | none |
49
+ | `build` | packaging/build system | none |
50
+ | `ci` | CI configuration | none |
51
+ | `chore` | everything else | none |
52
+
53
+ Common scopes: `auth`, `transport`, `retry`, `pagination`, `signing`, `config`, `errors`,
54
+ `models`, `generator`, `packaging`, `scripts`, `readme`, `examples`.
55
+
56
+ Breaking changes: add `!` after the type/scope (`feat(transport)!: ...`) **and** a
57
+ `BREAKING CHANGE:` footer describing the migration.
58
+
59
+ ## Code generation
60
+
61
+ The resource classes and Pydantic models under `src/bidkit/generated/` are **generated —
62
+ never edit them by hand** (CI fails on drift). To change them, change the generator or the
63
+ specs and regenerate:
64
+
65
+ ```bash
66
+ uv run --extra dev scripts/generate_openapi.py
67
+ ```
68
+
69
+ Pipeline: raw eBay OpenAPI contracts in `specs/ebay/` → compatibility patches
70
+ (`preprocess_spec`) → normalized specs in `specs/normalized/` (git-ignored intermediate) →
71
+ `datamodel-code-generator` for models + a local renderer for the resource classes.
72
+
73
+ To update the specs themselves, download the current contracts from
74
+ [developer.ebay.com](https://developer.ebay.com/) and place them via
75
+ `scripts/sync_ebay_specs.py`, then regenerate. Note that the spec files are © eBay Inc.
76
+ under the eBay API License Agreement (see [NOTICE](NOTICE)).
77
+
78
+ ## Pull requests
79
+
80
+ - Keep PRs focused; one logical change per PR.
81
+ - PR titles must be valid Conventional Commit headers (they become the squash commit).
82
+ - Add or update tests for behavior changes; tests are wire-level (`httpx.MockTransport`),
83
+ fast, and offline — no eBay credentials needed.
84
+ - Don't commit anything derived from real credentials, tokens, or account data.
85
+
86
+ ## Versioning & releases
87
+
88
+ bidkit follows [SemVer](https://semver.org/) with 0.x semantics: while the major version
89
+ is 0, `feat`/breaking changes bump the **minor** version and fixes bump the **patch**.
90
+ Releases are cut by release-please from the commit history; maintainers merge the release
91
+ PR and CI publishes to PyPI. 1.0.0 will be tagged once the public surface has settled.