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.2.tar.gz (6.6 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.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: weirdgitter-0.0.2.tar.gz
  • Upload date:
  • Size: 6.6 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.2.tar.gz
Algorithm Hash digest
SHA256 7fa3d63b2683f2a1e06a58025cae28537cccc1354cb0880ed8b957c772c06a6d
MD5 cf24def94f9846ca15d6f175eaaea9f2
BLAKE2b-256 49c0c5b99214d102c1eb0ae661401b32f96a5970bcb21d2fc79daf77bb50bab0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: weirdgitter-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c01362b826253f29da967f83946d50832729c7463d483a6a0123a9d0dbbdfee
MD5 21afd9365c029ff6feffefa7bc2dbee0
BLAKE2b-256 b8f1e6002fdc32ee7e3586681228d3000ad913c953698aab1c78cd0b9ecf209b

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