You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 18, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+31-20Lines changed: 31 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,9 +125,17 @@ The First Street Foundation API Access (Python) is a wrapper used to bulk extrac
125
125
126
126
Example: ```-l property```
127
127
128
-
- `[-connection_limit/--connection_limit CONNECTION_LIMIT]`: [OPTIONAL] The max number of concurrent connections to make the the API at the same time. This is does not affect the number of FSIDs that can be pulled. Defaults to 100 connections
128
+
- `[-connection_limit/--connection_limit CONNECTION_LIMIT]`: [OPTIONAL] The max number of concurrent connections to make to the API at the same time. This is does not affect the number of FSIDs that can be pulled. Defaults to 100 connections
129
129
130
-
Example: ```-connection_limit 20```
130
+
Example: ```-connection_limit 20000```
131
+
132
+
- `[-rate_limit/--rate_limit RATE_LIMIT]`: [OPTIONAL] The max number of requests during the rate limit period. Defaults to 20000 requests
133
+
134
+
Example: ```-rate_limit 1```
135
+
136
+
- `[-rate_period/--rate_period RATE_PERIOD]`: [OPTIONAL] The period of timefor the rate limit. Defaults to 1 second
137
+
138
+
Example: ```-rate_period 20```
131
139
132
140
- `[-log/--log LOG]`: [OPTIONAL] To log info output to the console or not. Defaults to True
133
141
@@ -184,12 +192,15 @@ The First Street Foundation API Access (Python) is a wrapper used to bulk extrac
* api_key `string`: The assigned API key to access the API.
201
+
* connection_limit `int=100`: The max number of connections to make
202
+
* rate_limit `int=20000`: The max number of requests during the period
203
+
* rate_period `int=1`: The period of timefor the limit
193
204
* version `string= v1`: The version of the API to access. Defaults to the current version.
194
205
* log `bool= True`: Setting for whether to log info or not. Defaults to True.
195
206
@@ -263,8 +274,8 @@ The Location API provides `Detail` and `Summary` data for the given SearchItems.
263
274
location.<method>
264
275
```
265
276
266
-
*`get_detail`(search_items `list/file`, location_type `string`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Location Detail` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
267
-
*`get_summary`(search_items `list/file`, location_type `string`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Location Summary` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
277
+
*`get_detail`(search_items `list/file`, location_type `string`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Location Detail` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
278
+
*`get_summary`(search_items `list/file`, location_type `string`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Location Summary` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
268
279
269
280
<a name="probability"></a>
270
281
#### [Probability](#toc)
@@ -277,11 +288,11 @@ The Probability API provides `Depth`, `Chance`, `Cumulative`, `Count` data for t
277
288
probability.<method>
278
289
```
279
290
280
-
*`get_depth`(search_items `list/file`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Probability Depth` product for the given IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
281
-
*`get_chance`(search_items `list/file`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Probability Chance` product for the given IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
282
-
*`get_count_summary`(search_items `list/file`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Probability Count-Summary` product for the given IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
283
-
*`get_cumulative`(search_items `list/file`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Probability Cumulative` product for the given IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
284
-
*`get_count`(search_items `list/file`, location_type `string`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Probability Count` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
291
+
*`get_depth`(search_items `list/file`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Probability Depth` product for the given IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
292
+
*`get_chance`(search_items `list/file`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Probability Chance` product for the given IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
293
+
*`get_count_summary`(search_items `list/file`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Probability Count-Summary` product for the given IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
294
+
*`get_cumulative`(search_items `list/file`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Probability Cumulative` product for the given IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
295
+
*`get_count`(search_items `list/file`, location_type `string`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Probability Count` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
285
296
286
297
<a name="historic"></a>
287
298
#### [Historic](#toc)
@@ -294,9 +305,9 @@ The Historic API provides `Summary` and `Event` data for the given SearchItems.
294
305
historic.<method>
295
306
```
296
307
297
-
*`get_event`(search_items `list/file`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Historic Event` product for the given historic IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
298
-
*`get_events_by_location`(search_items `list/file`, location_type `string`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Historic Detail` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
299
-
*`get_summary`(search_items `list/file`, location_type `string`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Historic Summary` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
308
+
*`get_event`(search_items `list/file`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Historic Event` product for the given historic IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
309
+
*`get_events_by_location`(search_items `list/file`, location_type `string`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Historic Detail` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
310
+
*`get_summary`(search_items `list/file`, location_type `string`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Historic Summary` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
300
311
301
312
<a name="adaptation"></a>
302
313
#### [Adaptation](#toc)
@@ -309,9 +320,9 @@ The Adaptation API provides `Summary` and `Project` data for the given SearchIte
309
320
adaptation.<method>
310
321
```
311
322
312
-
*`get_project`(search_items `list/file`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Adaptation Project` product for the given adaptation IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
313
-
*`get_details_by_location`(search_items `list/file`, location_type `string`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Adaptation Project` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
314
-
*`get_summary`(search_items `list/file`, location_type `string`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Adaptation Summary` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
323
+
*`get_project`(search_items `list/file`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Adaptation Project` product for the given adaptation IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
324
+
*`get_details_by_location`(search_items `list/file`, location_type `string`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Adaptation Project` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
325
+
*`get_summary`(search_items `list/file`, location_type `string`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Adaptation Summary` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
315
326
316
327
<a name="fema"></a>
317
328
#### [Fema](#toc)
@@ -324,7 +335,7 @@ The Fema API provides `NFIP` data for the given SearchItems.
324
335
fema.<method>
325
336
```
326
337
327
-
*`get_nfip`(search_items `list/file`, location_type `string`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Fema NFIP` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
338
+
*`get_nfip`(search_items `list/file`, location_type `string`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Fema NFIP` product for the given IDs, location_type, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
328
339
329
340
<a name="environmental"></a>
330
341
#### [Environmental](#toc)
@@ -337,7 +348,7 @@ The Environmental API provides `Precipitation` data for the given SearchItems.
337
348
environmental.<method>
338
349
```
339
350
340
-
*`get_precipitation`(search_items `list/file`, csv `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Environmental Precipitation` product for the given county IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
351
+
*`get_precipitation`(search_items `list/file`, csv `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Environmental Precipitation` product for the given county IDs, and optionally creates a csv file. Arguments provided to `extra_param` will be appened to the end of the endpoint call
341
352
342
353
<a name="tiles"></a>
343
354
#### [Tiles](#toc)
@@ -350,8 +361,8 @@ The Flood Tiles product give the ability to customize maps by layering on flood
350
361
tile.<method>
351
362
```
352
363
353
-
*`get_probability_depth`(coordinate `tuple of int`, year `int`, return_period `int`, image `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Probability Depth Tile` product for the given coordinates, and optionally creates an image file
354
-
*`get_historic_event`(coordinate `tuple of int`, event_id `int`, image `bool`, [connection_limit `int=100`], [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Historic Event Tile` product for the given coordinates, and optionally creates an image file
364
+
*`get_probability_depth`(coordinate `tuple of int`, year `int`, return_period `int`, image `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Probability Depth Tile` product for the given coordinates, and optionally creates an image file
365
+
*`get_historic_event`(coordinate `tuple of int`, event_id `int`, image `bool`, [output_dir `str='cwd'`], [extra_param `str=None`]) - Returns an array of `Historic Event Tile` product for the given coordinates, and optionally creates an image file
0 commit comments