terminedia | Python3 library for multimedia functions | Command Line Interface library

 by   jsbueno Python Version: 0.4.2 License: LGPL-3.0

kandi X-RAY | terminedia Summary

kandi X-RAY | terminedia Summary

terminedia is a Python library typically used in Utilities, Command Line Interface applications. terminedia has no bugs, it has no vulnerabilities, it has build file available, it has a Weak Copyleft License and it has low support. You can install using 'pip install terminedia' or download it from GitHub, PyPI.

This is a Python library allowing using a text-terminal as a low-resolution graphics output, along with keyboard realtime reading, and a couple utilities enough to enable using a text terminal to run simple 2D games or simply rich terminal apps. The "noveau" factor is that it uses Unicode quarter-character block combinations to effectivelly enable 1/4 character "pixels" in the terminal. It also makes use of 24bit "true" color for text, not limiting itself to the 80’s 8 color palette for the terminal. The development version allows loading image files and displaying those as colored block chars on the terminal, several terminal-font text effects, and rendering big-text, 4 or 8 characters tall, by rendering built-in fonts as images using block characters. It is designed as a library, providing a discoverable and easy to use API for drawing, and upon install a few example scripts will be imediately available as stand-alone scripts with the "terminedia-" prefix. The idea is to keep this as a lightweight install - with as little dependencies as possible.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              terminedia has a low active ecosystem.
              It has 76 star(s) with 9 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 6 open issues and 7 have been closed. On average issues are closed in 9 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of terminedia is 0.4.2

            kandi-Quality Quality

              terminedia has 0 bugs and 0 code smells.

            kandi-Security Security

              terminedia has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              terminedia code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              terminedia is licensed under the LGPL-3.0 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              terminedia releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              It has 10162 lines of code, 982 functions and 68 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed terminedia and discovered the below as its top functions. This is intended to give you an instant insight into terminedia implemented functionality, and help decide if they suit your requirements.
            • Read events from stdin
            • Scans the input stream
            • Kill mouse clicks
            • List all subscribed subscriptions
            • Decorator to add keyword arguments to the decorated function
            • Wrap a coroutine in a context
            • Combine function signature and parameters
            • Render the terminal
            • Clear the context
            • Plot a function
            • Make a line between two points
            • Print text
            • Set foreground and background colors
            • Handle key event
            • Make a line
            • Receive a key press event
            • Resets the block at pos
            • Clears the context
            • Parse regular expression
            • Print text at pos
            • Run the game
            • Set the pixel at pos
            • Insert text at given position
            • Main function for the terminator
            • Maps text onto a given mark
            • Test the ellipses
            • Bezier curve
            • Refresh the text plane
            Get all kandi verified functions for this library.

            terminedia Key Features

            No Key Features are available at this moment for terminedia.

            terminedia Examples and Code Snippets

            No Code Snippets are available at this moment for terminedia.

            Community Discussions

            QUESTION

            Getting a BlockingIOError when printing or writting to stdout
            Asked 2021-May-02 at 00:12

            I am getting the little documented and less present in the web "BlockingIOError" when writing to the tty from a program where I need the terminal to be in "raw" mode.

            Switching the terminal to raw in Unix (Linux, Mac) is the way to get lines to show without printing a newline, and, more important, to read whatever is typed without having to wait for the key.

            Check https://stackoverflow.com/a/6599441/108205 for a reliable way to do it in Python.

            However, when printing data to the raw terminal, I would, at random times, have my program terminate with a BlockingIOError exception.

            (I had even built a retry mechanism to workaround it, but sometimes it was not work-aroundable at all).

            The exception shows up in some issues on github, with no assertion on how to fix it. The way to trigger it with my project is:

            ...

            ANSWER

            Answered 2021-May-02 at 00:12

            This snippet, creating a context manager which momentarily switches the tty back to "normal" blocking mode wrapping the parts that have a lot of output fixed the issue for me:

            Source https://stackoverflow.com/questions/67351928

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install terminedia

            You can install using 'pip install terminedia' or download it from GitHub, PyPI.
            You can use terminedia like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install terminedia

          • CLONE
          • HTTPS

            https://github.com/jsbueno/terminedia.git

          • CLI

            gh repo clone jsbueno/terminedia

          • sshUrl

            git@github.com:jsbueno/terminedia.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Command Line Interface Libraries

            ohmyzsh

            by ohmyzsh

            terminal

            by microsoft

            thefuck

            by nvbn

            fzf

            by junegunn

            hyper

            by vercel

            Try Top Libraries by jsbueno

            extrainterpreters

            by jsbuenoPython

            terminal_matrix

            by jsbuenoPython

            extradict

            by jsbuenoPython

            pythonchain

            by jsbuenoPython

            browser_invaders

            by jsbuenoPython