Beginnings of a Python library for Igloo APIs
Okay, so I only spent a little bit of time on this, but I made a python library to access Igloo APIs. (licensed under GNU General Public License v3.0)
You can find it here: https://github.com/xkahn/pyigloo
So far it can:
- Create a session
- Get information about the community your session is connected to
Okay, so it's SUPER early days and it probably isn't very useful beyond a proof of concept.
But, I'm happy to accept contributions from anyone who wants to join.
There are some obvious paths where you can help:
- Wrap more API calls
- Split the APIs into multiple classes
- Maybe convert to python's simple-rest-client: https://python-simple-rest-client.readthedocs.io/en/latest/quickstart.html
- More docs!
- 33 views
- 9 previews
- 1 version
- 3 replies
- 2 followers
- Posted By:
- Benjamin Kahn
- February 9, 2021
About this forum
- 4,666 views
- 58 topics
- 16 followers
Share your thoughts, ideas, and questions using this forum and help other developers and technologists build on the Igloo Platform.
3 Replies
BEN!
This is amazing!
I'm not sure if I plan to update this forum with all the developments, but I published a few updates to this library.
Why is "get_web_uri" interesting on the Igloo platform? There are a number of places where there isn't an API to accomplish a particular task, but there is a web page which can do it. Often this web page will have a hidden form field which will be required when POSTing the command. This call will correctly hit the page, and allow you to easily find the appropriate value.
Oh! And the samples now support multiple Igloo environments:
.env will be loaded no matter what. Add any settings there that are universal.
If you set the ENV environment variable, the samples will load settings for that environment. For example:
$ ENV=prod python subs.py
Will load .env.prod and will override any settings in .env