Skip to main content

fastapi-quanttide-project

量潮项目管理 FastAPI 工具箱。

用法

from fastapi import FastAPI
from quanttide_project import Project, Task
from fastapi_quanttide_project import ModelRouter

app = FastAPI()

# 存储由用户自己管理,你可以用 dict、SQLite、Redis……
projects: dict[str, Project] = {}
tasks: dict[str, Task] = {}

app.include_router(ModelRouter(Project).build(
    create=lambda _id, p: projects.setdefault(_id, p) or p,
    get=projects.get,
    list_all=lambda: list(projects.values()),
    update=lambda _id, p: projects.update({_id: p}) or p,
    delete=lambda _id: projects.pop(_id, None) is not None,
))

app.include_router(ModelRouter(Task).build(
    create=lambda _id, t: tasks.setdefault(_id, t) or t,
    get=tasks.get,
    list_all=lambda: list(tasks.values()),
    update=lambda _id, t: tasks.update({_id: t}) or t,
    delete=lambda _id: tasks.pop(_id, None) is not None,
))

安装

pip install fastapi-quanttide-project

Metadata

Release files for fastapi-quanttide-project 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastapi-quanttide-project 0.2.0
File Size Uploaded Provenance Actions
fastapi_quanttide_project-0.2.0.tar.gz 114.9 kB Without provenance Details for fastapi_quanttide_project-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-quanttide-project 0.2.0
File Interpreter ABI Platform Actions
fastapi_quanttide_project-0.2.0-py3-none-any.whl Python 3 none any Details for fastapi_quanttide_project-0.2.0-py3-none-any.whl

Total release size: 118.7 kB

Release files / fastapi_quanttide_project-0.2.0.tar.gz

Download URL fastapi_quanttide_project-0.2.0.tar.gz
Size 114.9 kB
Tags Source
SHA-256 checksum
How to use checksums
358a0180da0cecaf044ad669464b8b92ad5bdf64a302df9cf468caaa275ae862
BLAKE2b-256 checksum
How to use checksums
503665d5efeda87d72bfc611485c7771ecffc90af366632d1e958e253d9ce1a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / fastapi_quanttide_project-0.2.0-py3-none-any.whl

Download URL fastapi_quanttide_project-0.2.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7f4231e5c73cde579f5ba28e65694324c65bc138e25503ccc56c273d31b964e
BLAKE2b-256 checksum
How to use checksums
a8ca64356b4f78c83e082f78262bb2d9623d7900e3fdfd447cb9889877d3ed0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for fastapi-quanttide-project 0.2.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page