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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file epiwrap-0.1.3.tar.gz.

File metadata

  • Download URL: epiwrap-0.1.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.10

File hashes

Hashes for epiwrap-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6a1c29313a84748df1c56cddd72f110cf1fd5f451da54f40399f65e6b2790344
MD5 c7abdc39d1fe3d6493573afa00fb8f3a
BLAKE2b-256 bfbbaf8b02e39b301d7a48f96550e3f722113ac53ddc90536f8dadaafcb64dc4

See more details on using hashes here.

File details

Details for the file epiwrap-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: epiwrap-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.10

File hashes

Hashes for epiwrap-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ca11984de696586cf509a53a6aae0a1f99f3859680d6dceddfd972ad29579a86
MD5 6fcfa08be27c76c77c2296726b6bebae
BLAKE2b-256 4af3e2a2fc8db5daab9c65d4a80c9f261bace5e9f0489f603ea193829aea596a

See more details on using hashes here.

Supported by

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