Skip to main content

Shared repository for microservices in ERP system

Project description

Package cores

cores là một shared repository chứa các thành phần dùng chung cho các microservice trong hệ thống ERP. Package này cung cấp các module cốt lõi như cấu hình, các thành phần dùng chung (Redis, RabbitMQ, SQLAlchemy, JWT, v.v.), các models, middleware, logger, và các RPC clients để giao tiếp giữa các service.

Tính năng chính

  • Cấu hình tập trung: Quản lý cấu hình ứng dụng một cách linh hoạt thông qua biến môi trường và file .env.
  • Thành phần dùng chung: Cung cấp các client và handler cho các dịch vụ phổ biến như Redis, RabbitMQ, MongoDB, Firebase, và các công cụ xác thực JWT.
  • ORM và Database: Hỗ trợ SQLAlchemy Async cho MySQL/MariaDB và Motor cho MongoDB.
  • Middleware FastAPI: Bao gồm các middleware cho xác thực, xử lý lỗi, và logging.
  • Hệ thống Logging: Logging tập trung với khả năng tích hợp ELK Stack.
  • RPC Clients: Giúp các microservice giao tiếp với nhau một cách dễ dàng và an toàn.

Tài liệu

Cài đặt

Bạn có thể cài đặt package này bằng pip:

pip install cores

Cấu hình

Package cores sử dụng các biến môi trường để cấu hình. Vui lòng tham khảo file USAGE.md để biết chi tiết về cách cấu hình bằng file .env.

Đóng góp

Chúng tôi hoan nghênh mọi đóng góp! Vui lòng xem CONTRIBUTING.md để biết cách đóng góp vào dự án này.

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

tterp_cores-0.1.8.tar.gz (92.7 kB view details)

Uploaded Source

Built Distribution

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

tterp_cores-0.1.8-py3-none-any.whl (127.4 kB view details)

Uploaded Python 3

File details

Details for the file tterp_cores-0.1.8.tar.gz.

File metadata

  • Download URL: tterp_cores-0.1.8.tar.gz
  • Upload date:
  • Size: 92.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for tterp_cores-0.1.8.tar.gz
Algorithm Hash digest
SHA256 b85622d2084fb3eea6d28efab563538e5a11f4aff10415fc799700c5463a49f5
MD5 e036e5be4b1800d1c52f52f1023e79fa
BLAKE2b-256 9d62e3dd93b2f134772e984b45628c45e03a271fb5a86f40237f4cb891d32a12

See more details on using hashes here.

File details

Details for the file tterp_cores-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: tterp_cores-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 127.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for tterp_cores-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 043cd65e8a55a31abf86c1f67b96a5a651445a02afdfd580fa10338a71d899a5
MD5 a0cec6b00b37f17331e7b7669c1a04ec
BLAKE2b-256 3b828d9bd3eee9ec3c8d328c05eae5f3095657d815dc08ab9e2ec0f9b5ea29df

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