pyartifactory is a Python library providing typed interactions with the JFrog Artifactory REST API, currently at version 2.11.2. It enables developers to manage Artifactory resources such as users, groups, permissions, repositories, artifacts, and access tokens in their applications. The library maintains an active release cadence with frequent updates to add features and address issues.
pip install pyartifactoryVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the `Artifactory` client using environment variables for credentials and then perform basic operations like listing users and creating a new user. It highlights the use of basic authentication and the `api_version` parameter for Artifactory 6.6.0+ permission management.
Initialize the client with `Artifactory(url=..., auth=..., api_version=2)` for permission management on Artifactory 6.6.0+.
Ensure you provide only one authentication method: either `auth=('USERNAME', 'PASSWORD')` or `access_token='YOUR_TOKEN'`, but not both if you intend to use basic auth.Update your code to handle potentially `None` values for fields that have become optional in newer `pyartifactory` versions, especially when working with `BuildArtifact` and checksums.
If experiencing issues on `v2.6.0` or `v2.7.0`, upgrade to `v2.7.1` or a later version to benefit from the backward compatibility fix.
Verify that the Artifactory URL and the path to the resource (e.g., repository, artifact, user group API endpoint) are correct. Ensure that the user credentials have the appropriate read/write permissions for the target resource. If managing permissions with Artifactory 6.6.0 or higher, ensure you pass `api_version=2` to the `Artifactory` constructor.
Consult the official `pyartifactory` documentation for your installed version to confirm the correct parameters for the method being called. If providing authentication, ensure you pass either `auth=('USERNAME', 'PASSWORD_OR_API_KEY')` or `access_token='YOUR_TOKEN'`, but not both, as `access_token` takes precedence.Double-check the username, password/API key, or access token for accuracy. Ensure the Artifactory user has the required permissions for the operation. When initializing the `Artifactory` client, explicitly set `api_version=2` if interacting with permission management on Artifactory versions 6.6.0 or higher.
Verify the attribute or method name against the `pyartifactory` documentation for your installed version. Ensure that you are importing from `pyartifactory` and not a conflicting library (e.g., `artifactory` or `dohq-artifactory`) if both are installed. Update your code to use the correct API if it has changed between library versions.
No dependency data recorded yet.