cbdb to api
in dev,欢迎与我交流,[email protected]
pip install -r requirements.txt
download and save cbdb_sqlite.db in root directory, you can download it from here
- http://server/ -- home page
- http://server/table-desc -- all table describe info
- http://server/table-desc?table_name=[tablename] -- specific table describe info
- http://server/query?sql=[sql] -- query table with sql
- http://server/tree/office-type -- give an office_type_tree json hierarchy object
Note: 可以不带括号
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
- 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
Since CBDB uses CC BY-NC-SA 4.0 license, the license is also used for this project