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.1.tar.gz (11.2 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.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mobnslib-0.1.1.tar.gz
  • Upload date:
  • Size: 11.2 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.1.tar.gz
Algorithm Hash digest
SHA256 826d0216aea71c5dbd0f6ee84dce1385d853890a7dffc4c4ffd6a1456a12031f
MD5 41957cfe4be469a107f46caacefa7f8b
BLAKE2b-256 acba224da3cfb15cd4f651e0bd1522be950598e2f452d766aad8e221ee2da61d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mobnslib-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 353c986200d93da0b275820addbeb6151a984a26d8ad8d9a150c1e33220cf25c
MD5 359acddc17ba2090b537654d2fc25223
BLAKE2b-256 c0248bf5019582f0043f97a9ab1f21f84ecca6dbd4f31f3af8891a61d170373e

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