{"id":19450403,"url":"https://github.com/ymc-github/sh-lib-dic-fun","last_synced_at":"2026-05-12T12:02:11.910Z","repository":{"id":95798711,"uuid":"271514341","full_name":"YMC-GitHub/sh-lib-dic-fun","owner":"YMC-GitHub","description":"some function for handle dic for ymc shell lib","archived":false,"fork":false,"pushed_at":"2020-06-11T10:13:05.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T09:23:44.826Z","etag":null,"topics":["dic","sh-lib","ymc"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YMC-GitHub.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-06-11T10:12:22.000Z","updated_at":"2020-06-11T10:13:26.000Z","dependencies_parsed_at":"2023-04-08T05:02:09.689Z","dependency_job_id":null,"html_url":"https://github.com/YMC-GitHub/sh-lib-dic-fun","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/YMC-GitHub/sh-lib-dic-fun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-dic-fun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-dic-fun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-dic-fun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-dic-fun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YMC-GitHub","download_url":"https://codeload.github.com/YMC-GitHub/sh-lib-dic-fun/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-dic-fun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32938003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["dic","sh-lib","ymc"],"created_at":"2024-11-10T16:37:14.707Z","updated_at":"2026-05-12T12:02:11.893Z","avatar_url":"https://github.com/YMC-GitHub.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sh lib dic-fun\n\n## desc\n\nsome function for handle dic for ymc shell lib\n\n## deps\n\n- [ ] sh-lib-str\n- [ ] sh-lib-arr\n- [x] sh-lib-time-cost v1.0.0\n- [ ] sh-lib-test\n\n## apis\n\n- [ ] dic_ini\n- [x] dic_create\n- [x] dic_update\n- [x] dic_read\n- [x] dic_delete\n- [x] dic_remove\n- [x] dic_c\n- [x] dic_u\n- [x] dic_r\n- [x] dic_d\n- [x] dic_add\n- [x] dic_get\n- [x] dic_del\n- [x] dic_has\n- [x] dic_clear\n- [x] dic_print\n- [x] dic_keys\n- [x] dic_count\n\n```sh\ncat src/index.sh | grep \"function \" | sed \"s/function */- [x] /g\"  | sed \"s/() *{//g\"\n```\n\n\n## feats\n\n- [x] basic `curd` dic eg.\n- [x] with api style `create/update/read/delete`\n- [x] with api style `c/u/r/d`\n- [x] with api style `create/update/read/remove`\n- [x] with style `add/get/del`\n\n## how to use for poduction?\n\n```sh\n# get the code\n\n# run the index file\n# ./src/index.sh\n\n# or import to your sh file\n# source /path/to/the/index file\n\n# simple usage\ndeclare -A a #ok\n#eval \"declare -A a\" #ok\ndic_c \"a\"  \"name\" \"hualei\"\ndic_r \"a\"  \"name\"\ndic_u \"a\"  \"name\" \"ymc\"\ndic_d \"a\"  \"name\"\n```\n\n## how to use for developer?\n\n```sh\n# get the code\n\n# run test\n./src/test.sh\n#2 get some fail test\n#./test.sh | grep \"it is false\"\n```\n\n## author\n\nyemiancheng \u003cymc.github@gmail.com\u003e\n\n## license\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fsh-lib-dic-fun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymc-github%2Fsh-lib-dic-fun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fsh-lib-dic-fun/lists"}