Skip to main content

The base module of all MuLingCloud modules and applications.

Project description

PyPI License All Contributors

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:

All tests are conducted by Github workflows. Checking workflows for more information.

  • Linux: Test mlcbase on Linux
  • Windows: Test mlcbase on Windows
  • MacOS: Test mlcbase on MacOS
Features (v1.2.8)
  • Register

    We define a Registry to register modules, which allow you to use the module by a config file.

  • Config Dictionary

    We define a ConfigDict for more convenience usage. It is a type of dictionary inherited from dict. It has all the features of dict 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.

  • Emoji Progress Bar

    We offer a simple progress bar with emoji status, which has the same usage with tqdm.

  • File Operations

    We offer various features to make file operations easier. Besides, we offer a simple way to load and save JSON, YAML, XML and TOML files.

  • Image IO

    We offer a simple way to load and save images.

  • One-Time Password

    We support two methods for OTP: Time-based One-Time Password (TOTP) and HMAC-based One-Time Password (HOTP).

  • 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. Supported database backend: MySQL, SQLite.

  • Remote Connection

    We support SSH and SFTP for remote connection.

  • Email

    We offer a simple API (SMTP) to send email.

  • HashiCorp Vault

    We offer several APIs to operate HashiCorp/Vault through HTTP requests. Supported authorization methods: token, username & password. Supported secret engines: KV v1, KV v2, Cubbyhole, TOTP, Transit.

Installation

pip install mlcbase -i https://pypi.org/simple

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.

We welcome all contributors, feel free to create an issue or file a pull request and join us! ❤️

Weiming Chen
Weiming Chen

💻 🤔 📆 ⚠️
Yuanshuang Sun
Yuanshuang Sun

🤔 ⚠️
Mohammad Hossein Mojtahedi
Mohammad Hossein Mojtahedi

⚠️
Add your contributions

License

This project is released under the Apache 2.0 license.

Repository

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

mlcbase-1.2.8.tar.gz (74.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlcbase-1.2.8-py3-none-any.whl (83.8 kB view details)

Uploaded Python 3

File details

Details for the file mlcbase-1.2.8.tar.gz.

File metadata

  • Download URL: mlcbase-1.2.8.tar.gz
  • Upload date:
  • Size: 74.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for mlcbase-1.2.8.tar.gz
Algorithm Hash digest
SHA256 6f0618dac0a5fc301534e41e97e7d85b6a7c3932d44f75d8f8509082974c5760
MD5 18fc8092659e4c00bc4f177ddf35728e
BLAKE2b-256 63d002804ca859bb4bfb8e340af925a1eddd521d2d80d5936aa1c9f22c401135

See more details on using hashes here.

File details

Details for the file mlcbase-1.2.8-py3-none-any.whl.

File metadata

  • Download URL: mlcbase-1.2.8-py3-none-any.whl
  • Upload date:
  • Size: 83.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for mlcbase-1.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 57a5d124cd8cfd7b63ede49d4708640275415196894441e106f40f1b2afca79c
MD5 38a803a51e907db515b220188d77d4c2
BLAKE2b-256 ccd82d37226a0661815e64ca442cf2fa4e8b51b7d065b75b5ae06b5e6d2c062d

See more details on using hashes here.

Supported by

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