Skip to main content

Helper scripts to manage Drone API operations

Project description

pydroneapi

Run Python Tests Push to PyPi Latest Version Download Status License

A DRONE CI Server - Python helper scripts to manage API interactions and operations.

This tool manages authentication against Drone CI and performs common Drone CI API operations using a Python wrapper.

Prerequisites

Installation

From PyPI:

pip install pydroneapi

From source:

git clone --recursive https://github.com/bellyjay1005/pydroneapi
cd pydroneci
python setup.py install

From Github directly:

pip3 install pydroneapi@git+https://github.com/bellyjay1005/pydroneci

Usage

Example:

from pydroneapi import PyDroneAPI

# Sync application github repository with Drone pipeline
drone = PyDroneAPI(
    drone_host='https://example.com',
    token='abcd1234',
    repo='bellyjay1005/test-repo',
)

sync_res = drone.synchronize_repository()
if not sync_res[0]['id']:
    print('New Repository Not Synchronized. Error Message - %s', sync_res)
    return False

Development & Test

Reference make help for more commands used for development and testing of source codes.

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

pydroneapi-0.1.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

pydroneapi-0.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pydroneapi-0.1.2.tar.gz.

File metadata

  • Download URL: pydroneapi-0.1.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for pydroneapi-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ac7fa7b61c4a827fa01ecb0bd530e23d7de104ad55a6160776e0a2ea8816e2c3
MD5 a7f7cf44a37372a647ecf3d936cd9a9d
BLAKE2b-256 a8e1b2633a1e9439449bc77809a5cab82062e6cbba610bc4e357f841fd07ed12

See more details on using hashes here.

File details

Details for the file pydroneapi-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pydroneapi-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for pydroneapi-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 733bf0d46892a27e3f846477b27407fc661700d8fadd5255136dd52a9ea10f88
MD5 9bac5a0fa6ce808f5d92d41735a0f6d6
BLAKE2b-256 b6b8029c4fea51fcf65599e8ff643fdea907f094b5d102d155c3b2efe6e2e37f

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