semvec/pypi-packages huggingface dataset:
window-terminal 1.0.6
Start new Terminal Windows with print and input control
License: MIT
Requires Python: >=3.6

window-terminal |Python versions|
=================================

**window-terminal** is a Python module for start new Terminal Window
with print and input control.

Installation
------------

Install from pip.

.. code:: bash

   pip install window-terminal

Usage
-----

Below there are example, how to use this module.

.. code:: python

   import time
   from window_terminal import WindowTerminal

   #### First Example: Print on Windows Terminal ####

   # To instantiate a Window Terminal call 'WindowTerminal.create_window()' 
   window1 = WindowTerminal.create_window()

   # To Open a Window Terminal, call 'open()' from a object
   window1.open()

   # Print on Windown Terminal, call 'print()'
   window1.print('Hello I\'m a Window Terminal!')

   # The Window Terminal can be closed at any time
   # For example: close after 3 seconds
   time.sleep(3)
   window1.close()

   #### Second Example: Interact with Window Terminal ####

   # Insantiating and opening it more...
   window2 = WindowTerminal.create_window()
   window2.open()

   # And printing...
   window2.print('### Welcome to Window Terminal 2 ###')

   # To prompt for something to Window Terminal call 'input()'
   # Current thread will be blocked until input is answered
   something = window2.input('Type something here: ')

   # Priting result...
   print('Window Temrinal 2 replied:', repr(something))

   # Closing Window Terminal 2
   window2.close()

   #### Third Example: Async Interact with Window Terminal ####

   # # Insantiating and opening it for the last time...
   window3 = WindowTerminal.create_window()
   window3.open()

   # We can define a function to be called when input is answered
   def input_callback(result):
       print('Window Terminal 3 replied:', repr(result))

   # Now, current thread not will be blocked, when 'input()' is called
   window3.input('Other input, type something more here: ', input_callback)

   # To prevent the script from closing,  call 'wait_close()' to block 
   # current thread, until Window Terminal close (for example: user action).
   window3.wait_close()

   # Printing after Window Terminal 3 close
   print('Window Terminal 3 was closed!')

Contributing
------------

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

`MIT`_

.. _MIT: https://raw.githubusercontent.com/Igorxp5/window-terminal/master/LICENSE

.. |Python versions| image:: https://img.shields.io/badge/python-3-brightgreen.svg
   :target: https://www.python.org/
moscow-yandex-transport 0.2.0
YANDEX transport API client library
License: MIT
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4
Keywords: pypi,yandex transport,packages,pip

``moscow_yandex_transport`` is a client library for the YANDEX TRANPORT API
This client can request data for bus stops and present it on python dictionary


Installation
============
Just use `pip <https://pip.pypa.io>`_ (You have pip, right?) to install
``moscow_yandex_transport`` and its dependencies::

    pip install moscow_yandex_transport


Example
=======

::

    >>> from moscow_yandex_transport import YandexMapsRequester
    >>> client = YandexMapsRequester()
    >>> print(client.get_stop_info(9639579))