Skip to main content

Python wrapper for the JFrog Artifactory REST API.

Project description

rtpy

image image Code style: black Documentation Status image

Python wrapper for the JFrog Artifactory REST API

Documentation

https://rtpy.rtfd.io


Installation

$ pip install rtpy

Usage

import rtpy

# instantiate a rtpy.Rtpy object
settings = {}
settings["af_url"] = "http://..."
settings["api_key"] = "123QWA..."
# settings["username"] = "my_username"
# settings["password"] = "my_password"

af = rtpy.Rtpy(settings)

# use a method
r = af.system_and_configuration.system_health_ping()
print(r)
# OK

Running the tests

Requirements :

  • Dependencies : see [tool.poetry.dependencies] and [tool.poetry.dev-dependencies] in pyproject.toml
  • Artifactory instance (with a valid license) running

NEVER run the tests on a production instance!

Launch

  • Set the following environment variables:
    • AF_TEST_URL
    • AF_TEST_USERNAME
    • AF_TEST_PASSWORD

The user must have admin privileges (it's API key will be revoked during the tests)

  • Clone the repository and launch the tests using the command :
$ python -m pytest -v

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

rtpy-1.4.8.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rtpy-1.4.8-py2.py3-none-any.whl (100.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rtpy-1.4.8.tar.gz.

File metadata

  • Download URL: rtpy-1.4.8.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.7.0 Linux/4.19.0-1-amd64

File hashes

Hashes for rtpy-1.4.8.tar.gz
Algorithm Hash digest
SHA256 8102be084746916a7b36d8a0e145b6d99e4a261e1c99e308251348ae6b1b41d4
MD5 e8b92b39bf97b0c90a930a66b6520ef1
BLAKE2b-256 f910a9e33b0cfc9942df4794731a9ede8623f1c25e40cb75e1e3665daf1cf1eb

See more details on using hashes here.

File details

Details for the file rtpy-1.4.8-py2.py3-none-any.whl.

File metadata

  • Download URL: rtpy-1.4.8-py2.py3-none-any.whl
  • Upload date:
  • Size: 100.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.7.0 Linux/4.19.0-1-amd64

File hashes

Hashes for rtpy-1.4.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dad5c6d58e8e23ebc602f5ae77aa71f24d6994e4b9e55db4c80c9c69367df671
MD5 ffb360c917940b5bf903c933db4e6865
BLAKE2b-256 019eee96d1aec3c70ebb2114414fa92cfd08e48b088ba32dfb9b9b439cba87dd

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