Skip to main content

RootKit custom Lib

Project description

rkt_lib_toolkit - Python library

Package Version

quality reliability_rating security_rating vulnerabilities coverage maintainability

This Python library is based only on built-in Python libraries and three (3) non-build-in library :

Python Version 3.9.9
PyYaml 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.

source

What 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.
source

What 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.
source

What 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.
source

Libraries

  • Tool: toolbox library with, you can automatically format the path in your code without worrying about the platform hosting your script
  • Logger: overlay of logging library
  • Config: overlay of PyYaml library (read-only)
  • AI: overlay of pandas library (Renforcement Learning - Qlearning)

Use it

Install

toolkit:

 (venv) my_project> pip install rkt_lib_toolkit [--index-url https://gitlab.tprc.ovh/api/v4/groups/python/-/packages/pypi]

tool:

 (venv) my_project> pip install rkt_tool_lib [--index-url https://gitlab.tprc.ovh/api/v4/groups/python/-/packages/pypi]

logger:

 (venv) my_project> pip install rkt_logger_lib [--index-url https://gitlab.tprc.ovh/api/v4/groups/python/-/packages/pypi]

config:

 (venv) my_project> pip install rkt_config_lib [--index-url https://gitlab.tprc.ovh/api/v4/groups/python/-/packages/pypi]

AI:

 (venv) my_project> pip install rkt_ai_lib [--index-url https://gitlab.tprc.ovh/api/v4/groups/python/-/packages/pypi]

Example

You can use one-by-one each lib as from rkt_[wanted_lib]_lib import [Object]

from rkt_lib_toolkit import Tool, Logger, Config

t = Tool()
l = Logger("My_Project")
c = Config()

# by default search folder named "config" in root project folder
# for load all yaml files
c.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 nice

Contributing

If you find this library useful here's how you can help:

  • Send a merge request with your kickass new features and bug fixes
  • Help new users with issues they may encounter
  • Support the development of this library and star this repo!

Project details


Download files

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

Source Distribution

rkt_lib_toolkit-1.6.2.tar.gz (14.6 kB view hashes)

Uploaded Source

Built Distribution

rkt_lib_toolkit-1.6.2-py3-none-any.whl (16.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