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
- Hướng dẫn sử dụng (USAGE.md): Hướng dẫn chi tiết cách cài đặt, sử dụng và cấu hình package
corestrong dự án của bạn. - Hướng dẫn đóng góp (CONTRIBUTING.md): Dành cho các nhà phát triển muốn đóng góp vào package này, bao gồm quy trình phát triển, tiêu chuẩn code và cách chạy test.
- Kế hoạch đóng gói PyPI (PYPI_PACKAGING_PLAN.md): Mô tả quy trình và các bước để đóng gói và xuất bản package lên PyPI.
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.
Metadata
Release files for tterp-cores 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tterp_cores-0.4.0.tar.gz | 116.7 kB | Without provenance | Details for tterp_cores-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tterp_cores-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for tterp_cores-0.4.0-py3-none-any.whl |
Total release size: 272.4 kB
Release files / tterp_cores-0.4.0.tar.gz
| Download URL | tterp_cores-0.4.0.tar.gz |
|---|---|
| Size | 116.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6e5abe5f6a44c6c24be4e5b1b1ceeee706aebfa1b637b0ddf71206c2f3f5309
|
|
BLAKE2b-256 checksum How to use checksums |
f75497692f478107e89ab64620c4f29cfa8077c94e694f2298f0380090d58cb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / tterp_cores-0.4.0-py3-none-any.whl
| Download URL | tterp_cores-0.4.0-py3-none-any.whl |
|---|---|
| Size | 155.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ba3df9b150023fbb82713cda3faf004d828933092e166a96a94c430f43e8c87
|
|
BLAKE2b-256 checksum How to use checksums |
12f11f4a3853d4dc8a8fa9762e599dd8885deb564907265b063b6dd8ffca499a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Security for tterp-cores 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.