epytech-0.9
توضیحات
The python's api for epitech's intra
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | epytech-0.9 |
| نام | epytech |
| نسخه کتابخانه | 0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Neo |
| ایمیل نویسنده | paul.gardien@epitech.eu |
| آدرس صفحه اصلی | https://github.com/Neotoxic-off/epytch |
| آدرس اینترنتی | https://pypi.org/project/epytech/ |
| مجوز | MIT |
<p align = "center">
<img alt = "logo" width="374" height="148" src = "https://raw.githubusercontent.com/Neotoxic-off/epytech/master/images/logo.png"/>
</p>
## Documentation
<p align = "left">
<a href = "https://github.com/Neotoxic-off/epytech/blob/master/DOCUMENTATION.md">Documentation</a>
</p>
<p align = "left">
<a href = "https://intra.epitech.eu/admin/autolog?format=json">Autologin</a>
</p>
## Install:
```
pip install --upgrade epytech
```
### Import
```PY
from epytech import session, user, login, notif
```
## Example:
```PY
from epytech import user, session, login, notif
class content:
# Initialisation of the classes
user = user.init()
login = login.init()
notif = notif.init()
key = session.create("https://intra.epitech.eu/******************")
def loader():
# Load the content into the classes
content.user.load(content.key)
content.login.load(content.key)
content.notif.load(content.key)
def test():
i = 0
loader()
if content.login.search('message') == "Success":
print("Login Success")
print("Welcome %s" % content.user.search('login'))
if content.notif.data:
if content.notif.len() > 1:
print("Your Notifications:\n")
while i < content.notif.len():
print(content.notif.search(i))
i += 1
else:
print("Your notification: %s" % content.notif.search(0))
else:
print("Login Failed")
test()
```
### Result:
```
Login Success
Welcome *********@epitech.eu
You have a notification: Your login time is insufficient (0).
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >= 3.4 | Python |
نحوه نصب
نصب پکیج whl epytech-0.9:
pip install epytech-0.9.whl
نصب پکیج tar.gz epytech-0.9:
pip install epytech-0.9.tar.gz