• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pyiron / courier / 23465010741
50%

Build:
DEFAULT BRANCH: main
Ran 23 Mar 2026 11:22PM UTC
Jobs 1
Files 17
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Mar 2026 06:32PM UTC coverage: 50.0% (+16.2%) from 33.793%
23465010741

push

github

web-flow
Merge pull request #27 from pyiron/base_client

This PR introduces courier.HttpClient as a public HTTP(S) client API.

## Main changes:
- Adds HttpClient in courier/http_client.py
- Exposes it via from courier import HttpClient
- Normalizes address into base_url via courier.transport.url.normalize_base_url
- Creates a requests.Session (or accepts an externally managed one) via courier.transport.session.create_session
- Injects bearer auth headers from token via courier.transport.auth.bearer_headers
- Provides a public request() method forwarding params / json / data / files / headers / stream and applying configured timeout + verify
- Provides public convenience helpers using courier.transport.request:
  - get_text, get_json
  - put_text, post_text
  - delete_text

## Additional updates:
- Renames the module from base_client.py to http_client.py
- Renames and updates unit tests to tests/unit/test_http_client.py
- Clarifies docstrings to reflect that HttpClient is public and intended for direct use
- Fixes timeout validation so boolean values are rejected

---

**This PR does change the top-level public API: HttpClient is now exported from courier/__init__.py.**

196 of 392 relevant lines covered (50.0%)

0.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23465010741.1 23 Mar 2026 11:22PM UTC 17
50.0
GitHub Action Run
Source Files on build 23465010741
  • Tree
  • List 17
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23465010741
  • 3d06c13b on github
  • Prev Build on main (#23170555268)
  • Next Build on main (#23516959351)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc