Skip to main content

Random useful code categorized into modules.

Project description

generallibrary 2.5.12

Random useful code categorized into modules.

workflow Actions Status GitHub last commit PyPI version shields.io PyPI pyversions Generic badge

Contents

generallibrary 2.5.12
├─ Contents
├─ Installation
├─ Attributes
└─ Todo

Installation

Command packaging pyperclip pandas tabulate pytz
pip install generallibrary Yes Yes Yes Yes Yes

Attributes

Module: generallibrary
├─ Class: CallTable
│  ├─ Method: generate
│  ├─ Method: generate_with_args
│  ├─ Method: generate_with_funcs
│  ├─ Method: set_args
│  └─ Method: set_funcs
├─ Class: CodeLine
│  ├─ Method: add
│  ├─ Method: copy_to
│  ├─ Method: data_keys_add
│  ├─ Method: get_all
│  ├─ Method: get_all_parents
│  ├─ Method: get_child
│  ├─ Method: get_child_by_key_values
│  ├─ Method: get_children
│  ├─ Method: get_children_by_key_values
│  ├─ Method: get_index
│  ├─ Method: get_lines
│  ├─ Method: get_next_sibling
│  ├─ Method: get_parent
│  ├─ Method: get_previous_sibling
│  ├─ Method: get_siblings
│  ├─ Method: hook_add_child
│  ├─ Method: hook_create_post
│  ├─ Method: hook_create_pre
│  ├─ Method: hook_lose_child
│  ├─ Method: hook_lose_parent
│  ├─ Method: hook_new_parent
│  ├─ Method: hook_remove
│  ├─ Method: hook_set_attribute
│  ├─ Method: load
│  ├─ Method: remove
│  ├─ Method: repr_list
│  ├─ Method: save
│  ├─ Method: set_index
│  ├─ Method: set_parent
│  ├─ Method: text
│  └─ Method: view
├─ Class: EmptyContext
├─ Class: EnvVar
├─ Class: HierarchyStorer
├─ Class: Markdown
│  ├─ Method: add
│  ├─ Method: add_code_lines
│  ├─ Method: add_lines
│  ├─ Method: add_list_lines
│  ├─ Method: add_pre_lines
│  ├─ Method: add_table_lines
│  ├─ Method: all_lines
│  ├─ Method: copy_to
│  ├─ Method: data_keys_add
│  ├─ Method: get_all
│  ├─ Method: get_all_parents
│  ├─ Method: get_child
│  ├─ Method: get_child_by_key_values
│  ├─ Method: get_children
│  ├─ Method: get_children_by_key_values
│  ├─ Method: get_index
│  ├─ Method: get_next_sibling
│  ├─ Method: get_parent
│  ├─ Method: get_previous_sibling
│  ├─ Method: get_siblings
│  ├─ Method: hook_add_child
│  ├─ Method: hook_create_post
│  ├─ Method: hook_create_pre
│  ├─ Method: hook_lose_child
│  ├─ Method: hook_lose_parent
│  ├─ Method: hook_new_parent
│  ├─ Method: hook_remove
│  ├─ Method: hook_set_attribute
│  ├─ Method: link
│  ├─ Method: load
│  ├─ Method: remove
│  ├─ Method: repr_list
│  ├─ Method: save
│  ├─ Method: section_lines
│  ├─ Method: set_index
│  ├─ Method: set_parent
│  ├─ Method: view
│  └─ Method: wrap_with_tags
├─ Class: NetworkDiagram
│  ├─ Method: get_link
│  ├─ Method: get_links
│  ├─ Method: get_nodes
│  ├─ Method: get_nodes_all
│  ├─ Method: get_ordered
│  ├─ Method: get_ordered_flat
│  ├─ Method: get_routes
│  ├─ Method: link
│  └─ Method: view
├─ Class: ObjInfo
│  ├─ Class: ObjInfo
│  ├─ Method: add
│  ├─ Method: check_if_parent_eligible
│  ├─ Method: copy_to
│  ├─ Method: data_keys_add
│  ├─ Method: doc
│  ├─ Method: filters_check
│  ├─ Method: from_base
│  ├─ Method: from_builtin
│  ├─ Method: from_class
│  ├─ Method: from_instance
│  ├─ Method: get_all
│  ├─ Method: get_all_parents
│  ├─ Method: get_attrs
│  ├─ Method: get_child
│  ├─ Method: get_child_by_key_values
│  ├─ Method: get_children
│  ├─ Method: get_children_by_key_values
│  ├─ Method: get_definition_line
│  ├─ Method: get_index
│  ├─ Method: get_lines
│  ├─ Method: get_next_sibling
│  ├─ Method: get_parent
│  ├─ Method: get_previous_sibling
│  ├─ Method: get_siblings
│  ├─ Method: hook_add_child
│  ├─ Method: hook_create_post
│  ├─ Method: hook_create_pre
│  ├─ Method: hook_lose_child
│  ├─ Method: hook_lose_parent
│  ├─ Method: hook_new_parent
│  ├─ Method: hook_remove
│  ├─ Method: hook_set_attribute
│  ├─ Method: identifier
│  ├─ Method: internal
│  ├─ Method: is_class
│  ├─ Method: is_function
│  ├─ Method: is_instance
│  ├─ Method: is_method
│  ├─ Method: is_module
│  ├─ Method: is_property
│  ├─ Method: load
│  ├─ Method: module
│  ├─ Method: nice_repr
│  ├─ Method: print_link_to_obj
│  ├─ Method: private
│  ├─ Method: protected
│  ├─ Method: public
│  ├─ Method: remove
│  ├─ Method: repr_list
│  ├─ Method: save
│  ├─ Method: set_index
│  ├─ Method: set_parent
│  ├─ Method: type
│  └─ Method: view
├─ Class: Operators
│  └─ Method: deco_define_comparisons
├─ Class: PythonVersion
├─ Class: SigInfo
│  ├─ Method: call
│  ├─ Method: class_from_callable
│  └─ Method: getIndexFromName
├─ Class: SortedList
│  ├─ Method: add
│  └─ Method: remove
├─ Class: Timer
│  ├─ Method: print
│  ├─ Method: reset
│  └─ Method: seconds
├─ Class: TreeDiagram
│  ├─ Method: add
│  ├─ Method: copy_to
│  ├─ Method: data_keys_add
│  ├─ Method: get_all
│  ├─ Method: get_all_parents
│  ├─ Method: get_child
│  ├─ Method: get_child_by_key_values
│  ├─ Method: get_children
│  ├─ Method: get_children_by_key_values
│  ├─ Method: get_index
│  ├─ Method: get_next_sibling
│  ├─ Method: get_parent
│  ├─ Method: get_previous_sibling
│  ├─ Method: get_siblings
│  ├─ Method: hook_add_child
│  ├─ Method: hook_create_post
│  ├─ Method: hook_create_pre
│  ├─ Method: hook_lose_child
│  ├─ Method: hook_lose_parent
│  ├─ Method: hook_new_parent
│  ├─ Method: hook_remove
│  ├─ Method: hook_set_attribute
│  ├─ Method: load
│  ├─ Method: remove
│  ├─ Method: repr_list
│  ├─ Method: save
│  ├─ Method: set_index
│  ├─ Method: set_parent
│  └─ Method: view
├─ Class: Ver
│  └─ Method: bump
├─ Class: VerInfo
└─ Class: classproperty

