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.9.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

rtpy-1.4.9-py2.py3-none-any.whl (25.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: rtpy-1.4.9.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.3 Linux/5.7.6-arch1-1

File hashes

Hashes for rtpy-1.4.9.tar.gz
Algorithm Hash digest
SHA256 5ff0094ad804c963c4ea56e3ead1c1ac7ed210525336c78e6dfc3456e46c1f1b
MD5 1ed61fd2e9dc0f68199ab742f4d9db9b
BLAKE2b-256 77f52fa8d044cea1026f2020c78262b129d133b439ea170793c8fd1ca535a472

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rtpy-1.4.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.3 Linux/5.7.6-arch1-1

File hashes

Hashes for rtpy-1.4.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a5e6f2e527c6d83604fe47c228c8c5b3b2f51deb51ff6a67fcd7b85b35b1d88f
MD5 252512e32d2d9bc1066c6e98d099bd76
BLAKE2b-256 b1c1e11487bdee842837d36836d92380c928a9904f1c9f0ef35611f0021ab34d

See more details on using hashes here.

Supported by

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