Helper scripts to manage Drone API operations
Project description
pydroneapi
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
- Docker 18.09+
- Make
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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for pydroneapi-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 733bf0d46892a27e3f846477b27407fc661700d8fadd5255136dd52a9ea10f88 |
|
MD5 | 9bac5a0fa6ce808f5d92d41735a0f6d6 |
|
BLAKE2b-256 | b6b8029c4fea51fcf65599e8ff643fdea907f094b5d102d155c3b2efe6e2e37f |