Skip to main content

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. 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 weirdgitter import WeirdGitter

wg = WeirdGitter(
    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 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

weirdgitter-0.0.4.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.4-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: weirdgitter-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 38d5b88aedc914fedca688b41d05b585f990bb8bb9b1b90eb25819ccd0db86b1
MD5 bfd4fe725a3f6289f9628309e73d02f7
BLAKE2b-256 2a04f4669bbefaee970b8a0bd53a8e5df0acb5bd5834f48e049f822c9508f933

See more details on using hashes here.

File details

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

File metadata

  • Download URL: weirdgitter-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bb9e7e15ff89986602b316124bf4630ac8e48a3dd79b78ed49099bfdeb095417
MD5 ad15195dfca3b80b0cbb7f47b6feb228
BLAKE2b-256 527eb554522da1db25b1c0ca18a8928caabb625cb82a92a7e78f747c09e77066

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