
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
秘塔AI搜索 Python SDK。在使用这个 SDK 之前,请先通过API文档专题了解 HTTP 接口的更多细节。
pip install metaso-sdk
metaso-sdk 从环境变量 METASO_API_KEY
读取用于认证的 API 密钥,可以在 shell 里进行设置:
export METASO_API_KEY="mk-EE2..."
或者在 Python 代码里进行设置:
import os
os.environ["METASO_API_KEY"] = "mk-EE2..."
from metaso_sdk import search, Query
search(Query(question="abc"))
search(Query(question="广播公司", sessionId="8550018047390023680"))
for chunk in search(Query(question="abc"), stream=True):
print(chunk)
...
{'type': 'heartbeat'}
{'text': '因此,“abc”可以指代字母表的前三个字母、美籍华裔、美国广播公司、一种音乐记谱法以及一种编程语言。具体含义需要根据上下文来确定。', 'type': 'append-text'}
from metaso_sdk import create_topic, upload_directory, Topic
topic = create_topic(Topic(name="functional programing"))
files = upload_directory(topic, "dir")
from metaso_sdk import search, Query
query = Query(question="functional")
search(query, topic=topic)
FAQs
The official Python SDK for https://metaso.cn
We found that metaso-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.