tinvaan / drone-python Goto Github PK
View Code? Open in Web Editor NEWPython client for the drone.io public API
License: Apache License 2.0
Python client for the drone.io public API
License: Apache License 2.0
This project is free in every sense. What's a good license we could use for this ?
Need some work to generate documentation for modules and functions exposed within them.
https://github.com/tinvaan/PyDroneio/blob/d89d042e6938685e341e15014ef379604a4670e8/drone/http.py#L20
You don't need to check params
and data
like you're doing here and change the calling semantics for request.post()
. You can simplify all of this down to:
r = requests.patch(url, headers=headers, params=params, data=data)
if not r.ok:
r.raise_for_status()
return r.json()
This applies to all the methods you have in this class that call requests
methods like this (patch
and get
).
It is nowhere mentioned you have to set DRONE_TOKEN and DRONE_SERVER in Readme.md in the example section. But without them it does not work. So this should be mentioned.
Anyway thanks for publishing, since I need exactly your library to try to solve my problem of depended build triggering from a running pipeline over the api.
So thank you and keep your good work up2date.
Cheers
Just did some debugging to conclude that drone incorrectly reports the build status and is unable to restart existing builds in some cases.
Eg:
▶ drone build info tinvaan/drone-test-ci 46
Number: 46
Status: killed
Event: push
Commit: a4bed7d39ba5cdb85e6dd9dd20d7bf33f440c70b
Branch: master
Ref: refs/heads/master
Author: tinvaan <[email protected]>
Message: Initial commit
▶ drone build restart tinvaan/drone-test-ci 46
client error 500: {"message":"Not Found"}
This causes our CI pipeline to fail. The workaround for this would be to mock out responses from the drone API #TODO
We have the setup script in place to build the package. Make it publicly available in the Python Package Index
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.