Skip to main content

Generate references.

Project description

wenxian

PyPI - Version Pepy Total Downlods

wenxian is a tool to generate ${\mathrm{B{\scriptstyle{IB}} T_{\displaystyle E} X}}$ files from given identifiers (DOI, PMID, arXiv ID, or paper title).

子曰:“夏礼,吾能言之,杞不足征也。殷礼,吾能言之,宋不足征也。文献不足故也。足,则吾能征之矣。”——《论语》

Usage

Use wenxian in the browser (Deprecated)

[!CAUTION] Deprecated, as several websites that serve the API have disabled CORS.

Visit wenxian.njzjz.win to use wenxian in the browser.

Command line interface

wenxian requires Python 3.10. It's suggested to install uv first:

pip install uv

Then use uvx to run wenxian:

uvx wenxian from 10.1063/5.0155600

You can also search by paper title:

uvx wenxian from "Attention is all you need"

It is expected to see a ${\mathrm{B{\scriptstyle{IB}} T_{\displaystyle E} X}}$ entry printed into the standard output.

By default, wenxian outputs ${\mathrm{B{\scriptstyle{IB}} T_{\displaystyle E} X}}$ format. You can use the -t text or --type text option to generate plain text format.

The Agent Skill (used in OpenClaw or IDEs)

wenxian provides an Agent Skill in the skill directory, which has been supported by OpenClaw, Claude, Codex, and VS Code.

For example, you can ask your OpenClaw bot to install the skill https://github.com/njzjz/wenxian/tree/master/skill. After that is done, you can ask the bot to generate the references by sending the bot paper titles or DOIs.

Use wenxian in a GitHub Actions workflow

You can use wenxian in a GitHub Actions workflow, as a bridge between the input identifiers and the output ${\mathrm{B{\scriptstyle{IB}} T_{\displaystyle E} X}}$ entries:

- name: Run wenxian
  id: wenxian
  uses: njzjz/wenxian@master
  with:
    id: 1512.03385
- name: Furthur uses (an example)
  run: echo "${{ steps.wenxian.outputs.bibtex }}"

Use wenxian in a GitHub issue of this repository

You can use wenxian in a GitHub issue of this repository. Comment @njzjz-bot 2312.15492 in #23, and the GitHub Actions will reply with the output ${\mathrm{B{\scriptstyle{IB}} T_{\displaystyle E} X}}$ entries.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wenxian-0.3.2.tar.gz (43.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wenxian-0.3.2-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file wenxian-0.3.2.tar.gz.

File metadata

  • Download URL: wenxian-0.3.2.tar.gz
  • Upload date:
  • Size: 43.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wenxian-0.3.2.tar.gz
Algorithm Hash digest
SHA256 321a1876e62ef4d96804b85ded3a4829c205741cd208ca2d4a3ed58044124810
MD5 9ea95277ed17b7d2352323471ebcc1c6
BLAKE2b-256 1ba68580e519f4c85a63e4de68d81031b5929f0db1edc5ff16f16c9f8277c283

See more details on using hashes here.

Provenance

The following attestation bundles were made for wenxian-0.3.2.tar.gz:

Publisher: release.yaml on njzjz/wenxian

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wenxian-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: wenxian-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wenxian-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 70236e6a437304923e860797499f82804aedae8a5a6b39d47648b53d1fd008db
MD5 61b7b05a2119ff7330b2c15bc6d722c1
BLAKE2b-256 c42c812dbd72dc9a816a94eb23f5ed3dbea53b4a4a304b7c510f6c988e12724d

See more details on using hashes here.

Provenance

The following attestation bundles were made for wenxian-0.3.2-py3-none-any.whl:

Publisher: release.yaml on njzjz/wenxian

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page