neoaria commons module for neoaria-backend-generator
Project description
neoaria-commons
This software is one of the systems that form the basis of software produced by NeoAria Co., Ltd.
It mainly aims to provide the foundation for the back-end system, and among the foundations, it focuses on implementing and operating the source system (data, events, search, web socket).
Quick start
It can be installed through pip application.
-
If installing from scratch :: pip install neoaria-commons
-
In case of update :: pip install --upgrade neoaria-commons
How to use
First, after installation, access must be possible through internal Python.
DataSource
The data source class is a class that focuses on integrating and using various data sources. This class is closely related to the configuration and use of MongoDB, MariaDB, Kafka, Solr, and WebSocket, and the initial configuration values must be defined by the system using this class.
Data sources have a total of three types. Fundamentally, it is divided into DataSource, which manages the state of data, EventSource, which processes data events, and SearchSource, which adjusts data to be searched efficiently.\
DataSource
- MongoDBDataSource
This is a source that is primarily intended to store and update the state of a specific object, and is the main database for the system currently being built in NeoAria.
- MariaDBDataSource
Although this source is not currently in active use, it is also a source used for the main purpose of creating and updating the state of data.
EventSource
- KafkaDataSource
This source is for event processing between external systems and will be the only system that can be used at present.
- RabbitMQDataSource
Support will be provided later.
SearchSource
- SolrDataSource
It is a data source that searches data by registering a schema, a series of data models, with the main role of searching through data indexing. It plays an important role in separating and reflecting the existing editing model and service model.
Business
Based on the actual business model, it is composed of BusinessParameter, BusinessResponse, and BusinessCommon and forms a common business.
BusinessParamter
It is a class that transmits parameters for executing a business, and its main purpose is to transmit an object with a Key-Value structure by inheriting BaseModel.
BusinessResponse
Business is a program that ultimately produces results. The main purpose of BusinessResponse is to contain and deliver the results. Like BusinessPrarameter, this also aims to convey values centered on Key-Value.
BusinessCommon
As a common class for all businesses, all businesses must inherit and implement this class. Contains a list of most implementations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neoaria_commons-0.0.4-py3-none-any.whl.
File metadata
- Download URL: neoaria_commons-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47e32e81f94e2e9cb0fa761a4d5da3162262782f1e4e8f67d71eda2fc302d060
|
|
| MD5 |
27c170a3d6ce91d2b9398af0e13d9336
|
|
| BLAKE2b-256 |
1aefc3527ff10c876038cbd74d3fcaa6e0d21edb23387367587ee1d28f187b40
|