Todo

Module Message
functions.py Add caching for SigInfo's signature methods
functions.py Test deco_extend with int and str.
versions.py Replace this temporary Ver class with revamped VerInfo split into isolated parts.
diagram.py Tests for NetworkDiagram.
diagram.py Storable NetworkDiagram.
diagram.py Moveable NetworkDiagram.
diagram.py Transform Network to and from Tree if possible.
diagram.py Remove or hide Network route methods.
diagram.py Idea: Make TreeDiagram loadable with a generic list of lists for example.
diagram.py Removable keys.
diagram.py Create Markdown tree from markdown text.
diagram.py Tests for Markdown.
diagram.py Split line in lines with \n.
types_.py TnD
code.py Search for old CodeGen and replace.
code.py Maybe put (parts of?) this directly in TreeDiagram.
code.py Refactor link methods to ObjInfo.
subsets_methods.py Subset methods for ObjInfo.is_method().
children.py Define TreeDiagram.__iter__ as well, but without generation.
objinfo.py Module tree for ObjInfo.
objinfo.py Another type of diagram for ObjInfo as an object can be an attribute of multiple objects.
objinfo.py Tests for ObjInfo.
objinfo.py Disable save, load and copy.
Generated 2021-02-04 12:34 CET for commit 0ee36ae.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

generallibrary-2.5.12.tar.gz (43.2 kB view hashes)

Uploaded Source

Built Distribution

generallibrary-2.5.12-py3-none-any.whl (48.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page