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.1.tar.gz (92.8 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.1-py3-none-any.whl (127.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tterp_cores-0.1.1.tar.gz
  • Upload date:
  • Size: 92.8 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.1.tar.gz
Algorithm Hash digest
SHA256 d1ba4c6f69a3d04773935e844d42f02744d9e1e9495363de21b437cfeccb9141
MD5 f36289b79e36a0ecf9bc17a50b7c81a3
BLAKE2b-256 c3918f966f4b8ae2b60f6051ab5efc5e0d8cc9cefbde3f8cf7843fb68a786e34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tterp_cores-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 127.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b09b69c883ebeb58ac3525313758bc70544e6d8ec7c7eb87110c8ddee4d5e396
MD5 5cb133eb18aa5acf07f54fb1e2e7d09e
BLAKE2b-256 e82713a8fd7c55417e4861b416bb5f9fc4e843e08464e3d01a2862d69fe6b485

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