Skip to content

PyPepper is a microservice toolkit written in Python. It can be used in AI, Blockchain, Big Data, etc.

License

Notifications You must be signed in to change notification settings

jovijovi/pypepper

Repository files navigation

logo

PyPepper

PyPI GitHub Actions Coverage

In memory of my father, who passed away in 2023 from COVID-19.

PyPepper is a microservice toolkit.

https://github.com/jovijovi/pypepper

🏁 Features

common

Common packages.

  • context
    • common.context A powerful chained context
  • security
    • common.security.crypto.elliptic.ecdsa Sign/Verify message by ECDSA
    • common.security.crypto.digest Get hash bytes/hex
    • common.security.crypto.salt Generates a random salt of the specified size
  • utils
    • common.utils.random A class for generating random values
    • common.utils.retry Retry running the function by random interval, support lambda
    • common.utils.time Get UTC/local datetime/timezone/timestamp, support sleep
    • common.utils.uuid UUID(v4) generator
  • cache
    • common.cache A thread safe TTL cache-set
  • log
    • common.log A simple logger based on loguru
  • options
    • common.options An easy-to-use options
  • system
    • common.system System signals handler

event

An event package with payload, support sign/verify signature.

fsm

An out-of-box FSM with event trigger, support custom state.

helper

Database helper.

  • helper.db.mongodb MongoDB helper
  • helper.db.mysql MySQL helper

network

  • network.http RESTFul API server based on FastAPI.

scheduler

A Workflow-based job scheduler.

loader

Module loader.

💻 Quick Guide

  • Development Environment

    • python 3.10,3.11,3.12,3.13
    • conda >= 22.9.0
  • Build code

    Install all dependencies and compile code.

    make build
  • Test with coverage

    make test
  • Build docker image

    make docker
  • Clean

    make clean

💡 Roadmap

  • Documents
  • Tracing

About

PyPepper is a microservice toolkit written in Python. It can be used in AI, Blockchain, Big Data, etc.

Topics

Resources

License

Stars

Watchers

Forks