Skip to main content

国家自然科学基金数据查询系统

Project description

Downloads GitHub last commit GitHub Repo stars

国家自然科学基金数据查询系统

安装

pip3 install nsfc

数据下载

数据库文件较大,可通过百度网盘进行下载 (下载链接 提取码: 2nw5)

  • 下载所需的数据库文件,如project.A.sqlite3, 或全部数据project.all.sqlite3
  • 保存至nsfc的安装路径下的data目录下, 如:/path/to/site-packages/nsfc/data/project.db
  • 或者保存至HOME路径下的nsfc_data目录下,如~/nsfc_data/project.db
  • 也可以通过-d参数指定要使用的数据库文件

使用示例

# 查看帮助
nsfc query

# 列出可用的查询字段
nsfc query -K

# 输出数量
nsfc query -C

# 按批准年份查询
nsfc query -C -s approval_year 2019

# 按批准年份+学科代码(模糊)
nsfc query -C -s approval_year 2019 -s subject_code "%A%"

# 批准年份也可以是一个区间
nsfc query -C -s approval_year 2015-2019 -s subject_code "%C01%"

# 结果输出为.jl文件
nsfc query -s approval_year 2019 -s subject_code "%C0501%" -o C0501.2019.jl

# 结果输出为xlsx文件
nsfc query -s approval_year 2019 -s subject_code "%C0501%" -o C0501.2019.xlsx -F xlsx

# 限制最大输出条数
nsfc query -L 5 -s approval_year 2019                                           

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

nsfc-2.0.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

nsfc-2.0.0-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file nsfc-2.0.0.tar.gz.

File metadata

  • Download URL: nsfc-2.0.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

File hashes

Hashes for nsfc-2.0.0.tar.gz
Algorithm Hash digest
SHA256 5384f33d327a896e5c883bdbec40c64e6c4f2b8f9dabaafe1dc2b834963ef2c7
MD5 75ab0aa2dddccf5025946e50c4b8bc6e
BLAKE2b-256 1cf11d2b3d8419666e3399fd144a7ef1c358c28f3c7bbc2d188ab6f2a6211e78

See more details on using hashes here.

File details

Details for the file nsfc-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: nsfc-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

File hashes

Hashes for nsfc-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d4af419fe889bbad55a7225d799fe255d3e42f822eb7137417c34026beec39c
MD5 d00db1b4806c5fd6b2baf2845b97e651
BLAKE2b-256 037ee840711021a30797b4461b49ca6076ee8b4cf7cdc5cab45bbc872b39374e

See more details on using hashes here.

Supported by

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