Skip to content

sh 2.2.2

Version history | Download JSON

  • PyPI https://pypi.org/project/sh/
    Repository https://github.com/amoffat/sh

  • py.typed

  • Coverage


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "Typed" : 3
        "Any" : 0
        "Untyped" : 439
    • 0.7% coverage
    • 0.7% coverage (strict)
    • 442 typable
      • 3 typed
      • 439 untyped
      • 0 Any
  • Typables


    %%{init: {"pie": {"textPosition": 0.85}, "theme": "neutral", "themeVariables": {"pieStrokeWidth": "1px"}}}%%
    pie title
        "functions" : 145
        "classes" : 224
        "other" : 13
    • 50 functions (+0 overloads)
      • 95 parameters
    • 21 classes
      • 103 methods (+0 overloads)
        • 116 parameters
      • 5 properties
    • 1 modules
      • 13 attrs

Modules

Module Coverage Coverage (strict) Typables Ignores
sh 0.7% 0.7% 442 1

Incomplete Annotations

sh (439 missing, 0 any)

Symbol Typable Typed Any
meth Logger.init 3 0 0
meth Logger._format_msg 3 0 0
meth Logger.sanitize_context 2 0 0
meth Logger.get_child 3 0 0
meth Logger.info 3 0 0
meth Logger.debug 3 0 0
meth Logger.error 3 0 0
meth Logger.exception 3 0 0
attr Logger.name 1 0 0
attr Logger.log 1 0 0
attr Logger.context 1 0 0
func ob_is_tty 2 0 0
func fg_validator 3 0 0
func tty_in_validator 3 0 0
attr env 1 0 0
func bufsize_type_to_bufsize 2 0 0
func event_wait 3 0 0
attr rc_exc_regex 1 0 0
func output_iterator_validator 3 0 0
func input_thread 6 0 0
func output_redirect_is_filename 2 0 0
meth StreamWriter.init 7 0 0
meth StreamWriter.fileno 1 0 0
meth StreamWriter.write 1 0 0
meth StreamWriter.close 1 0 0
attr StreamWriter.stream 1 0 0
attr StreamWriter.stdin 1 0 0
attr StreamWriter.log 1 0 0
attr StreamWriter.encoding 1 0 0
attr StreamWriter.tty_in 1 0 0
attr StreamWriter.stream_bufferer 1 0 0
func background_thread 6 0 0
meth Environment.init 3 0 0
meth Environment.getitem 2 0 0
meth Environment.b_which 3 0 0
attr Environment.globs 1 0 0
attr Environment.baked_args 1 0 0
func handle_process_exit_code 2 0 0
func bufsize_validator 3 0 0
func default_logger_str 4 0 0
attr DEFAULT_ENCODING 1 0 0
meth OProc.init 10 0 0
meth OProc.repr 1 0 0
meth OProc.change_in_bufsize 2 0 0
meth OProc.change_out_bufsize 2 0 0
meth OProc.change_err_bufsize 2 0 0
meth OProc.get_pgid 1 0 0
meth OProc.get_sid 1 0 0
meth OProc.signal_group 2 0 0
meth OProc.signal 2 0 0
meth OProc.kill_group 1 0 0
meth OProc.kill 1 0 0
meth OProc.terminate 1 0 0
meth OProc.is_alive 1 0 0
meth OProc._process_just_ended 1 0 0
meth OProc.wait 1 0 0
meth OProc._process_exit_cleanup 2 0 0
prop OProc.stdout 1 0 0
prop OProc.stderr 1 0 0
attr OProc.command 1 0 0
attr OProc.call_args 1 0 0
attr OProc.ctty 1 0 0
attr OProc.sid 1 0 0
attr OProc.pgid 1 0 0
attr OProc.pid 1 0 0
attr OProc.timed_out 1 0 0
attr OProc.started 1 0 0
attr OProc.cmd 1 0 0
attr OProc.exit_code 1 0 0
attr OProc.stdin 1 0 0
attr OProc.log 1 0 0
meth ErrorReturnCode.reduce 1 0 0
meth ErrorReturnCode.init 5 0 0
attr ErrorReturnCode.exit_code 1 0 0
attr ErrorReturnCode.full_cmd 1 0 0
attr ErrorReturnCode.stdout 1 0 0
attr ErrorReturnCode.stderr 1 0 0
attr ErrorReturnCode.truncate 1 0 0
func run_repl 2 0 0
func get_cstringio_chunk_consumer 2 0 0
attr SIGNAL_MAPPING 1 0 0
func get_fd_chunk_consumer 3 0 0
func ob_is_pipe 2 0 0
func get_callable_chunk_reader 2 0 0
func get_stringio_chunk_consumer 4 0 0
func get_file_chunk_consumer 3 0 0
func get_prepend_stack 1 0 0
meth Command.init 3 0 0
meth Command.getattribute 2 0 0
meth Command._extract_call_args 2 0 0
meth Command.bake 3 0 0
meth Command.str 1 0 0
meth Command.eq 2 0 0
meth Command.repr 1 0 0
meth Command.enter 1 0 0
meth Command.exit 4 0 0
meth Command.call 3 0 0
attr Command.thread_local 1 0 0
func compile_args 5 0 0
func get_fileno 2 0 0
meth PollPoller.init 1 0 0
meth PollPoller.nonzero 1 0 0
meth PollPoller.len 1 0 0
meth PollPoller._set_fileobject 2 0 0
meth PollPoller._remove_fileobject 2 0 0
meth PollPoller._get_file_descriptor 2 0 0
meth PollPoller._get_file_object 2 0 0
meth PollPoller._register 3 0 0
meth PollPoller.register_read 2 0 0
meth PollPoller.register_write 2 0 0
meth PollPoller.register_error 2 0 0
meth PollPoller.unregister 2 0 0
meth PollPoller.poll 2 0 0
attr PollPoller.fd_lookup 1 0 0
attr PollPoller.fo_lookup 1 0 0
attr contrib 1 0 0
func get_exc_exit_code_would_raise 4 0 0
meth RunningCommand.init 6 0 0
meth RunningCommand.wait 2 0 0
meth RunningCommand.is_alive 1 0 0
meth RunningCommand.handle_command_exit_code 2 0 0
meth RunningCommand.len 1 0 0
meth RunningCommand.enter 1 0 0
meth RunningCommand.iter 1 0 0
meth RunningCommand.next 1 0 0
meth RunningCommand.await 1 0 0
meth RunningCommand.aiter 1 0 0
meth RunningCommand.anext 1 0 0
meth RunningCommand.exit 4 0 0
meth RunningCommand.str 1 0 0
meth RunningCommand.eq 2 0 0
meth RunningCommand.contains 2 0 0
meth RunningCommand.getattr 2 0 0
meth RunningCommand.repr 1 0 0
meth RunningCommand.long 1 0 0
meth RunningCommand.float 1 0 0
meth RunningCommand.int 1 0 0
prop RunningCommand.stdout 1 0 0
prop RunningCommand.stderr 1 0 0
prop RunningCommand.exit_code 1 0 0
attr RunningCommand.ran 1 0 0
attr RunningCommand.call_args 1 0 0
attr RunningCommand.cmd 1 0 0
attr RunningCommand.process 1 0 0
attr RunningCommand.log 1 0 0
attr RunningCommand.aio_output_complete 1 0 0
func ssh 2 0 0
func canonicalize 2 0 0
func get_rc_exc 2 0 0
meth StreamReader.init 10 0 0
meth StreamReader.fileno 1 0 0
meth StreamReader.close 1 0 0
meth StreamReader.write_chunk 2 0 0
meth StreamReader.read 1 0 0
attr StreamReader.stream 1 0 0
attr StreamReader.buffer 1 0 0
attr StreamReader.save_data 1 0 0
attr StreamReader.encoding 1 0 0
attr StreamReader.decode_errors 1 0 0
attr StreamReader.pipe_queue 1 0 0
attr StreamReader.log 1 0 0
attr StreamReader.stream_bufferer 1 0 0
attr StreamReader.bufsize 1 0 0
attr StreamReader.should_quit 1 0 0
func determine_how_to_read_input 2 0 0
func output_thread 9 0 0
func construct_streamreader_callback 3 0 0
meth GlobResults.init 3 0 0
attr GlobResults.path 1 0 0
meth ForkException.init 2 0 0
func get_exc_from_name 2 0 0
func bash 2 0 0
func glob 4 0 0
meth SelfWrapper.init 3 0 0
meth SelfWrapper.getattr 2 0 0
meth SelfWrapper.bake 2 0 0
func determine_how_to_feed_output 4 0 0
attr HAS_POLL 1 0 0
func resolve_command_path 2 0 0
func sudo 2 0 0
func get_file_chunk_reader 2 0 0
meth SelectPoller.init 1 0 0
meth SelectPoller.nonzero 1 0 0
meth SelectPoller.len 1 0 0
meth SelectPoller._register 3 0 0
meth SelectPoller._unregister 3 0 0
meth SelectPoller.register_read 2 0 0
meth SelectPoller.register_write 2 0 0
meth SelectPoller.register_error 2 0 0
meth SelectPoller.unregister 2 0 0
meth SelectPoller.poll 2 0 0
attr SelectPoller.rlist 1 0 0
attr SelectPoller.wlist 1 0 0
attr SelectPoller.xlist 1 0 0
func no_interrupt 4 0 0
func get_queue_chunk_reader 2 0 0
func with_lock 2 0 0
attr FORCE_USE_SELECT 1 0 0
func ob_is_fd_based 2 0 0
func get_iter_chunk_reader 2 0 0
attr RUNNING_TESTS 1 0 0
func get_num_args 2 0 0
meth ErrorReturnCodeMeta.subclasscheck 2 0 0
func git 2 0 0
attr PUSHD_LOCK 1 0 0
meth Contrib.call 2 0 0
func get_iter_string_reader 2 0 0
func env_validator 3 0 0
attr version 1 0 0
meth StreamBufferer.init 4 0 0
meth StreamBufferer.change_buffering 2 0 0
meth StreamBufferer.process 2 0 0
meth StreamBufferer.flush 1 0 0
attr StreamBufferer.type 1 0 0
attr StreamBufferer.buffer 1 0 0
attr StreamBufferer.n_buffer_count 1 0 0
attr StreamBufferer.encoding 1 0 0
attr StreamBufferer.decode_errors 1 0 0
attr StreamBufferer.log 1 0 0
meth TimeoutException.init 3 0 0
attr TimeoutException.exit_code 1 0 0
attr TimeoutException.full_cmd 1 0 0
func get_callback_chunk_consumer 4 0 0
func setwinsize 3 0 0
func pushd 2 0 0
func resolve_command 4 0 0
attr IS_MACOS 1 0 0
func special_kwarg_validator 4 0 0

Type-Ignore Comments

Flavor Count
type: ignore 1