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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mobnslib-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8b69eafbf6fa1c79edbf2f42b7d30d682e099cc381ba2065152cd57a268c843b
MD5 50c128545752a80f602b27024c230a54
BLAKE2b-256 c039571850277f2dc5ff6c392c4ce1635e50a8ca4e9847f98b1855817f58bfb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mobnslib-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e5f7900c7442b06f278fe1186ca2c71aadf010b215e9aa6d35681b4427649468
MD5 fef994e75c372feeca0bed4a01d07eea
BLAKE2b-256 296682361d039e57153ede35330e7cb647a362158a0b94f8f84a08774b2aa405

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