Skip to main content

Smarter Travel Artifactory Client

Project description

https://travis-ci.org/smarter-travel-media/stac.svg?branch=master https://img.shields.io/pypi/v/stac.svg

Stac is a tiny Artifactory client designed for getting the most recent version (or versions) of a project from an Artifactory server. The target use case is downloading project artifacts as part of a deploy process.

Given a few pieces of information, it can generate URLs to the most recent version of an artifact to be downloaded as part of your deploy process. Currently, only Maven repository layouts (in Artifactory parlance) are supported.

Installation

To install Stac, simply run:

$ pip install stac

Dependencies

Usage

Using Stac is easy!

>>> from stac.api import new_maven_client
>>> client = new_maven_client('https://www.example.com/artifactory', 'libs-release')
>>> version = client.get_latest_version('com.example.services.authentication')
>>> version
'1.2.3'
>>> url = client.get_version_url('com.example.services.authentication', 'jar', version)
>>> url
'https://www.example.com/artifactory/libs-release/com/example/services/authentication/1.2.3/authentication-1.2.3.jar'

Documentation

The latest documentation is available at https://stac.readthedocs.org/en/latest/

Source

The source code is available at https://github.com/smarter-travel-media/stac

Download

Python packages are available at https://pypi.python.org/pypi/stac

Changes

The change log is available at https://stac.readthedocs.org/en/latest/changes.html

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

stac-1.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

stac-1.1.0-py2-none-any.whl (10.8 kB view details)

Uploaded Python 2

File details

Details for the file stac-1.1.0.tar.gz.

File metadata

  • Download URL: stac-1.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for stac-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7ced42cb9a511f4d72e3c58a92df797efa5be5041d8a2df5c0da8d35382dbe7e
MD5 bf2301c8874de6c96b9378b1e2b88536
BLAKE2b-256 a47df32e4cbf632d0accf05153837956fc85806f0d80c37522d8839538435a73

See more details on using hashes here.

File details

Details for the file stac-1.1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for stac-1.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 9e4827896f01a29c7c385af331436eb0572b6f581647de4c4ca682f4f6eae71d
MD5 3204e533fff6f966aa98c73be92cb777
BLAKE2b-256 d2e8d3ba60ad8d35b5f11f19847e7a01cf4c7083683b994471515b1c1e4faf35

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