Skip to content

Soontao/cbdb_api

Repository files navigation

cbdb_api

cbdb to api

in dev,欢迎与我交流,[email protected]

install

pip install -r requirements.txt

download and save cbdb_sqlite.db in root directory, you can download it from here

api

Note: 可以不带括号

sample

GET https://cbdb-api.fornever.org
GET https://cbdb-api.fornever.org/table-desc
GET https://cbdb-api.fornever.org/table-desc?table_name=addresses
GET https://cbdb-api.fornever.org/query?sql=select * from addresses limit 10
GET https://cbdb-api.fornever.org/tree/office-type

todo

  • query api
  • query should be limit, only can be query
  • server metadata
  • any rdb data query server
  • make api easy to use
  • history address name change
  • tree
  • simplified chinese, introduce opencc

Reference

LICENCE

Since CBDB uses CC BY-NC-SA 4.0 license, the license is also used for this project

Releases

No releases published

Packages

No packages published