Python wrapper made for my school's apis
Based on a colleague's documentation
from etnawrapper import EtnaWrapper
wrapper = EtnaWrapper(login='your_login', password='your_passwd')
# In order to check if you can access the APIs, try this:
infos = wrapper.get_user_info()
# It should return informations about your profile
print(infos)
# {
# 'id': 1,
# 'login': 'user',
# 'email': 'email',
# 'logas': False,
# 'groups': ['student'],
# 'login_date': '2021-04-07 23:38:36',
# 'firstconnexion': False
# }
This package provides an executable called etna. Using this program, you will be able to get informations without developping your own implementations.
Current features:
- List current activities
Below is an example usage of this program:
$ etna activities
# Acitivities per module
In order to enable autocompletion, please refer to click's autocomplete documentation
For bash:
This package is available on Pypi. Simply install it using:
$ pip install etnawrapper
You can generate the module documentation using:
$ pip install -r requirements-doc.txt
$ make html
$ cd build/html && python -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
Contibutions are welcome. Simply fork the project and make a pull request.