Registry / devops / artifactory

artifactory

JSON →
library0.1.17pypypiunverified

The `artifactory` library, currently at version 0.1.17, provides a Python interface for interacting with JFrog Artifactory. It's designed as a pathlib-like module for object-oriented path manipulations for Artifactory resources. However, this repository is largely unmaintained and considered outdated, with an active fork (`dohq-artifactory` / `pyartifactory`) being the recommended alternative for modern Python environments. It has a very slow release cadence, with the last release being 0.1.17.

pip install artifactory
INSTALL
IMPORT
SIG · ARTIFACTORY
A
artifactory
devopspythonv0.1.17
Install
3.2s avg
Import
458ms
Disk
21MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.17 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
installs and imports cleanly · install 0.0s · import 0.206s · 23.6MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 3.2s · import 0.160s · 24MB
21MB installed
● package 21MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ArtifactoryPath
from artifactory import ArtifactoryPath
from artifactory import ArtifactoryPath

This quickstart demonstrates how to initialize `ArtifactoryPath` with basic authentication using environment variables and perform common operations like creating a path and deploying an artifact. It simulates deploying a file to a specified Artifactory repository.

import os from artifactory import ArtifactoryPath ART_URL = os.environ.get('ARTIFACTORY_URL', 'http://localhost:8081/artifactory') ART_USER = os.environ.get('ARTIFACTORY_USERNAME', 'admin') ART_PASS = os.environ.get('ARTIFACTORY_PASSWORD', 'password') # Or API key try: # Initialize ArtifactoryPath for a repository with authentication # Note: For security, use environment variables or a config file for credentials. repo_path = ArtifactoryPath( f"{ART_URL}/my-local-repo", auth=(ART_USER, ART_PASS) ) # Create a directory (if it doesn't exist) repo_path.mkdir() print(f"Successfully connected and accessed: {repo_path}") # Example: Deploy a dummy file dummy_content = b"This is a test artifact." artifact_name = "test_artifact.txt" artifact_path = repo_path / artifact_name with open(artifact_name, "wb") as f: f.write(dummy_content) artifact_path.deploy_file(artifact_name) print(f"Deployed artifact: {artifact_path}") # Clean up local dummy file os.remove(artifact_name) # Example: List contents of the repository print(f"\nContents of {repo_path}:") for item in repo_path: print(item) except Exception as e: print(f"An error occurred: {e}") print("Please ensure Artifactory is running and accessible, and credentials are correct.")
Debug
Known issues
breakingThis `parallels/artifactory` library is outdated and officially superseded by the `dohq-artifactory` (also known as `pyartifactory`) fork. It is strongly recommended to use `pyartifactory` for new projects and consider migrating existing ones.
fix
Use `pip install pyartifactory` and update imports from `artifactory` to `pyartifactory`.
affects: <=0.1.17
gotchaThe library primarily targets older Python versions (2.7, 3.2, 3.3). While it might still function on newer Python 3 versions for basic operations, it lacks modern Python features, type hints, and robust maintenance for current Artifactory API versions. For Python 3.8+, `pyartifactory` is the recommended choice.
fix
For modern Python development, use the `pyartifactory` library instead, which is actively maintained and supports Python 3.8+.
affects: <=0.1.17
gotchaAuthentication issues (401/403 errors) are common if credentials (username/password or API key) are incorrect, or if the user lacks the necessary permissions on the Artifactory instance.
fix
Verify the username and password/API key. Ensure the Artifactory user has sufficient permissions for the target repository and operations. Consult Artifactory access logs for specific failures.
affects: *
gotchaSSL certificate verification errors can occur when interacting with Artifactory, especially with self-signed certificates or misconfigured SSL. This can manifest as connection errors.
fix
Ensure your environment trusts the Artifactory instance's SSL certificate. If in a trusted development environment, you might temporarily disable SSL verification (e.g., in underlying `requests` calls), but this is not recommended for production.
affects: *
Upgrade
Version history
0.1.17latest on PyPI · released Mar 12, 2016
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
24
OpenAI (training)
1
Resources