Skip to main content

A local wrapper for the epitech intranet

Project description

EpiWrap

This is a wrapper for the epitech intranet 'api'

installation

pip install epiwrap 

You can see here some examples:

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))

Go check the wiki for more informations

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

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
Now go on the cookies tab and copy your user token (it should look like this)
img
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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

epiwrap-0.1.3.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

epiwrap-0.1.3-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page