Skip to main content

Библиотека для взаимодействия с сетевым дневником (NetSchool)

Project description

MobNsLib

Библиотека для асинхронного взаимодействия с API мобильного приложения сетевого дневника (NetSchool).

Установка

pip install MobNsLib

Использование

import asyncio
from MobNsLib import nsLib

async def main():
    ns = nsLib("https://your-school-url.ru")
    
    result = await ns.EsiaLogin(login="номер_телефона", password="пароль")
    if result['status'] == "ENTER_MFA":
        code = input()
        result = await ns.EsiaMfa(code, result)
    
    tokens = await ns.EsiaLogin(result)

    
if __name__ == "__main__":
    asyncio.run(main())

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

mobnslib-0.1.8.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

mobnslib-0.1.8-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file mobnslib-0.1.8.tar.gz.

File metadata

  • Download URL: mobnslib-0.1.8.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for mobnslib-0.1.8.tar.gz
Algorithm Hash digest
SHA256 7e26fff52a1b1b5e9d557f4ae5d8fff31e3fee2453058344b4ebdf0b22e39bd7
MD5 e3b217014e2c4cd35be5c67cb836e76c
BLAKE2b-256 453248512387b26198cd9ae4b9570f968749d24a49871eb92ab8c50111a58d2d

See more details on using hashes here.

File details

Details for the file mobnslib-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: mobnslib-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for mobnslib-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 188dd735a2ce6ff62ee383813e979738b4edcbd53d7bb83c17f688b4196a7f69
MD5 498713af2a47c73849faf8144a003270
BLAKE2b-256 e1730e9fda203d71d0973aa903a7c1ee7e7665f8653375762f2856a98ae81164

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