Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional_rate_limit argument #77

Merged
merged 1 commit into from
Nov 25, 2023
Merged

Conversation

RazerM
Copy link
Member

@RazerM RazerM commented Nov 24, 2023

Resolves #73

This would allow the following pattern

from rush.quota import Quota

st = SpaceTrackClient(..., additional_rate_limit=Quota.per_hour(200))

@RazerM RazerM force-pushed the feature/additional-rate-limit branch from 066f61f to b065356 Compare November 24, 2023 20:03
@rob4acre
Copy link

Perfect. Exactly what I was thinking about. Many thanks
Rob

@RazerM RazerM merged commit 7654032 into master Nov 25, 2023
8 checks passed
@RazerM RazerM deleted the feature/additional-rate-limit branch November 25, 2023 19:25
@gimzmoe
Copy link

gimzmoe commented Mar 29, 2024

question about how this works,

st = SpaceTrackClient(self.track_user, self.track_pass, additional_rate_limit=Quota.per_minute(3))
tle_new = st.tle_latest(iter_lines = True, ordinal = 1, format = '3le', decayed = False)

is this considered many queries or just one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow setting rate limits when initialising
3 participants