I have a requirement where any file should be put in the artifact using python language. I tried to search all over internet but I couldn't find any help.
Please share code snippet or something which can help me to achieve this.
Any help is greatly appreciated here.
Artifactory python module can be used to upload artifacts into artifactory. https://pypi.python.org/pypi/artifactory/0.1.17
Here is an example from the website used to upload a file into artifactory:
from artifactory import ArtifactoryPath
path = ArtifactoryPath("http://my-artifactory/artifactory/libs-snapshotlocal/myapp/1.0")
path.mkdir()
path.deploy_file('./myapp-1.0.tar.gz')