René's URL Explorer Experiment


Title: feat(server): createUpstreamHttpClient + createTranslationMap (translator pattern helpers) · Issue #453 · adcontextprotocol/adcp-client-python · GitHub

Open Graph Title: feat(server): createUpstreamHttpClient + createTranslationMap (translator pattern helpers) · Issue #453 · adcontextprotocol/adcp-client-python

X Title: feat(server): createUpstreamHttpClient + createTranslationMap (translator pattern helpers) · Issue #453 · adcontextprotocol/adcp-client-python

Description: Parent: #452 JS source .changeset/adapter-translation-helpers.md (6.7). What Python adopters write today 200+ lines of httpx.AsyncClient boilerplate per upstream — auth header injection, 404→None translation, retry/timeout policy, JSON d...

Open Graph Description: Parent: #452 JS source .changeset/adapter-translation-helpers.md (6.7). What Python adopters write today 200+ lines of httpx.AsyncClient boilerplate per upstream — auth header injection, 404→None t...

X Description: Parent: #452 JS source .changeset/adapter-translation-helpers.md (6.7). What Python adopters write today 200+ lines of httpx.AsyncClient boilerplate per upstream — auth header injection, 404→None t...

Opengraph URL: https://github.com/adcontextprotocol/adcp-client-python/issues/453

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(server): createUpstreamHttpClient + createTranslationMap (translator pattern helpers)","articleBody":"Parent: #452\n\n## JS source\n\n`.changeset/adapter-translation-helpers.md` (6.7).\n\n## What Python adopters write today\n\n200+ lines of `httpx.AsyncClient` boilerplate per upstream — auth header injection, 404→None translation, retry/timeout policy, JSON decode. See `examples/v3_reference_seller/src/upstream.py` for the canonical hand-rolled version.\n\nPlus per-adapter bidirectional code↔code translation maps (status enums, channel enums, etc.) hand-written as two parallel dicts that drift.\n\n## Proposed API\n\n```python\nfrom adcp.decisioning import create_upstream_http_client, create_translation_map\n\nclient = create_upstream_http_client(\n    base_url=\"https://api.vendor.com\",\n    auth={\"type\": \"static_bearer\", \"token\": \"...\"},      # or dynamic_bearer | api_key | none\n    network_code=\"abc123\",\n    default_headers={...},\n    timeout_s=30.0,\n)\n# Typed get/post/put/delete returning parsed JSON or None on 404.\naccount = await client.get(\"/accounts/{id}\", params={...})\n\nstatus_map = create_translation_map[AdcpStatus, UpstreamStatus]({\n    \"active\": \"ACTIVE\",\n    \"paused\": \"PAUSED\",\n    ...\n})\nstatus_map.to_upstream(\"active\")     # \"ACTIVE\"\nstatus_map.to_adcp(\"ACTIVE\")         # \"active\"\nstatus_map.has_adcp(\"active\")        # True\nstatus_map.has_upstream(\"ACTIVE\")    # True\n```\n\nAuth modes: `static_bearer` / `dynamic_bearer` (callable returning fresh token, used by OAuth passthrough in #6) / `api_key` / `none`.\n\n## Acceptance criteria\n\n- Both helpers exported from `adcp.decisioning`.\n- Tests cover: each auth mode, 404→None, retry on 5xx, JSON decode errors.\n- Translation map: round-trip identity, missing-key raises, generic typing.\n- `examples/v3_reference_seller/src/upstream.py` could be refactored to use them (defer that to a follow-up `v3-ref-seller-uses-helpers` PR).","author":{"url":"https://github.com/bokelley","@type":"Person","name":"bokelley"},"datePublished":"2026-05-03T11:28:08Z","url":"https://github.com/adcontextprotocol/adcp-client-python/issues/453"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:41b9e235-47d0-2594-319a-948da1822ada
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id830C:1201C:C23EBB:103DCD7:6B00F68F
html-safe-nonce2a88e3b7ee3cae52befd2225d52477d930d7a2ff44aa357af70cbb54d20bfa7f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzBDOjEyMDFDOkMyM0VCQjoxMDNEQ0Q3OjZCMDBGNjhGIiwidmlzaXRvcl9pZCI6IjU2ODEwOTAxMjkxMTcxMTYwNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7926137c56fb21547f3805cbf9ced42b03e32b3d41eda495564071c7582b4f09
hovercard-subject-tagissue:4371629706
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/adcontextprotocol/adcp-client-python/453/issue_layout
twitter:imagehttps://opengraph.githubassets.com/88792b48abb24db445937acfa7e2ad16dfce80c37a64c0aeb5b97e9dbed30546/adcontextprotocol/adcp-client-python/issues/453
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/88792b48abb24db445937acfa7e2ad16dfce80c37a64c0aeb5b97e9dbed30546/adcontextprotocol/adcp-client-python/issues/453
og:image:altParent: #452 JS source .changeset/adapter-translation-helpers.md (6.7). What Python adopters write today 200+ lines of httpx.AsyncClient boilerplate per upstream — auth header injection, 404→None t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebokelley
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
go-importgithub.com/adcontextprotocol/adcp-client-python git https://github.com/adcontextprotocol/adcp-client-python.git
octolytics-dimension-user_id221690821
octolytics-dimension-user_loginadcontextprotocol
octolytics-dimension-repository_id1090305973
octolytics-dimension-repository_nwoadcontextprotocol/adcp-client-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1090305973
octolytics-dimension-repository_network_root_nwoadcontextprotocol/adcp-client-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/adcontextprotocol/adcp-client-python/issues/453#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fadcontextprotocol%2Fadcp-client-python%2Fissues%2F453
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fadcontextprotocol%2Fadcp-client-python%2Fissues%2F453
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=adcontextprotocol%2Fadcp-client-python
Reloadhttps://github.com/adcontextprotocol/adcp-client-python/issues/453
Reloadhttps://github.com/adcontextprotocol/adcp-client-python/issues/453
Reloadhttps://github.com/adcontextprotocol/adcp-client-python/issues/453
adcontextprotocolhttps://github.com/adcontextprotocol
adcp-client-pythonhttps://github.com/adcontextprotocol/adcp-client-python
Codehttps://github.com/adcontextprotocol/adcp-client-python
Issues44 (44)https://github.com/adcontextprotocol/adcp-client-python/issues
Pull requests13 (13)https://github.com/adcontextprotocol/adcp-client-python/pulls
Actionshttps://github.com/adcontextprotocol/adcp-client-python/actions
Projectshttps://github.com/adcontextprotocol/adcp-client-python/projects
Security and qualityhttps://github.com/adcontextprotocol/adcp-client-python/security
Insightshttps://github.com/adcontextprotocol/adcp-client-python/insights
https://github.com/adcontextprotocol/adcp-client-python
New issuehttps://github.com/login?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/453
New issuehttps://github.com/login?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/453
#856https://github.com/adcontextprotocol/adcp-client-python/pull/856
#768https://github.com/adcontextprotocol/adcp-client-python/pull/768
feat(server): createUpstreamHttpClient + createTranslationMap (translator pattern helpers)https://github.com/adcontextprotocol/adcp-client-python/issues/453#top
#856https://github.com/adcontextprotocol/adcp-client-python/pull/856
#768https://github.com/adcontextprotocol/adcp-client-python/pull/768
claude-triagedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaged%22
enhancementNew feature or requesthttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/453#issue-4371629706
#452https://github.com/adcontextprotocol/adcp-client-python/issues/452
#6https://github.com/adcontextprotocol/adcp-client-python/pull/6
bokelleyhttps://github.com/bokelley
enhancementNew feature or requesthttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
claude-triagingTriage routine is actively working on this issue (1-3 min)https://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaging%22
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/453#event-25106234582
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/453#issuecomment-4366068826
https://claude.ai/code/cse_01NHKqCc2S2Jkdi2Lxf2bDE5https://claude.ai/code/cse_01NHKqCc2S2Jkdi2Lxf2bDE5
Claude Codehttps://claude.ai/code
bokelleyhttps://github.com/bokelley
claude-triagedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaged%22
claude-triagingTriage routine is actively working on this issue (1-3 min)https://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaging%22
on May 3, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/453#event-25106317654
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on May 21, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/453#issuecomment-4508095355
bokelleyhttps://github.com/bokelley
claude-triagingTriage routine is actively working on this issue (1-3 min)https://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaging%22
claude-triagingTriage routine is actively working on this issue (1-3 min)https://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaging%22
on May 21, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/453#event-25803417090
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on May 21, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/453#issuecomment-4508181703
#767https://github.com/adcontextprotocol/adcp-client-python/pull/767
#767https://github.com/adcontextprotocol/adcp-client-python/pull/767
https://claude.ai/code/session_0172h7dGLvfEeo1DLKzAH4TZhttps://claude.ai/code/session_0172h7dGLvfEeo1DLKzAH4TZ
Claude Codehttps://claude.ai/code
https://github.com/bokelley
bokelleyhttps://github.com/bokelley
on May 21, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/453#issuecomment-4508187584
#464https://github.com/adcontextprotocol/adcp-client-python/pull/464
#768https://github.com/adcontextprotocol/adcp-client-python/pull/768
bokelleyhttps://github.com/bokelley
completedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 21, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/453#event-25803752363
bokelleyhttps://github.com/bokelley
on May 21, 2026https://github.com/adcontextprotocol/adcp-client-python/issues/453#event-25806971307
feat(translation): list known keys in TranslationMap KeyError (#768)https://github.com/adcontextprotocol/adcp-client-python/commit/75454245f1752d232fa7e52a38c8f201e9cbd3fe
#768https://github.com/adcontextprotocol/adcp-client-python/pull/768
7545424https://github.com/adcontextprotocol/adcp-client-python/commit/75454245f1752d232fa7e52a38c8f201e9cbd3fe
fix(decisioning): project malformed-JSON 2xx responses to AdcpError (#…https://github.com/adcontextprotocol/adcp-client-python/commit/c547dfe66148d393f705443f8a4c2dac50f6e749
#…https://github.com/adcontextprotocol/adcp-client-python/pull/836
c547dfehttps://github.com/adcontextprotocol/adcp-client-python/commit/c547dfe66148d393f705443f8a4c2dac50f6e749
Sign up for freehttps://github.com/signup?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/453
Sign in to commenthttps://github.com/login?return_to=https://github.com/adcontextprotocol/adcp-client-python/issues/453
claude-triagedhttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22claude-triaged%22
enhancementNew feature or requesthttps://github.com/adcontextprotocol/adcp-client-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.