The base module of all MuLingCloud modules and applications.
Project description
Introduction
Welcome to use MuLingCloud. We aim to let everything easier.
MLCBase is an open source Python library for multiple uses. It is the base module of all MuLingCloud modules and applications.
Supported platforms:
- 😄 Windows (Python 3.6+)
- 😄 Linux (Python 3.7+)
- MacOS (untested, maybe. I don't have a MacOS machine😫. Anyone can help me?)
Features
-
Version
We define a
Version
class to manage the version of all MuLingCloud modules or applications. The instantiated versions can easily compare their order by using comparision operators, i.e.==
,!=
,<
,<=
,>
,>=
. -
Config Dictionary
We define a
ConfigDict
for more convenience usage. It is a type of dictionary inherited fromdict
. It has all the features ofdict
while including other more convenient features. -
Logger
We build a
Logger
for more convenience logging management. Actually, this is a slightly improvement based on loguru. Refer to pylog for more information. -
Runtime Analysis
We offer a simple way to evaluate functions in the Python project. All you need is to wrap the target function by a decorator.
-
File Operations
We offer various features to make file operations easier.
-
Encryption and Decryption
We offer various methods to encrypt and decrypt or verify text, files and passwords including RSA, AES and Hash.
-
Database
We offer a simple way to operate the database including creating a data table, inserting data, deleting data, searching data, and updating data. Currently only supports MySQL backend, but other backends will be supported in the future.
-
Remote Connection
We support SSH and SFTP for remote connection.
-
Email
We offer a simple API to send email. Currently only supports SMTP (with SSL) server.
-
HashiCorp Vault
We offer a simple API to get secrets from HashiCorp/Vault. Currently only supports the secret engine of
kv2
, but other type of secret engines will be supported in the future.
Installation
pip install mlcbase
Getting Started
Please refer to tutorial.ipynb for more intuitive instructions.
Changelogs
See all changes in CHANGELOG.
Contributors
We appreciate all the contributors who add new features or fix bugs, as well as the users who offer valuable feedback.
License
This project is released under the Apache 2.0 license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mlcbase-1.1.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1521ce2c171e9617be6874306c14aeaaabbe35d297c1fcd674d3ec2ad8f783c |
|
MD5 | 0c1f322abb83f5df2f5791f33567a4db |
|
BLAKE2b-256 | a29f2661c64e2025bf8d8125e05f865f13e34a1813628cd8131ab005d17b4722 |