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.7.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.7-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mobnslib-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 8da5e5f4dae05c0f5b02edc5866b6bfeaccb6024bd198eec01c5912aa0f8965d
MD5 83748e24e37c60d3448bc596f45998b4
BLAKE2b-256 4fb475a97f230f41b49d14baa7a67c69d4f30913d7253ecf4d4bc9cf53b38aef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mobnslib-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fc74c9224be7fdb0cc9babf8446e929e154db13d5499730869751e3a3c2344cc
MD5 9c0dc4cf67c57070873032af7d287a00
BLAKE2b-256 41fe5d08c07f998adba8f8303946be6d223e5939d33b941daf41e53dc09af79a

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