Skip to main content

MGIMO datasets and Python utilities.

Project description

Программные утилиты и данные МГИМО

PyPI - Version

Установка

pip install mgimo

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

Примеры использования приведены также в example.py.

Столицы стран-членов ООН

from random import choice

from mgimo.data import country_to_capital

countries = list(country_to_capital.keys())
assert len(countries) == 193
country = choice(countries)
city = country_to_capital[country]
print(f"Выбрана страна: {country}, столица - {city}.")

Логирование прохождения заданий

from mgimo.grading import convert_to_letter
from mgimo.logging import Mark, Transcript

Mark("это было простое задание").score(19, out_of=20).save("1.json")
Mark("это было задание посложнее").score(8, out_of=10).save("2.json")
t = Transcript()
t.register("1.json")
t.register("2.json")
p = t.summary.percent
print("Итоговая оценка:", convert_to_letter(p), p)  # A 90

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

mgimo-0.4.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

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

mgimo-0.4.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file mgimo-0.4.0.tar.gz.

File metadata

  • Download URL: mgimo-0.4.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.20

File hashes

Hashes for mgimo-0.4.0.tar.gz
Algorithm Hash digest
SHA256 91e7792154965998cc47bbd446bed858c24099bc0f869912d1a8ee87224dbd19
MD5 accbb831587ba2e652e820e78de4d2b6
BLAKE2b-256 a78b6876833b3a71eb6fbf414a77ded4f37b3ca493ec4663b3faf8cd018e8cdd

See more details on using hashes here.

File details

Details for the file mgimo-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: mgimo-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.20

File hashes

Hashes for mgimo-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e30c0e1c695248613f8f2c8ad2097d3bd0297bcefe6fcda2436cff38a0868bea
MD5 53e017be5e8e11bb30b7ce836f8a0930
BLAKE2b-256 a19e01441d48ca8084536a9918f0531a7b1cbd397e374439632e3bd1c014eb65

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