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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mobnslib-0.1.10.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.10.tar.gz
Algorithm Hash digest
SHA256 dcbe74d0b9abd469347f5af8d11a8de2bf1896cab233180f79f46294730430bb
MD5 64de2caa49952bb26af4ebda1e45c96b
BLAKE2b-256 20b431aac66dbe6121f816c495b298b9ede8c65bd7904e8a2f958fdb19dda068

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mobnslib-0.1.10-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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 1ac679454665a3d35ca0e0c99ee32fc4f3f8f7690aafc34a3d62a0f1f76ff2d0
MD5 c25bb9c00889b1654010bc09056db0ce
BLAKE2b-256 5670ddf7ce8fdfa4d62952ed6f29a661c51daa3aa52579c91563e0b441a95b09

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