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

usabilla / api-python
79%
master: 79%

Build:
Build:
LAST BUILD BRANCH: dan11218-patch-1
DEFAULT BRANCH: master
Repo Added 12 Sep 2016 01:49PM CUT
Files 1
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

LAST BUILD ON BRANCH reuse-connections
branch: reuse-connections
CHANGE BRANCH
x
Reset
  • reuse-connections
  • 1.2.2
  • 1.2.3
  • 1.3.0
  • 2.0.0
  • 2.0.1
  • campaign-for-apps
  • coveralls
  • dan11218-patch-1
  • dependabot/pip/urllib3-1.24.2
  • examples
  • increase-test-coverage
  • master
  • prepare-new-release
  • pypi-deploy

pending completion
101

push

travis-ci

stevenjm
Reuse connections when making API calls

By default, the Python requests module will create a new session
object each time it is called. This means that each requests.get
call has a separate connection pool and cannot reuse connections
created by previous requests.

Here we create a class variable with a requests session, which is
used for all instances of the APIClient class.

86 of 109 relevant lines covered (78.9%)

1.58 hits per line

Relevant lines Covered
Build:
Build:
109 RELEVANT LINES 86 COVERED LINES
1.58 HITS PER LINE
Source Files on reuse-connections
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
No data available in table
Showing 0 to 0 of 0 entries
  • Previous
  • Next

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
101 reuse-connections Reuse connections when making API calls By default, the Python requests module will create a new session object each time it is called. This means that each requests.get call has a separate connection pool and cannot reuse connections created by ... push 09 May 2018 09:25AM CUT stevenjm travis-ci pending completion  
See All Builds (66)
  • Repo on GitHub
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

© 2025 Coveralls, Inc