Skip to main content

Command-line exam ticket helper

Project description

ISTCode

Command-line helper for exam tickets.

Python support: 3.8 or newer.

Русская инструкция:

USER_GUIDE_RU.md

Install for development

python -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install -e ".[dev]"

Install from GitHub

Install on any computer:

python -m pip install --upgrade --force-reinstall --no-cache-dir https://github.com/Pyshok342/ISTCode/archive/refs/heads/main.zip

After publishing to PyPI:

python -m pip install --upgrade --force-reinstall --no-cache-dir istcode

Offline install archive

Build a flash-drive archive with ISTCode and dependency wheels:

make_offline_bundle.bat

The archive is created in dist. Copy it to another Windows x64 computer, unzip it, then run:

install_offline.bat

Use

Show ticket by number:

ist-ticket 1

The command first reads ticket text from Word:

src/my_python_library/assets/files/ticket_01/ticket.docx

If ticket.docx is missing, it reads the fallback file:

src/my_python_library/assets/files/ticket_01/ticket.md

Tables from ticket.docx are printed as console-friendly ASCII tables.

Show available tickets:

ist-ticket list

Show help:

ist-ticket help

Show folder and names for attached files/photos/presentations:

ist-ticket files 6

Open all files from the ticket folder:

ist-ticket open 6

Search across ticket files:

ist-ticket search "метрики регрессии"
ist-ticket search sklearn metrics
ist-ticket search "метрики регрессии" --show

Ticket folders live in:

src/my_python_library/assets/files/ticket_01
src/my_python_library/assets/files/ticket_02
...
src/my_python_library/assets/files/ticket_20

Each folder can contain ticket.docx. This is the preferred editable Word file shown by ist-ticket N. If there is no ticket.docx, ticket.md is used as fallback.

Alternative launch:

python -m my_python_library 1

Python import:

from my_python_library import format_ticket

print(format_ticket(1))

Test

python -m pytest

Build

python -m build

Publish New Version

publish_new_version.bat

The helper automatically bumps the last number in pyproject.toml before it builds and pushes the release.

Publish

First publish to TestPyPI:

python -m twine upload --repository testpypi dist/*

Then publish to PyPI:

python -m twine upload dist/*

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

istcode-2.13.tar.gz (9.7 MB view details)

Uploaded Source

Built Distribution

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

istcode-2.13-py3-none-any.whl (9.7 MB view details)

Uploaded Python 3

File details

Details for the file istcode-2.13.tar.gz.

File metadata

  • Download URL: istcode-2.13.tar.gz
  • Upload date:
  • Size: 9.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for istcode-2.13.tar.gz
Algorithm Hash digest
SHA256 d59be077c461873ff89ec5bd990234f9e1ead639c3ab3de8382f4fe8c3e24e0f
MD5 e271f087edd7fc12c0ee1769ea89f9a0
BLAKE2b-256 d7ac36981ac2d2404e9f2205f0c42b1b6f46aef1464544a18f64bb80e5d08708

See more details on using hashes here.

Provenance

The following attestation bundles were made for istcode-2.13.tar.gz:

Publisher: publish.yml on Pyshok342/ISTCode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file istcode-2.13-py3-none-any.whl.

File metadata

  • Download URL: istcode-2.13-py3-none-any.whl
  • Upload date:
  • Size: 9.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for istcode-2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 9957dccd28dfdcdc511f6988bd9d2f60572f525f801e234220e0adc1c9d64221
MD5 ac3f0e6672ad9612b93b924271a5e645
BLAKE2b-256 3ce10fa5eb82d3d0d6262f1cb5113af79deb4d72ae8e27ad252b597744c07218

See more details on using hashes here.

Provenance

The following attestation bundles were made for istcode-2.13-py3-none-any.whl:

Publisher: publish.yml on Pyshok342/ISTCode

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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