{"id":30237698,"url":"https://github.com/devopshq/artifactory-du","last_synced_at":"2025-08-15T02:07:42.109Z","repository":{"id":47856522,"uuid":"139933263","full_name":"devopshq/artifactory-du","owner":"devopshq","description":"JFrog Artifactory Disk Usage command line utility - View the size of each directory in artifactory as text","archived":false,"fork":false,"pushed_at":"2024-01-15T10:48:59.000Z","size":57,"stargazers_count":17,"open_issues_count":3,"forks_count":12,"subscribers_count":7,"default_branch":"develop","last_synced_at":"2025-06-15T11:17:09.285Z","etag":null,"topics":["artifactory","artifactory-du","disk-space","jfrog","jfrog-artifactory","python","python-library"],"latest_commit_sha":null,"homepage":"https://devopshq.github.io/artifactory-du/","language":"Python","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/devopshq.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}},"created_at":"2018-07-06T04:30:38.000Z","updated_at":"2025-03-25T11:00:05.000Z","dependencies_parsed_at":"2024-01-15T12:36:13.570Z","dependency_job_id":"f392e749-3a03-42bf-9cf5-df8b1a5d9696","html_url":"https://github.com/devopshq/artifactory-du","commit_stats":{"total_commits":35,"total_committers":5,"mean_commits":7.0,"dds":"0.34285714285714286","last_synced_commit":"f621de54a073b07fb251aa769eab8d51f263f515"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devopshq/artifactory-du","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopshq%2Fartifactory-du","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopshq%2Fartifactory-du/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopshq%2Fartifactory-du/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopshq%2Fartifactory-du/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devopshq","download_url":"https://codeload.github.com/devopshq/artifactory-du/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devopshq%2Fartifactory-du/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270511293,"owners_count":24597666,"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-15T02:00:12.559Z","response_time":110,"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":["artifactory","artifactory-du","disk-space","jfrog","jfrog-artifactory","python","python-library"],"created_at":"2025-08-15T02:07:38.987Z","updated_at":"2025-08-15T02:07:42.085Z","avatar_url":"https://github.com/devopshq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Artifactory Disk Usage cli (artifactory-du)\n==========================================\n\n[![docs](https://img.shields.io/readthedocs/pip.svg)](https://devopshq.github.io/artifactory-du/)  [![dohq build status](https://travis-ci.org/devopshq/artifactory-du.svg)](https://travis-ci.org/devopshq/artifactory-du) [![dohq on PyPI](https://img.shields.io/pypi/v/artifactory-du.svg)](https://pypi.python.org/pypi/artifactory-du) [![artifactory-du license](https://img.shields.io/pypi/l/vspheretools.svg)](https://github.com/devopshq/artifactory-du/blob/master/LICENSE)\n\n`artifactory-du` - estimate file space usage\n\nSummarize disk usage in JFrog Artifactory of the set of FILEs, recursively for directories.\n\n# Table of Contents\n- [Installation](#installation)\n- [Usage](#usage)\n    - [Artifactory options](#artifactory-options)\n        - [Connection](#connection)\n        - [Specific](#specific)\n    - [DU options](#du-options)\n- [Known issues](#known-issues)\n- [CONTRIBUTING](#contributing)\n- [AD](#ad)\n\n\n# Installation\nThe easiest way is using docker!\n```bash\ndocker pull devopshq/artifactory-du\ndocker run devopshq/artifactory-du --version\n```\n\n```cmd\n# Install from PyPi\n# python -mpip install artifactory-du\n\n# From git\npython -mpip install git+https://github.com/devopshq/artifactory-du.git\n\n# and try to get help\nartifactory-du --help\n```\n\n# Usage\n`artifactory-du` is used in the same manner as original `du` from *nix, although launch options are different. See artifactory-du --help for details.\n```cmd\n# Recursive summary for root folder in repo.snapshot\nartifactory-du --username username --password password --artifactory-url https://repo.example.ru/artifactory --repository repo.snapshot -h -s *\n\n# Set alias for linux\nalias adu=artifactory-du --username username --password password --artifactory-url https://repo.example.ru/artifactory --repository repo.snapshot -h\n# usage\nadu --max-depth=2 /*\n\n# Set alias for Windows\nset \"adu=artifactory-du --username username --password password --artifactory-url https://repo.example.ru/artifactory --repository repo.snapshot -h\"\n# usage\n%adu% --max-depth=2 /*\n\n```\n\nBelow we skip artifactory-specific options: `username, password, artifactory-url, repository`, because we use ALIAS (for [linux-bash](https://askubuntu.com/questions/17536/how-do-i-create-a-permanent-bash-alias) or [windows-cmd](https://superuser.com/a/560558)\n\n```cmd\n# Summary for subfolder in folder\nadu --max-depth=2 folder/*\n\n# show 2 folder level inside repository\nadu --max-depth=2 *\n\n# Show only directory with GB size\nadu --max-depth=0 * | grep G\n\n# Show artifacts that have never been downloaded\nadu --max-depth=0 * --without-downloads | grep G\n\n# Show artifacts older than 30 days\nadu --max-depth=0 * --older-than 30 | grep G\n\n```\n\n## Artifactory options\n### Connection\n- `--artifactory-url http://arti.example.com/artifactory` -URL to artifactory, e.g: https://arti.example.com/artifactory\"\n- `--username USERNAME` - user which has READ access to repository\n- `--password PASSWORD`, - user's password which has READ access to repository\n- `--repository REPOSITORY` - Specify repository\n- `--verbose` - increase output verbosity\n\n### Specific\n- `--without-downloads` - Find items that have never been downloaded (`stat.downloads == 0`)\n- `--older-than DAY_COUNT` - only counts size for files older than `DAY_COUNT`\n\n## DU options\n- `--max-depth N` - print the total size for a directory (or file, with --all) only if it is N or fewer levels below the command line argument; `--max-depth=0` is the same  as `--summarize`\n- `--human-readable, -h` - print sizes in human readable format (e.g., 1K 234M 2G)\n- `--all` - write counts for all files, not just directories\n- `--summarize` - display only a total for each argument\n\n# Known issues\n1. Does not support filename in `\u003cfile\u003e`: `artifactory-du -h -s */*.deb` will fail\n2. Does not print folder if `summarize` folder: `artifactory-du -h -s foldername` will out: `123G    /` , expected as original `du`: `123G    foldername`\n\n# CONTRIBUTING\nHow to contribute to the project:\n- Create your own github-fork\n- Change files\n- Create a pull request to the `develop`-branch\n\nHow to create a release:\n- Dump the version on `develop`-branch in [artifactory_du/version.py](artifactory_du/version.py)\n- Create a pull request `develop=\u003emaster`\n- Merge it and wait till all travis-ci jobs are passed and we have the new version in pypi https://pypi.org/project/artifactory-du/#history\n- Build and push docker image: `make docker-release`\n\n# Advertising\n- [artifactory-cleanup](https://github.com/devopshq/artifactory-cleanup) - is an extended and flexible cleanup tool for JFrog Artifactory.\n\n\n---------------\nInspired by https://github.com/reversefold/artifactory-disk-usage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevopshq%2Fartifactory-du","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevopshq%2Fartifactory-du","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevopshq%2Fartifactory-du/lists"}