Introduction¶
Aloha! Thanks for your interesting in this python package.
Please generously STAR★ our project or donate to us!
What is it?¶
The python package aloha
is a cute and versatile to build python microservices.
The package encapsulates commonly used components and features, such as:
- Rapidly create RESTful APIs and start services
- Logging utils
- Manage different environments,configuration files, and resource files
- Connect to popular databases
- Detect and monitor application runtime environment
aloha
是一个用来快速构建微服务的Python包,它包含了创建微服务常用的组件和功能:
- 快速创建微服务的RESTful API并启动服务
- 环境管理、配置文件管理、资源文件管理;
- 日志组件
- 连接数据库
- 对运行环境进行监测;
Installation¶
Notice the [all]
after the package is a set of (one or more) extra requirements, which enables additional features.
These extra requirements can include:
all
: everything below are included.service
: components/packages used to build RESTful APIs -- aloha use tornado to support services.build
: used to build python code into binary files, which is particularly useful to protect source code.db
: connect to popular databases, like MySQL / PostgreSQL / Redis.stream
: processing steram data using confluent_kafka.data
: processing data or doing data science tasks using packages like pandas.report
: utilites to export data and report to Excel files.test
: unit test utilites.docs
: utilites used to build documentations.
请留意,上述安装命令中包名后的[all]
是额外的安装依赖,这些额外的安装内容在使用某些模块的时候会用到。
all
: 包含了下面的所有的依赖包service
: 用于创建RESTful APIs的依赖,aloha基于torndao来构建服务;build
: 用于将Python代码编译为二进制包或类库,这对于需要进行源代码保护的场景十分有用;db
: 连接到常用的数据库,如MySQL、PostgreSQL、Redis等;stream
: 基于confluent_kafka进行流数据处理;data
: 使用pandas等package进行数据处理;report
: 将数据导出为Excel格式的报告;test
: 进行单元测试的功能;docs
: 用于进行文档构建的功能模块。