A Core Implementation Library Based on the FastAPI framework
Project description
neo-core
介绍
neo-core 是一个基于 FastAPI 构建的基础底层依赖库,旨在提供高效、可扩展的核心功能模块,支持快速开发现代 Web 应用程序。
功能模块
1. 核心模块
- db.py: 数据库连接与操作的核心逻辑。
- http.py: HTTP 请求与响应的封装。
- logging.py: 日志记录与管理。
- security.py: 安全相关功能,包括认证与授权。
- settings.py: 配置管理模块。
2. 装饰器与依赖
- decorators.py: 提供常用的装饰器函数,简化代码逻辑。
- dependencies.py: 定义全局依赖项,便于在 FastAPI 路由中复用。
3. 缓存模块
- cache/:
- base.py: 缓存的基础类。
- config.py: 缓存配置管理。
- file.py: 文件缓存实现。
- memory.py: 内存缓存实现。
- redis_cache.py: 基于 Redis 的缓存实现。
- stores.py: 缓存存储管理。
4. 存储模块
- storage/:
- aliyun.py: 阿里云存储实现。
- local.py: 本地存储实现。
- manager.py: 存储管理器。
- qiniu.py: 七牛云存储实现。
- tencent.py: 腾讯云存储实现。
使用方法
安装依赖
确保已安装 poetry,然后运行以下命令安装依赖:
poetry install
运行测试
使用以下命令运行测试:
poetry run pytest
快速开始
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 Distribution
neoxin_core-0.0.1b0.tar.gz
(20.7 kB
view details)
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 neoxin_core-0.0.1b0.tar.gz.
File metadata
- Download URL: neoxin_core-0.0.1b0.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcfb040e9f1b56e93b4bac5a13648ea1aa2fc522dd52dcb6bd16078f032b479a
|
|
| MD5 |
85489080f59d4f8fe97a7461b8b06eae
|
|
| BLAKE2b-256 |
012b75f68048e8bf0959e57132f441550cc1a317767cd1226575451fdc3fb578
|
File details
Details for the file neoxin_core-0.0.1b0-py3-none-any.whl.
File metadata
- Download URL: neoxin_core-0.0.1b0-py3-none-any.whl
- Upload date:
- Size: 32.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a34b2c61c8620cc11e8cc038c2bf94c8f6a29b660327daa0ebfcc4181854a865
|
|
| MD5 |
7de4f8452baa266f35e337346e35fafa
|
|
| BLAKE2b-256 |
c2f115ad94121ddb9f0f6a4c1e77ba3ce2e6c2b36532495d4a54600022a16d7e
|