Simple yet useful Continious Delivery script. Work with git and .sh/.bat scripts.
Project description
WeirdGitter
WeirdGitter is a simple yet useful Continious Delivery script. Work with git and .sh/.bat scripts
Installation
pip install WeirdGitter
Usage
Pull a repo with scripts. Scripts should be in Home Directory.
There should be a weirdgitter.toml in repo containing:
scripts=["script1", "script2"]
WeirdGitter will run these scripts on pull.
Firstly, executes text, then build, and finally deploy.
Create a runner .py file, using the docs or this example:
from weirdgitter import WeirdGitter
wg = WeirdGitter(
repo_path='/path/to/repo',
branch='deploy',
name='MyProjectName',
run_on_start=True
)
wg.run_loop()
Then run script in background (Will work until an error (ideally forerver))
Custom callback:
from weirdgitter import WeirdGitter, WeirdGitterResult
import telebot
TG_TOKEN = "YOUR TELEGRAM BOT TOKEN"
CHAT_ID = "YOUR CHAT ID"
bot = telebot.TeleBot(TG_TOKEN)
def callback(result: WeirdGitterResult):
if result.result_status is None:
return
res = f"`{result.name} | {result.result_status}`\n"
for k in result.updates:
res += f"`{k}`: {result.__dict__[k]}\n"
bot.send_message(
chat_id=CHAT_ID,
text=res
)
Feel free to ask for suggestions and bugs through email
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file weirdgitter-0.0.5.tar.gz.
File metadata
- Download URL: weirdgitter-0.0.5.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c6833be2ecbd8065f50a42e4d9c6223f3f71dc615f50fff94192d1d6b84297b
|
|
| MD5 |
060612a0367fdd841bfc22e8a895e814
|
|
| BLAKE2b-256 |
3449a60b0ac232092582e0101d8bda9b2af0d034c4273343f18959cc597cbb75
|
File details
Details for the file weirdgitter-0.0.5-py3-none-any.whl.
File metadata
- Download URL: weirdgitter-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc2becdb359e87a96b75b7b5cdff42638192a810368d99423e7031bf36ae4b0e
|
|
| MD5 |
06ee6901c7ac1c7c8bba45b9ea8fdbfe
|
|
| BLAKE2b-256 |
36bb35e46db1fa8d22b8e1de3fe17659156a9267a094697742418306192df7d2
|