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.8.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

rkt_lib_toolkit-1.8.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file rkt_lib_toolkit-1.8.0.tar.gz.

File metadata

  • Download URL: rkt_lib_toolkit-1.8.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for rkt_lib_toolkit-1.8.0.tar.gz
Algorithm Hash digest
SHA256 f2ad134c4fbd047b5e3d0cf147f3284c474209b439cd6dedf7a21557f577fedf
MD5 7e6c6ce37fd1623aab20b05d560f1376
BLAKE2b-256 1993ffcb5ed55e56a2b2f403b1bbd140f22105b26fa497ad5007f5d9e57944d1

See more details on using hashes here.

File details

Details for the file rkt_lib_toolkit-1.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rkt_lib_toolkit-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c410c824cba5abd2a1fb12b168c7ed815bd375af7988549c6b91b2924757628
MD5 0718bda71d0a5c9eeb4b1c9ce574ad4b
BLAKE2b-256 1b7ef3ccec782525bc336d7e38caae1218b7cc84785a15934d46c6fbf748fe92

See more details on using hashes here.

Supported by

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