Skip to main content

Simple yet useful Continious Delivery script. Work with git and .sh/.bat scripts.

Project description

WierdGitter

WierdGitter is a simple yet useful Continious Delivery script. Work with git and .sh/.bat scripts

Installation

pip install WierdGitter

Usage

Pull a repo with scripts. Scripts should be in Home Directory. Scripts should be named wg_test.sh, wg_build.sh, wg_deploy.sh for unix and wg_test.bat, wg_build.bat, wg_deploy.bat for windows

Firstly, executes text, then build, and finally deploy.

Create a runner .py file, using the docs or this example:

from wierdgitter import WierdGitter

wg = WierdGitter(
    repo_path='/path/to/repo',
    branch='deploy',
    name='MyProjectName'
)

wg.run_loop()

Then run script in background (Will work until an error (ideally forerver))

Custom callback:

from wierdgitter import WierdGitter, WierdGitterResult

import telebot

TG_TOKEN = "YOUR TELEGRAM BOT TOKEN"
CHAT_ID = "YOUR CHAT ID"

bot = telebot.TeleBot(TG_TOKEN)

def callback(result: WierdGitterResult):
    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

weirdgitter-0.0.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

weirdgitter-0.0.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file weirdgitter-0.0.1.tar.gz.

File metadata

  • Download URL: weirdgitter-0.0.1.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

Hashes for weirdgitter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a3d74d1beb879a93cb829ed8a7e5333810089a6a5f46b59c6ee6b80f61c97644
MD5 f56fc3cf5785909bf19fa05abc73921f
BLAKE2b-256 7d5168841b3550c4e84d2fe1d5418ff964b8d81488ebf98e811faceb3e6a7320

See more details on using hashes here.

File details

Details for the file weirdgitter-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: weirdgitter-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.7

File hashes

Hashes for weirdgitter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d229ed418be1f443c0eea19a92508c4c5360a1cedb17798643072fe9498cc789
MD5 c0b635b8d49524585722a29606f494a8
BLAKE2b-256 fc2234f035e43e96ca6afc4c8f7309dd2253151505d01073857f7b38f7a03a9f

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