Skip to content

Python tool that recursively scan Artifactory repo and print sub-folders info and size. Usefull in analyzing space usage issues.

Notifications You must be signed in to change notification settings

borisovano/arti-repo-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

arti-repo-map

Python tool that recursively scan Artifactory repo and print sub-folders info and size. Usefull in analyzing space usage issues.

The tool parses nested json obtained from Artifactory api, uri: artifactory/api/storage/libs-snapshot-local?list&deep=1&listFolders=1&mdTimestamps=1

Usage

Either run and point to remote artifactory repo (see examples section) or choose local json datasource(previously downloaded via artifactory api)

Examples

1. Get repo info from Remote artifactory


python ./arti_parse.py -r www.artifactory.mycompany.com/artifactory/api/storage/libs-snapshot-local?list&deep=1&listFolders=1&mdTimestamps=1 -u myuser -p mypass
-- Some output omitted --
com/mycompany/tools/platform                         - 64.8GiB         (Total: 420.9GiB)
com/mycompany/tools/ba                               - 71.2GiB         (Total: 492.1GiB)
com/mycompany/common/server                          - 115.4GiB        (Total: 607.5GiB)
com/mycompany/common/client                          - 169.7GiB        (Total: 777.2GiB)
com/mycompany/common/AutomationTest                  - 295.4GiB        (Total: 1.0TiB)

2. Get repo info from Local json (already downloaded)


python ./arti_parse.py -r /home/user/my_artifactory_data.json
-- Some output omitted --
com/mycompany/tools/platform                         - 64.8GiB         (Total: 420.9GiB)
com/mycompany/tools/ba                               - 71.2GiB         (Total: 492.1GiB)
com/mycompany/common/server                          - 115.4GiB        (Total: 607.5GiB)
com/mycompany/common/client                          - 169.7GiB        (Total: 777.2GiB)
com/mycompany/common/AutomationTest                  - 295.4GiB        (Total: 1.0TiB)

About

Python tool that recursively scan Artifactory repo and print sub-folders info and size. Usefull in analyzing space usage issues.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages