.. _l-staticmethods: Static Methods ============== .. contents:: :local: :depth: 1 Summary +++++++ +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | staticmethod | class parent | truncated documentation | +=====================================================================================================================================+=============================+==============================================================================================================+ | :py:meth:`_format_str ` | ExtTestCase | Returns ``s`` or ``'s'`` depending on the type. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :py:meth:`_get_strrep ` | StaticInteract | Need to match javascript string rep | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :py:meth:`_key ` | ProfileNode | | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :py:meth:`_make_depart_admonition ` | MdTranslator | | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :py:meth:`_make_depart_admonition ` | RstTranslator | | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :py:meth:`_print_cache ` | DocumentationHandler | Displays the most requested files. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :py:meth:`_private_get_name ` | MagicCommandParser | guesses the name of a parameter knowning the argument given to :meth:`add_argument` | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`abs_path_join ` | ExtTestCase | Returns an absolute and normalized path from this location. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`add_mapping ` | DocumentationHandler | Adds a mapping associated to a local path to watch. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`build_expression ` | FileTreeNode | Builds a regular expression validating a list of extension. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`build_tag ` | BlogPost | Builds the tag for a post. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`bytes2mapping ` | MockTransferAPI | Deserializes a mapping. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`bytes2mapping ` | TransferAPI | Deserializes a mapping. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`category2url ` | BlogPostList | Removes accents and spaces to get a clean url. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`checksum_md5 ` | MockTransferAPI | Computes MD5 for a file. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`checksum_md5 ` | TransferAPI | Computes MD5 for a file. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`codediff_parser ` | MagicDiff | Defines the way to parse the magic command ``%codediff``. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`compress_parser ` | MagicCompress | defines the way to parse the magic command ``%compress`` | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`create ` | MockSphinxApp | Creates a :class:`MockSphinxApp` for :epkg:`Sphinx`. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`decrypt_file_parser ` | MagicCrypt | defines the way to parse the magic command ``%decrypt_file`` | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`divide_list ` | BlogPostList | Divides a list into buckets of *division* items. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`encrypt_file_parser ` | MagicCrypt | defines the way to parse the magic command ``%encrypt_file`` | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`endecrypt_file_parser ` | MagicCrypt | defines the way to parse the magic command ``%encrypt_file`` and ``%decrypt_file`` | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`execute ` | DocumentationHandler | Locally executes a python script. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`filter_node_ ` | ProfileNode | Filters out node to be displayed by default. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`getForFd ` | _AsyncLineReader | | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`get_cell_code ` | NotebookRunner | Returns the code of a cell. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`get_cmd_custom ` | JenkinsExt | Custom script for :epkg:`Jenkins`. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`get_from_cache ` | DocumentationHandler | Retrieves a file from the cache if it was cached, it the file was added later than a day, it returns None. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`get_ftype ` | DocumentationHandler | defines the header to send (type of files) based on path | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`get_label ` | IndexInformation | Returns a new label given the existing ones. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`get_mappings ` | DocumentationHandler | Returns a copy of the mappings. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`hash_string ` | JenkinsExt | Hashes a string. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`html_code_renderer ` | DocumentationHandler | Produces a html code for code. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`htmlhelp_parser ` | MagicClassExample | Defines the way to parse the magic command ``%htmlhelp``. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`mapping2bytes ` | MockTransferAPI | Serializes a mapping. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`mapping2bytes ` | TransferAPI | Serializes a mapping. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`process_html_path ` | DocumentationHandler | Processes a :epkg:`HTML` content, replaces path which are relative to the root and not the project. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`produce_aggregated_post_page ` | BlogPostList | Writes the content of an aggregate page of blog posts. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`profile ` | ExtTestCase | Profiles the execution of a function with function :func:`profile `. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`read_json ` | TransferAPI_FileInfo | Retrieves information from a :epkg:`json` string. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`reformat ` | AutoSignatureDirective | Formats the number of spaces in front every line to be equal to a specific value. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`setUpClass ` | ExtTestCase | Filters out *FutureWarning*, *PendingDeprecationWarning*. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`stat ` | _Types | | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`strdiff_parser ` | MagicDiff | Defines the way to parse the magic command ``%strdiff``. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`tearDownClass ` | ExtTestCase | Stops filtering out *FutureWarning*, *PendingDeprecationWarning*. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`textdiff_parser ` | MagicDiff | Defines the way to parse the magic command ``%textdiff``. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`update_cache ` | DocumentationHandler | Updates the cache. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`v2s ` | SqlLite3FileStore | | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`write_additional_files ` | CustomSingleFileHTMLBuilder | | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+ | :meth:`write_aggregated_post_list ` | BlogPostList | Writes list of posts in an aggregated manners. | +-------------------------------------------------------------------------------------------------------------------------------------+-----------------------------+--------------------------------------------------------------------------------------------------------------+