Skip to main content

generallibrary

Random useful code categorized into modules.

Table of Contents

generallibrary
├─ Dependency Diagram for ManderaGeneral
├─ Installation showing dependencies
├─ Information
├─ Attributes
├─ Contributions
└─ Todo

Dependency Diagram for ManderaGeneral

flowchart LR
0([import]) --> 3([file])
0([import]) --> 2([library])
1([tool]) --> 2([library])
3([file]) --> 4([packager])
2([library]) --> 4([packager])
2([library]) --> 3([file])
click 0 "https://github.com/ManderaGeneral/generalimport"
click 1 "https://github.com/ManderaGeneral/generaltool"
click 2 "https://github.com/ManderaGeneral/generallibrary"
click 3 "https://github.com/ManderaGeneral/generalfile"
click 4 "https://github.com/ManderaGeneral/generalpackager"
style 2 stroke:#482

Installation showing dependencies

pip install generallibrary generallibrary[table] generallibrary[graph] generallibrary[full]
generalimport ✔️ ✔️ ✔️ ✔️
generaltool ✔️ ✔️ ✔️ ✔️
packaging ✔️ ✔️ ✔️ ✔️
pyperclip ✔️ ✔️ ✔️ ✔️
pytz ✔️ ✔️ ✔️ ✔️
dill ✔️ ✔️ ✔️ ✔️
matplotlib ❌ ❌ ✔️ ✔️
networkx ❌ ❌ ✔️ ✔️
pandas ❌ ✔️ ❌ ✔️
tabulate ❌ ✔️ ❌ ✔️

Information

Package Ver Latest Release Python Platform Cover
generallibrary 2.10.0 2024-01-24 07:20 CET 3.8, 3.9, 3.10, 3.11, 3.12 Windows, Ubuntu 92.4 %

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: Crud
│  ├─ Method: set
│  ├─ Method: set_value
│  ├─ Method: unset
│  └─ Method: unset_value
├─ Class: DataClass
│  ├─ Method: field_dict
│  └─ Method: field_values
├─ Class: Date
│  ├─ Method: get_timezone_obj
│  └─ Method: now
├─ Class: DecoContext
│  ├─ Method: after
│  ├─ Method: before
│  └─ Method: run_func_again
├─ Class: EmptyContext
├─ Class: EnvVar
│  ├─ Property: actions_name
│  ├─ Method: env_var_is_missing
│  ├─ Method: error_object
│  ├─ Method: raise_error_if_missing
│  ├─ Method: remove
│  └─ Property: value
├─ Class: HierarchyStorer
├─ Class: Log
│  ├─ Method: assert_max_one_missing_name
│  ├─ Method: configure_file
│  ├─ Method: configure_stream
│  ├─ Method: critical
│  ├─ Method: debug
│  ├─ Method: error
│  ├─ Method: info
│  ├─ Method: is_root
│  ├─ Method: loggers
│  ├─ Method: recycle_clear
│  ├─ Method: recycle_clear_all
│  └─ Method: warning
├─ Class: Markdown
│  ├─ Method: add_code_lines
│  ├─ Method: add_lines
│  ├─ Method: add_list_lines
│  ├─ Method: add_pre_lines
│  ├─ Method: add_table_lines
│  ├─ Method: format_header
│  ├─ Method: get_all_lines
│  ├─ Method: get_section_lines
│  ├─ Method: get_tags_post
│  ├─ Method: link
│  ├─ Method: render
│  ├─ Method: update_collapsible
│  └─ 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_connections
│  ├─ 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
│  ├─ Method: identifier
│  ├─ Method: internal
│  ├─ Method: is_class
│  ├─ Method: is_function
│  ├─ Method: is_instance
│  ├─ Method: is_method
│  ├─ Method: is_module
│  ├─ Method: is_property
│  ├─ Method: mermaid
│  ├─ 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: Recycle
│  ├─ Method: assert_max_one_missing_name
│  ├─ 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
│  ├─ Method: copy_node
│  ├─ Method: load_node
│  └─ Method: save_node
├─ Class: Terminal
│  ├─ Method: call
│  └─ Method: get_args
├─ Class: Timer
│  ├─ Method: output_time
│  └─ Method: time
├─ Class: TreeDiagram
│  └─ Method: view
├─ Class: Ver
│  ├─ Method: bump
│  ├─ Method: endswith
│  ├─ Method: parse_ver_string
│  ├─ Method: startswith
│  └─ Method: three_parts
├─ Class: VerInfo
│  ├─ Property: caseSensitive
│  ├─ Property: env_var_path_delimiter
│  ├─ 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
│  └─ Property: venv_script_path
├─ Function: auto_deco
├─ 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
├─ Function: confineTo
├─ Function: debug
├─ Function: deco_bound_defaults
├─ Function: deco_cache
├─ Function: deco_cast_parameters
├─ Function: deco_cast_to_self
├─ 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: typeChecker
├─ Function: unique_obj_in_list
├─ Function: update_dict_in_dict
└─ Function: wrapper_transfer

