Skip to main content

Python exam helper variables and solved tasks for Jupyter

Project description

exam-python-29-06-2026

Библиотека для Jupyter Notebook с готовыми строковыми переменными:

  • решения билетов по Python;
  • вспомогательные шпаргалки для экзамена;
  • функции для просмотра названий переменных и вывода нужного текста.

Имя пакета для установки через pip:

exam-python-29-06-2026

Имя модуля для импорта в Python:

exam_math

Модуль нельзя назвать math для нормальной работы через PyPI: в Python это встроенный модуль стандартной библиотеки. Команда import math будет открывать стандартный модуль Python, а не этот пакет.

Локальная установка

Из папки проекта:

py -m pip install -e .

Проверка:

from exam_math import get_solution_variable_names, get_helper_variable_names

get_solution_variable_names()
get_helper_variable_names()

Как смотреть решения билетов

Главная подсказка:

from exam_math import HELP

print(HELP)

Подсказка вместе с текущим списком всех переменных:

from exam_math import get_help

print(get_help())
from exam_math import get_solution_variable_names, get_variable_text

get_solution_variable_names()

Вывести конкретное решение:

print(get_variable_text("BILET_31_TASK_1_CAR_CLASS"))

Можно импортировать переменную напрямую:

from exam_math import BILET_31_TASK_1_CAR_CLASS

print(BILET_31_TASK_1_CAR_CLASS)

Как смотреть вспомогательные шпаргалки

from exam_math import get_helper_variable_names, get_variable_text

get_helper_variable_names()
print(get_variable_text("EXAM_HELP_DECORATOR_TEMPLATE"))

Полезные функции

get_all_variable_names()        # все строковые переменные библиотеки
get_solution_variable_names()   # только решения билетов
get_helper_variable_names()     # только вспомогательные шпаргалки
get_variable_text("ИМЯ")        # получить текст переменной по имени

Публикация в PyPI

Чтобы библиотека ставилась на любом компьютере через pip, её нужно загрузить в PyPI.

  1. Зарегистрируйся на https://pypi.org.
  2. Включи 2FA в аккаунте PyPI.
  3. Создай API-токен в настройках аккаунта PyPI.
  4. Запусти файл:
publish_to_pypi.cmd

Когда twine попросит данные:

username: __token__
password: pypi-...

В поле password вставь API-токен PyPI целиком.

Установка на другом компьютере

После публикации:

%pip install exam-python-29-06-2026

Потом:

from exam_math import get_solution_variable_names, get_helper_variable_names, get_variable_text

print(get_solution_variable_names())
print(get_helper_variable_names())
print(get_variable_text("EXAM_HELP_QUICK_ANSWER_PLAN"))

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

exam_python_29_06_2026-0.2.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

exam_python_29_06_2026-0.2.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file exam_python_29_06_2026-0.2.1.tar.gz.

File metadata

  • Download URL: exam_python_29_06_2026-0.2.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for exam_python_29_06_2026-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3869c9f444cdf14d588dc34a6f13dfa31ba8ffa30759715fbfa936ee99ea23bd
MD5 5783cf2e62758ad5c057a9fbfeb07102
BLAKE2b-256 957a7c27427f2d9cb9fe84ebd9e941a2769e87e97d1ecd8d169783800db17454

See more details on using hashes here.

File details

Details for the file exam_python_29_06_2026-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for exam_python_29_06_2026-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 15ba857bda1e41071312d87d581215d382207e2522cb6866c1ec6dbb880568e3
MD5 e228004b1d4890d37393a31d9541f0a1
BLAKE2b-256 c5c74d16cc24eef53b80f34a7c1ab0102c23c091637083cede717723d2e87f68

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