Metadata-Version: 2.1
Name: epiwrap
Version: 0.1.1
Summary: A local wrapper for the epitech intranet
Home-page: https://github.com/Waz0x/EpiWrap
Author: Waz0x
Author-email: remy.noulin@epitech.eu
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/Waz0x/EpiWrap/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# EpiWrap

This is a wrapper for the epitech intranet 'api'

**installation**
````python
pip install epiwrap 
````

You can see here some examples:

````python
from epiwrap import intra

client = intra.EpiWrap(token="your token" or autolog="autolog link")

user = client.get_profile()

print("Name: " + user.fullname + "\nCredits: " + str(user.credits))
````


## How to get your token ?
(token are limited in time but not autolog link so it's better to use autolog)

You must be connected to the [intranet](https://intra.epitech.eu/)

Now with the network tool (firefox "ctrl + shift + e", chrome "ctrl + shift + i" and then go in the network tab)
Click on the `/` request  
![img](images/network.png)  
Now go on the `cookies tab` and copy your user token (it should look like this)  
![img](images/cookie.png)  
Now you have your token, (don't forget that the cookie resets, so you have to change it when it's reset. Unfortunately I can't do anything to correct this)


