Skip to main content

Random useful code categorized into modules.

Project description

generallibrary

Random useful code categorized into modules.

Contents

generallibrary
├─ Installation
├─ Information
├─ Attributes
├─ Contributions
└─ Todo

Installation

Command generalimport packaging pyperclip tabulate pytz dill matplotlib networkx pandas
pip install generallibrary Yes Yes Yes Yes Yes Yes Yes Yes No
pip install generallibrary[table] Yes Yes Yes Yes Yes Yes Yes Yes Yes
pip install generallibrary[full] Yes Yes Yes Yes Yes Yes Yes Yes Yes

Information

Package Ver Latest Release Python Platform Lvl Todo Cover
generallibrary 2.9.8 2022-09-08 21:27 CEST 3.8, 3.9, 3.10 Windows, Ubuntu 1 6 94.0 %

Attributes

Module: generallibrary
├─ Class: AutoInitBases
├─ Class: BoolStr
├─ Class: CallTable
│  ├─ Method: generate
│  ├─ Method: generate_with_args
│  ├─ Method: generate_with_funcs
│  ├─ Method: set_args
│  └─ Method: set_funcs
├─ Class: CodeLine
│  ├─ Method: get_lines
│  └─ Method: text
├─ Class: DataClass
│  ├─ Method: field_dict
│  └─ Method: field_values
├─ Class: Date
│  ├─ Method: get_timezone_obj
│  └─ Method: now
├─ Class: DecoContext
│  ├─ Method: after
│  └─ Method: before
├─ Class: EmptyContext
├─ Class: EnvVar
│  └─ Property: value
├─ Class: HierarchyStorer
├─ Class: Log (Untested)
│  ├─ Method: assert_max_one_missing_name (Untested)
│  ├─ Method: configure_file (Untested)
│  ├─ Method: configure_stream (Untested)
│  ├─ Method: critical (Untested)
│  ├─ Method: debug
│  ├─ Method: error
│  ├─ Method: info
│  ├─ Method: is_root (Untested)
│  ├─ Method: loggers (Untested)
│  ├─ Method: recycle_clear
│  ├─ Method: recycle_clear_all
│  └─ Method: warning (Untested)
├─ Class: Markdown
│  ├─ Method: add_code_lines
│  ├─ Method: add_lines
│  ├─ Method: add_list_lines
│  ├─ Method: add_pre_lines
│  ├─ Method: add_table_lines
│  ├─ Method: get_all_lines
│  ├─ Method: get_section_lines
│  ├─ Method: link
│  └─ Method: wrap_with_tags
├─ Class: NetworkDiagram
│  ├─ Method: get_spouse
│  └─ Method: get_spouses
├─ Class: ObjInfo
│  ├─ Class: ObjInfo
│  ├─ Method: add_node
│  ├─ Method: check_if_parent_eligible
│  ├─ Method: defined_by_parent
│  ├─ Method: disconnect
│  ├─ Method: doc
│  ├─ Method: file
│  ├─ Method: from_base
│  ├─ Method: from_builtin
│  ├─ Method: from_class
│  ├─ Method: from_instance
│  ├─ Method: from_module
│  ├─ Method: get_all
│  ├─ Method: get_child
│  ├─ Method: get_children
│  ├─ Method: get_definition_line
│  ├─ Method: get_index
│  ├─ Method: get_lines
│  ├─ Method: get_node
│  ├─ Method: get_nodes
│  ├─ Method: get_ordered
│  ├─ Method: get_ordered_index
│  ├─ Method: get_origin
│  ├─ Method: get_parent
│  ├─ Method: get_parents
│  ├─ Method: get_sibling
│  ├─ Method: get_siblings
│  ├─ Method: graph (Untested)
│  ├─ Method: identifier
│  ├─ Method: internal
│  ├─ Method: is_class
│  ├─ Method: is_function
│  ├─ Method: is_instance
│  ├─ Method: is_method
│  ├─ Method: is_module
│  ├─ Method: is_property
│  ├─ Method: module
│  ├─ Method: print_link_to_obj
│  ├─ Method: private
│  ├─ Method: protected
│  ├─ Method: public
│  ├─ Method: remove_node
│  ├─ Method: set_index
│  ├─ Method: set_parent
│  ├─ Method: spawn_parents
│  ├─ Method: type
│  └─ Method: view
├─ Class: Operators
│  └─ Method: deco_define_comparisons
├─ Class: PythonVersion
│  └─ Property: version
├─ Class: Recycle
│  ├─ Method: assert_max_one_missing_name (Untested)
│  ├─ Method: recycle_clear
│  └─ Method: recycle_clear_all
├─ Class: RedirectStdout
├─ Class: SigInfo
│  ├─ Method: call
│  ├─ Property: callableObject
│  ├─ Method: class_from_callable
│  ├─ Property: defaults
│  ├─ Method: getIndexFromName
│  ├─ Property: leadingArgNames
│  ├─ Property: names
│  ├─ Property: namesRequired
│  ├─ Property: namesWithoutDefaults
│  ├─ Property: namesWithoutPacked
│  ├─ Property: packedArgs
│  ├─ Property: packedArgsName
│  ├─ Property: packedKwargs
│  ├─ Property: packedKwargsName
│  ├─ Property: parameters
│  ├─ Property: positionalArgNames
│  ├─ Property: positionalOnlyArgNames
│  ├─ Property: positionalOnlyOppositeArgNames
│  ├─ Property: positionalOppositeArgNames
│  ├─ Property: positional_extra
│  ├─ Property: unpackedArgs
│  └─ Property: unpackedKwargs
├─ Class: SortedList
│  ├─ Method: add
│  └─ Method: remove
├─ Class: Storable (Untested)
│  ├─ Method: copy_node
│  ├─ Method: load_node
│  └─ Method: save_node
├─ Class: Timer
│  ├─ Method: deco
│  ├─ Method: print
│  ├─ Method: reset
│  └─ Method: seconds
├─ Class: TreeDiagram
│  └─ Method: view
├─ Class: Ver
│  └─ Method: bump
├─ Class: VerInfo
│  ├─ Property: caseSensitive
│  ├─ Property: pathDelimiter
│  ├─ Property: pathRootHasColon
│  ├─ Property: pathRootIsDelimiter
│  ├─ Property: positionalArgument
│  ├─ Property: pythonAlpha
│  ├─ Property: pythonBeta
│  ├─ Property: pythonCandidate
│  ├─ Property: pythonFinal
│  ├─ Property: pythonMajor
│  ├─ Property: pythonMicro
│  ├─ Property: pythonMinor
│  ├─ Property: pythonReleaseKeyword
│  ├─ Property: pythonReleaseLevel
│  ├─ Property: pythonSerial
│  ├─ Property: pythonSerialString
│  ├─ Property: pythonString
│  └─ Property: pythonVersion
├─ Function: auto_deco (Untested)
├─ Function: cache_clear
├─ Function: calculate
├─ Function: call_base_hooks
├─ Function: ceil
├─ Function: clamp
├─ Class: classproperty
├─ Function: clipboard_copy
├─ Function: clipboard_get
├─ Function: combine
├─ Function: comma_and_and
├─ Function: comma_and_or (Untested)
├─ Function: confineTo
├─ Function: debug
├─ Function: deco_bound_defaults
├─ Function: deco_cache
├─ Function: deco_cast_parameters
├─ Function: deco_extend
├─ Function: deco_optional_suppress
├─ Function: deco_propagate_while
├─ Function: deco_require
├─ Function: defaults
├─ Function: depth
├─ Function: dict_insert
├─ Function: dir_appearance_order
├─ Function: doubleRectify
├─ Function: dumps
├─ Function: exclusive
├─ Function: extend_list_in_dict
├─ Function: flatten
├─ Function: floor
├─ Function: get
├─ Function: getBaseClassNames
├─ Function: getBaseClasses
├─ Function: get_attrs_from_bases
├─ Function: get_definition_line
├─ Function: get_free_index
├─ Function: get_index
├─ Function: get_items
├─ Function: get_launch_options
├─ Function: get_origin
├─ Function: get_rows
├─ Function: get_values
├─ Function: getsize
├─ Function: hasMethod
├─ Function: hook
├─ Function: inclusive
├─ Function: initBases
├─ Function: inrange
├─ Function: interconnect
├─ Function: is_iterable
├─ Function: iter_first_value
├─ Function: join_with_str
├─ Function: loads
├─ Function: match
├─ Function: pivot_list
├─ Function: plur_sing
├─ Function: print_link
├─ Function: print_link_to_obj
├─ Function: rectify
├─ Function: remove
├─ Function: remove_duplicates
├─ Function: replace
├─ Function: round_
├─ Function: sign
├─ Function: sleep
├─ Function: split_list
├─ Function: strToDynamicType
├─ Function: subtract_list
├─ Function: terminal
├─ Function: typeChecker
├─ Function: unique_obj_in_list
├─ Function: update_dict_in_dict
└─ Function: wrapper_transfer

Contributions

Issue-creation and discussion is most welcome!

Pull requests are not wanted, please discuss with me before investing any time.

Todo

Module Message
versions.py Use Ver in each part of VerInfo.
diagram.py Shared dict for NetworkDiagram, resolve logic with multiple parents.
test_time.py Fix time casting to wrong day when past midnight.
objinfo.py Recycle ObjInfo.
code.py Make Log use name from previous frame so it doesn't write to root.
code.py Use another delimiter than , in Log and make sure it can handle quotes.
Generated 2022-09-08 21:28 CEST for commit c5749cb.

Project details


Release history Release notifications | RSS feed

This version

2.9.8

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.9.8.tar.gz (67.3 kB view hashes)

Uploaded Source

Built Distribution

generallibrary-2.9.8-py3-none-any.whl (71.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