anancarv / python-artifactory

Typed interactions with the Jfrog Artifactory REST API
MIT License
55 stars 50 forks source link

Best practice for using files #82

Closed chamoisla closed 3 years ago

chamoisla commented 3 years ago

General question. Say I have a CSV file with a list of artifacts to delete. What do you suggest for passing CSV data into art.artifacts.delete("<ARTIFACT_PATH_IN_ARTIFACTORY>") instead of hard coding a single repository path?

anancarv commented 3 years ago

Hi @chamoisla , For your use case, you can complete your CSV file with the artifact paths instead of just the artifacts. Then, you can loop through your CSV and run art.artifacts.delete("<ARTIFACT_PATH_IN_ARTIFACTORY>")