{"id":21451143,"url":"https://github.com/soontao/cbdb_api","last_synced_at":"2026-05-21T04:06:34.442Z","repository":{"id":18831628,"uuid":"85402539","full_name":"Soontao/cbdb_api","owner":"Soontao","description":"cbdb to api","archived":false,"fork":false,"pushed_at":"2023-12-15T05:11:09.000Z","size":27,"stargazers_count":1,"open_issues_count":9,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T02:44:34.765Z","etag":null,"topics":["cbdb","database","python","sqlite3"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Soontao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-18T13:18:35.000Z","updated_at":"2017-03-22T11:47:10.000Z","dependencies_parsed_at":"2023-12-15T06:27:30.235Z","dependency_job_id":null,"html_url":"https://github.com/Soontao/cbdb_api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Soontao/cbdb_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soontao%2Fcbdb_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soontao%2Fcbdb_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soontao%2Fcbdb_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soontao%2Fcbdb_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Soontao","download_url":"https://codeload.github.com/Soontao/cbdb_api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soontao%2Fcbdb_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33288185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cbdb","database","python","sqlite3"],"created_at":"2024-11-23T04:18:24.426Z","updated_at":"2026-05-21T04:06:34.424Z","avatar_url":"https://github.com/Soontao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cbdb_api\n\ncbdb to api\n\nin dev，欢迎与我交流，theo.sun@outlook.com\n\n## install\n\n```text\npip install -r requirements.txt\n```\n\ndownload and save **cbdb_sqlite.db** in root directory, you can download it from [here](http://projects.iq.harvard.edu/chinesecbdb/%E4%B8%8B%E8%BC%89cbdb%E5%96%AE%E6%A9%9F%E7%89%88)\n\n## api\n\n* http://server/ -- home page\n* http://server/table-desc -- all table describe info\n* http://server/table-desc?table_name=[tablename] -- specific table describe info\n* http://server/query?sql=[sql] -- query table with sql\n* http://server/tree/office-type -- give an office_type_tree json hierarchy object\n\nNote: 可以不带括号\n\n\n## sample\n\n```text\nGET https://cbdb-api.fornever.org\nGET https://cbdb-api.fornever.org/table-desc\nGET https://cbdb-api.fornever.org/table-desc?table_name=addresses\nGET https://cbdb-api.fornever.org/query?sql=select * from addresses limit 10\nGET https://cbdb-api.fornever.org/tree/office-type\n```\n\n\n## todo\n\n* [x] query api\n* [x] query should be limit, only can be query\n* [x] server metadata\n* [ ] any rdb data query server\n* [ ] make api easy to use\n* [ ] history address name change\n* [ ] tree\n* [ ] simplified chinese, introduce opencc\n\n## Reference\n\n* [CHINA BIOGRAPHICAL DATABASE PROJECT (CBDB)](http://projects.iq.harvard.edu/chinesecbdb)\n\n## LICENCE\n\nSince CBDB uses [CC BY-NC-SA 4.0 license](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh), the license is also used for this project","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoontao%2Fcbdb_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoontao%2Fcbdb_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoontao%2Fcbdb_api/lists"}