Package: rkt-lib-toolkit
rkt_lib_toolkit - Python libraryThis Python library is based only on built-in Python libraries and three (3) non-build-in library :PyYamlnumpypandasPython Version 3.9.9PyYaml Version 5.4.1 (Released Jan 20, 2021)numpy Version 1.21.5 (Released Jan 7, 2022)pandas Version 1.3.5 (Released Dec 12, 2021)What is Python?Python is an interpreted high-level general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant indentation. Its language constructs as well as its object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.sourceWhat is PyYaml?YAML is a data serialization format designed for human readability and interaction with scripting languages. PyYAML is a YAML parser and emitter for Python.PyYAML features a complete YAML 1.1 parser, Unicode support, pickle support, capable extension API, and sensible error messages. PyYAML supports standard YAML tags and provides Python-specific tags that allow to represent an arbitrary Python object.PyYAML is applicable for a broad range of tasks from complex configuration files to object serialization and persistence.sourceWhat is numpy?NumPy is the fundamental package for scientific computing in Python.It is a Python library that provides a multidimensional array object, various derived objects (such as masked arrays and matrices),and an assortment of routines for fast operations on arrays, including mathematical, logical, shape manipulation,
sorting, selecting, I/O, discrete Fourier transforms, basic linear algebra, basic statistical operations, random simulation and much more.sourceWhat is pandas?pandas is a Python package that provides fast, flexible, and expressive data structures designed to make working with
"relational" or "labeled" data both easy and intuitive.It aims to be the fundamental high-level building block for doing practical, real world data analysis in Python.Additionally, it has the broader goal of becoming the most powerful and flexible open source data analysis / manipulation tool available in any language.It is already well on its way towards this goal.sourceLibrariesTool: toolbox library with, you can automatically format the path in your code without worrying about the platform hosting your scriptLogger: overlay of logging libraryConfig: overlay of PyYaml library (read-only)AI: overlay of pandas library (Renforcement Learning - Qlearning)Use itInstalltoolkit:(venv)my_project>pipinstallrkt_lib_toolkit[--index-urlhttps://gitlab.tprc.ovh/api/v4/groups/python/-/packages/pypi]tool:(venv)my_project>pipinstallrkt_tool_lib[--index-urlhttps://gitlab.tprc.ovh/api/v4/groups/python/-/packages/pypi]logger:(venv)my_project>pipinstallrkt_logger_lib[--index-urlhttps://gitlab.tprc.ovh/api/v4/groups/python/-/packages/pypi]config:(venv)my_project>pipinstallrkt_config_lib[--index-urlhttps://gitlab.tprc.ovh/api/v4/groups/python/-/packages/pypi]AI:(venv)my_project>pipinstallrkt_ai_lib[--index-urlhttps://gitlab.tprc.ovh/api/v4/groups/python/-/packages/pypi]ExampleYou can use one-by-one each lib asfrom rkt_[wanted_lib]_lib import [Object]fromrkt_lib_toolkitimportTool,Logger,Configt=Tool()l=Logger("My_Project")c=Config()# by default search folder named "config" in root project folder# for load all yaml filesc.get_data()l.add(level="debug",caller="My_Project",message=f"This Lib is very nice")Output (as file, sdtout or both)12/07/2021 02:58:24 :: [Logger] :: INFO :: Create logger for 'Config'
12/07/2021 02:58:24 :: [Logger] :: INFO :: add 'StreamHandler' in 'Config' logger
12/07/2021 02:58:24 :: [Logger] :: INFO :: add 'FileHandler' in 'Config' logger
12/07/2021 02:58:24 :: [Config] :: INFO :: Load 'myconf' file ...
12/07/2021 02:58:24 :: [My_Project] :: DEBUG :: This Lib is very niceContributingIf you find this library useful here's how you can help:Send a merge request with your kickass new features and bug fixesHelp new users withissuesthey may encounterSupport the development of this library and star this repo!