-
Notifications
You must be signed in to change notification settings - Fork 2
LocalitiesAgeIdRetriever
CorylC edited this page May 2, 2024
·
3 revisions
The LocalitiesAgeIdRetriever
class in the openmindat
package is designed for querying locality age data from the Mindat API by Id. The class supports method chaining for flexible query building and provides functionalities to save the queried data.
Create an instance of the LocalitiesAgeIdRetriever
class and use its methods to set up your search Id and retrieve data.
from openmindat import LocalitiesAgeIdRetriever
lidr = LocalitiesAgeIdRetriever()
lidr.id(5).saveto("/path/to/directory", "Locality_age_5")
Declares Id to search for.
-
ID
(int): specified Id. - Returns: self
Executes the query and saves the results to a specified directory.
-
OUTDIR
(str): Directory path. -
FILE_NAME
(str): file name. - Returns: None
Executes the query and saves the results to the current directory.
-
FILE_NAME
(str): file name - Returns: None
Executes the query and saves the results to an object.
- Returns: Dictionary
For more details, please refer to the Mindat API documentation.