skip to navigation
skip to content

Not Logged In

artifactory 0.1.4

A Python to Artifactory interface

Latest Version: 0.1.12

# Python interface library for Jfrog Artifactory #

[![Build Status]https://travis-ci.org/Parallels/artifactory.svg?branch=develop]https://travis-ci.org/Parallels/artifactory

This module is intended to serve as a logical descendant of [pathlib]https://docs.python.org/3/library/pathlib.html) a Python 3 module for object-oriented path manipulations. As such, it implements everything as closely as possible to the origin with few exceptions, such as stat().

# Usage Examples #

Getting directory listing:

```python
from artifactory import ArtifactoryPath
path = ArtifactoryPath("http://repo.jfrog.org/artifactory/gradle-ivy-local")
for p in path.iterdir():
print p
```
Find all .gz files in current dir, recursively:

```python
from artifactory import ArtifactoryPath
path = ArtifactoryPath("http://repo.jfrog.org/artifactory/distributions/org/")

for p in path.glob("**/*.gz"):
print p
```

Download artifact to a local filesystem:

```python
from artifactory import ArtifactoryPath
path = ArtifactoryPath("http://repo.jfrog.org/artifactory/distributions/org/apache/tomcat/apache-tomcat-7.0.11.tar.gz")

with path.open() as fd:
with open("tomcat.tar.gz", "w") as out:
out.write(fd.read())
```  
File Type Py Version Uploaded on Size
artifactory-0.1.4.tar.gz (md5) Source 2014-07-29 8KB
  • Downloads (All Versions):
  • 40 downloads in the last day
  • 427 downloads in the last week
  • 1361 downloads in the last month