{"id":24738666,"url":"https://github.com/zweifisch/mongo-tools","last_synced_at":"2025-08-20T08:10:54.770Z","repository":{"id":57442991,"uuid":"11611021","full_name":"zweifisch/mongo-tools","owner":"zweifisch","description":"cli utility for mongodb","archived":false,"fork":false,"pushed_at":"2013-07-30T00:49:07.000Z","size":120,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T23:15:58.355Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zweifisch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-23T14:53:52.000Z","updated_at":"2018-05-10T02:36:46.000Z","dependencies_parsed_at":"2022-09-04T22:22:11.531Z","dependency_job_id":null,"html_url":"https://github.com/zweifisch/mongo-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zweifisch/mongo-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fmongo-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fmongo-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fmongo-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fmongo-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zweifisch","download_url":"https://codeload.github.com/zweifisch/mongo-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fmongo-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271285506,"owners_count":24732923,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-27T22:55:17.497Z","updated_at":"2025-08-20T08:10:54.736Z","avatar_url":"https://github.com/zweifisch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongo tools\n\ninstall via pip\n\n```sh\npip install mongo-tools\n```\n\n### mongo-info\n\nlist dbs and print storage size, number of documents etc. of each db\n\n```sh\nmongo-info dbs\n```\n\nexample output\n\n```\ndb_name\n                  ns         storageSize                size      totalIndexSize               count\n               links              13.4 M              10.0 M             503.0 K               8.9 k\n      system.indexes               1.3 M             504.0                 0.0                 5.0  \n             archive               3.7 M               3.3 M               2.4 M               6.8 k\n            fs.files             168.0 K              62.2 K              39.9 K             264.0  \n           fs.chunks             218.8 M             173.4 M              87.8 K             751.0  \n            sessions             680.0 K              79.7 K              47.9 K             340.0  \n```\n\nprint info of a single database\n\n```sh\nmongo-info db local\n```\n\nlist all connections\n\n```sh\nmongo-info connections\n```\n\nexample output:\n\n```\n           ip          counts\n    127.0.0.1              41\n      0.0.0.0               2\n```\n\nmore options see `mongo-info -h`\n\n### mongo-profile\n\nprofile for 60 seconds, log queries that takes longer than 100 ms\n\n```sh\nmongo-profile start db_name 100 60\n```\n\nmore options see `mongo-profile -h`\n\n### mongo-files\n\nfind file by `\\_id`\n\n```sh\nmongo-files dbname find 106e001a79074b8c2e706466\n```\n\nlist 10 largest files\n\n```sh\nmongo-files dbname largest 10\n```\n\ncount files\n\n```sh\nmongo-files dbname count\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fmongo-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzweifisch%2Fmongo-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fmongo-tools/lists"}