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.3.6.tar.gz (109.5 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.3.6-py3-none-any.whl (148.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tterp_cores-0.3.6.tar.gz
  • Upload date:
  • Size: 109.5 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.3.6.tar.gz
Algorithm Hash digest
SHA256 92e98114b848005b4b292a9c2c4b6d3c11ad27d3bc88d3fec542a1206656227b
MD5 578fcf95d716056babbacbe2910e5ef9
BLAKE2b-256 2f02180f667376f4f1a6b722d20447c2e5b83a38e93946715430fe17536f914b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tterp_cores-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 148.6 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.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2fc0249c46a87430d997a7cf870934fc0acb35a7eda693351b6e2dc0f59fc592
MD5 0fb65724dde1ddeb79c6c66cca374372
BLAKE2b-256 6a43b487c28de0f9b8866046396d96d8a0a26d1b23b83699a1b22fb9de3a755b

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