Skip to main content

TTYKit

Helping made beautiful out in terminal

Python Version GitHub license Repository Downloads

This file is 2-lang

EN

For Start

  • Automatic

    • exec pip install ttykit
  • Manually

    • Dev version

      • clone repository

        git clone https://github.com/He-STALIN/ttykit.git
        
      • change to dir and exec

        pip install .
        
    • From Release

      • download any release from Releases

      • exec in terminal

        pip install <path>
        

        where <path> you need write path to the downloaded release file

support the project

  • If you would like the project to continue developing, you can make a donation.
  • Account: 4100 1186 1873 2284 (YouMoney)
  • or
  • Find bugs in the library and report them in the issues section on GitHub.

Code Examples

  • Status

    from ttykit import Status, TaskState
    
    with Status("Something unit", spinner="line") as status:
        ... # your payload
        status.set_state(TaskState.SUCCESS)
    
  • Progress

    from ttykit import Progress
    
    with Progress(100, "Some desc", 40) as progress:
        ... # your code
        progress.update(value)
        ... # your code again
        progress.finish()
    
  • for more code examples see CODE USE

License

Versions

  • You interesting see versions? You can see CHANGELOG

RU

Для начала использования

  • Авто-установка

    • выполните pip install ttykit в терминале
  • Вручную

    • Разрабатываемую версию

      • скопируйте репозиторий

        git clone https://github.com/He-STALIN/ttykit.git
        
      • перейдите в папку и выполни

        pip install .
        
    • Релизную версию

      • Скачайте любой релиз из вкладки "Releases"

      • выполните в терминале

        pip install <path>
        

        Где <path> вам нужно вставить путь к скачанному файлу релиза

Поддержите проект

  • Если вы желаете, чтобы проект разрабатывался дальше, вы можете сделать пожертвование.
  • Счет: 4100 1186 1873 2284 (ЮМани)
  • или
  • Ищите ошибки в библиотеке и сообщайте о них в issues на GitHub.

Примеры кода

  • Status класс

    from ttykit import Status, TaskState
    
    with Status("Какая-то задача", spinner="line") as status:
        ... # ваша нагрузка
        status.set_state(TaskState.SUCCESS)
    
  • Progress класс

    from ttykit import Progress
    
    with Progress(100, "Некоторое описание", 40) as progress:
        ... # ваш код
        progress.update(value)
        ... # и снова ваш код
        progress.finish()
    
  • Для большего количества примеров и описания смотрите CODE USE

Лицензия

Версии

  • вам интересно узнать про версии? Вы можете посмотреть CHANGELOG

ttykit by He_STALIN. All rights reserved

Metadata

Release files for ttykit 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ttykit 0.5.0
File Size Uploaded Provenance
ttykit-0.5.0.tar.gz 23.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ttykit 0.5.0
File Interpreter ABI Platform
ttykit-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 51.2 kB

Release files / ttykit-0.5.0.tar.gz

Download URL ttykit-0.5.0.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
989f90748c3a9b898566a5bfe96f6c5dbe2768b6e51e11e050fe84c7cc58d846
BLAKE2b-256 checksum
How to use checksums
b93097f44e04bb4c37460dbd8c13948d453c33ce98472f71ece094349a9d3c71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / ttykit-0.5.0-py3-none-any.whl

Download URL ttykit-0.5.0-py3-none-any.whl
Size 27.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17365e2f3be579edbef09f56f5425a7e6c52c300bf3f4e0427aba7fa182e4873
BLAKE2b-256 checksum
How to use checksums
87e9c2835ce19ac60dfe4f76fda035ecc945f92f32cff9e9aba9cdc819ba83c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for ttykit 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page