{"id":17271550,"url":"https://github.com/zengbin93/zb","last_synced_at":"2025-04-14T08:14:56.456Z","repository":{"id":57478103,"uuid":"108957387","full_name":"zengbin93/zb","owner":"zengbin93","description":"Personal established tools and implement of algorithm.","archived":false,"fork":false,"pushed_at":"2020-11-12T09:08:11.000Z","size":1159,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T21:51:59.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zengbin93.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}},"created_at":"2017-10-31T06:57:55.000Z","updated_at":"2020-11-12T09:08:13.000Z","dependencies_parsed_at":"2022-09-18T19:01:02.945Z","dependency_job_id":null,"html_url":"https://github.com/zengbin93/zb","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengbin93%2Fzb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengbin93%2Fzb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengbin93%2Fzb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengbin93%2Fzb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zengbin93","download_url":"https://codeload.github.com/zengbin93/zb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248594191,"owners_count":21130316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-15T08:45:09.505Z","updated_at":"2025-04-14T08:14:56.424Z","avatar_url":"https://github.com/zengbin93.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zb\n[`zb`](https://pypi.org/project/zb/) is a python module, which contains some\n tools and algorithm implemented by myself.\n\nIf you are interested in this module, you can install it by `pip install zb`.\n\n\n安装：`pip install zb -U -i https://pypi.python.org/simple`\n\n## Tools\n\n* Modify Dict\n\n```python\nfrom zb import AttrDict, OrderedAttrDict\n\n# AttrDict is a dict that can get attribute by dot\nd1 = AttrDict(x=1, y=2)\nprint(d1, '\\n', d1.x, d1.y)\n\n# OrderedAttrDict is same as AttrDict, but items are ordered\nd2 = OrderedAttrDict(x=1, y=2)\nprint(d2, '\\n', d2.x, d2.y)\n```\n\n\n* extract text from pdf file - `zb.tools.pdf.pdf2text`\n\n```python\nfrom zb.tools import pdf2text\n\npdf_path = \"test.pdf\"\npdf_url = \"http://www.cninfo.com.cn/cninfo-new/disclosure/szse/download/1205276701?announceTime=2018-08-11\"\ntext = pdf2text(pdf_path)\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzengbin93%2Fzb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzengbin93%2Fzb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzengbin93%2Fzb/lists"}