Skip to main content

funchallenge

funchallenge 是一个针对 dark_challenge_2048 数据表的轻量数据库查询封装: 基于 SQLAlchemy 创建数据库连接(连接串通过 funsecret 读取),并提供 execute_sql 方法执行任意 SQL 查询。

安装

pip install funchallenge

最小示例

from funchallenge.db.base import DatabaseError, DbBase

db = DbBase()
try:
    rows = db.execute_sql("select * from dark_challenge_2048")
except DatabaseError as e:
    print(f"查询失败: {e}")
else:
    print(f"共 {len(rows)} 条数据")

也可以直接调用封装好的查询入口:

from funchallenge.server.core import fetch_dark_challenge_2048

rows = fetch_dark_challenge_2048()

使用前需通过 funsecret 配置数据库连接串 (farfarfun / darkchallenge / db / uri)。


关于 farfarfun

farfarfun 是一个专注于实用工具库的开源组织, 涵盖云存储、数据处理、AI、多媒体与开发工具链等方向。

本项目基于 MIT 协议开源。

Metadata

Release files for funchallenge 0.0.3

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

Built distribution (wheel)

Table of built distributions (wheels) for funchallenge 0.0.3
File Interpreter ABI Platform
funchallenge-0.0.3-py3-none-any.whl Python 3 none any Details

Release files / funchallenge-0.0.3-py3-none-any.whl

Download URL funchallenge-0.0.3-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acc6d00186d2082140235bc7f4fd730c484b1987649c51c6162b15b69895e9ea
BLAKE2b-256 checksum
How to use checksums
a3a0c4e963e75134251512636a844e25e5438b22644a401e2569d59a761f04e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for funchallenge 0.0.3

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.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

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