Skip to main content

A Python to Artifactory interface

Project description

# 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())
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

artifactory-0.1.4.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file artifactory-0.1.4.tar.gz.

File metadata

  • Download URL: artifactory-0.1.4.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for artifactory-0.1.4.tar.gz
Algorithm Hash digest
SHA256 16f7367c856633e12cec2c26040d144c8e53f6c6c946add8db35a658f46b591d
MD5 7247be506f5a6e80f3dae1ab8ea5ee75
BLAKE2b-256 d90f0a0f13d5f1d2173679108e9ad940d1d67b1f8c8d1fae31cb1f6ef4c2b1c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page