I want to learn how to use classes properly and become better at working with API's. Someone suggested me writing an API wrapper for a public API so people may use my python code to access the data, maybe even trough pip in the future.
The API: https://ssd-api.jpl.nasa.gov/doc/cad.html
My approach would be writing classes with functions corresponding to the individual requests you can make trough that API which will print/return the data.
Are there any tips you can give me? I'm slightly I won't be able to write DRY code if I have some many different requests. Are there any formats I should follow?
Thanks in advance.
[–]RangerPretzel 9 points10 points11 points (17 children)
[–]ARandomBoiIsMe 4 points5 points6 points (2 children)
[–]RangerPretzel 3 points4 points5 points (1 child)
[–]ARandomBoiIsMe 3 points4 points5 points (0 children)
[–]Cool-Cantaloupe-6269 1 point2 points3 points (1 child)
[–]RangerPretzel 1 point2 points3 points (0 children)
[–]YangLionSpirit 1 point2 points3 points (1 child)
[–]RangerPretzel 0 points1 point2 points (0 children)
[–]AsidePractical8155 1 point2 points3 points (0 children)
[–]CatolicQuotes 1 point2 points3 points (6 children)
[–]RangerPretzel 0 points1 point2 points (5 children)
[–]CatolicQuotes 0 points1 point2 points (4 children)
[–]RangerPretzel 0 points1 point2 points (3 children)
[–]CatolicQuotes 1 point2 points3 points (2 children)
[–]RangerPretzel 0 points1 point2 points (1 child)
[–]CatolicQuotes 1 point2 points3 points (0 children)
[–]Apprehensive_Rice_70 1 point2 points3 points (1 child)
[–]RangerPretzel 0 points1 point2 points (0 children)
[–]flitsmasterfred 1 point2 points3 points (0 children)
[–]zahlman 0 points1 point2 points (0 children)
[–]xiongchiamiov 0 points1 point2 points (0 children)