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

praw-dev / prawcore / 29
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 09 Feb 2016 07:53AM UTC
Jobs 5
Files 7
Run time 16s
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

pending completion
29

push

travis-ci

bboe
Complete an initial version of the RateLimiter code.

The primary goal of the rate limiter it to ensure the API's rate limit is not
exceeded. The secondary goal is for the sleep time between requests to be
relatively stable under the assumption that requests will continue to come in
immediately. This stability should occur both when there is only a single
reddit API client, and when there are multiple reddit API clients.

The decrease in the number of remaining API requests after a single request is
issued is an approximation for the number of reddit API clients. This
assumption appears to work reasonably well in my limited testing assuming all
clients follow the same procedure. However this approach does permit a greedy
reddit API client to starve all other clients, with clients using this
RateLimiter experiencing gradually longer delays between requests.

This approach should be satisfactory, however, given that the end user should
have control over all of their own reddit API clients.

113 of 121 relevant lines covered (93.39%)

4.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29.1 09 Feb 2016 07:53AM UTC 0
93.39
Travis Job 29.1
2 29.2 09 Feb 2016 07:53AM UTC 0
93.39
Travis Job 29.2
3 29.3 09 Feb 2016 07:53AM UTC 0
93.39
Travis Job 29.3
4 29.4 09 Feb 2016 07:53AM UTC 0
93.39
Travis Job 29.4
5 29.5 09 Feb 2016 07:53AM UTC 0
93.39
Travis Job 29.5
Source Files on build 29
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #29
  • 8a542a59 on github
  • Prev Build on rate_limit (#27)
  • Next Build on rate_limit (#31)
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