Contributions

Issue-creation, discussions and pull requests are most welcome!

Todo

Module Message
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.
diagram.py Shared dict for NetworkDiagram, resolve logic with multiple parents.
objinfo.py Recycle ObjInfo.
test_time.py Fix time casting to wrong day when past midnight.
versions.py Use Ver in each part of VerInfo.
Generated 2024-01-24 07:20 CET for commit master.

Metadata

Release files for generallibrary 2.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for generallibrary 2.10.0
File Size Uploaded
generallibrary-2.10.0.tar.gz 75.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for generallibrary 2.10.0
File Interpreter ABI Platform
generallibrary-2.10.0-py3-none-any.whl Python 3 none any Details

Total release size: 153.2 kB

Release files / generallibrary-2.10.0.tar.gz

Download URL generallibrary-2.10.0.tar.gz
Size 75.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7a4e25bf485ee5df2d3d92e77910758c6eaa7e74aad68a06eae2ad2d0f4cfa20
BLAKE2b-256 checksum
How to use checksums
31f54a0df2176b2edb14490a4aea212e7a2f794f5d359a9cda0a07c7a20ee5b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.1

Release files / generallibrary-2.10.0-py3-none-any.whl

Download URL generallibrary-2.10.0-py3-none-any.whl
Size 78.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccb555fa8aa0130021acdcf8a529b0cdd60a618b62e211af8e903acc486e1bca
BLAKE2b-256 checksum
How to use checksums
37a3df119f474acdd88650fb7433718a531db8e4f2d43b66933822b75a6c195e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.1

Release history Release notifications | RSS feed

This release

2.10.0 This release

2 release files

2.9.12

2 release files

2.9.11

2 release files

2.9.9

2 release files

2.9.8

2 release files

2.9.7

2 release files

2.9.6

2 release files

2.9.5

2 release files

2.9.4

2 release files

2.9.3

2 release files

2.9.2

2 release files

2.9.1

2 release files

2.9

2 release files

2.8.12

2 release files

2.8.11

2 release files

2.8.10

2 release files

2.8.9

2 release files

2.8.8

2 release files

2.8.7

2 release files

2.8.6

2 release files

2.8.5

2 release files

2.8.4

2 release files

2.8.3

2 release files

2.8.2

1 release file

2.8.1

2 release files

2.8

2 release files

2.7

2 release files

2.6.3

2 release files

2.6.2

2 release files

2.6.1

2 release files

2.6

2 release files

2.5.9

2 release files

2.5.8

2 release files

2.5.7

2 release files

2.5.6

2 release files

2.5.5

2 release files

2.5.4

2 release files

2.5.3

2 release files

2.5.2

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.9

2 release files

2.4.8

2 release files

2.4.7

2 release files

2.4.6

2 release files

2.4.5

2 release files

2.4.4

2 release files

2.4.3

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.7

2 release files

2.2.6

2 release files

2.2.5

2 release files

2.2.4

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.12

2 release files

2.1.11

2 release files

2.1.10

2 release files

2.1.9

2 release files

2.1.8

2 release files

2.1.7

2 release files

2.1.6

2 release files

2.1.5

2 release files

2.1.4

2 release files

2.1.3

2 release files

2.1.0

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.9.0

2 release files

1.8.6

2 release files

1.8.5

2 release files

1.8.4

2 release files

1.8.3

2 release files

1.8.2

1 release file

1.8.1

2 release files

1.8.0

1 release file

1.5.4

1 release file

1.5.3

1 release file

1.5.2

1 release file

1.5.1

1 release file

1.5.0

1 release file

1.4.9

1 release file

1.4.8

1 release file

1.4.7

1 release file

1.4.6

1 release file

1.4.5

1 release file

1.4.4

1 release file

1.4.2

1 release file

1.4.1

1 release file

1.3.9

1 release file

1.3.8

1 release file

1.3.6

1 release file

1.3.5

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.9

1 release file

1.2.8

1 release file

1.2.7

1 release file

1.2.6

1 release file

1.2.5

1 release file

1.2.4

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page