Skip to main content

A bunch of miscellaneous utils for scripts/RPA

Project description

RazbiUtils

This package contains utils for scripts/RPA. Most functionality is using the windows API, hence limited linux support

pip install RazbiUtils

Examples

Hiding a python window

import time
from razbi_utils.core import hide_window

WINDOW_TITLE = "Some Program"


def main():
    print("I am doing very useful stuff, I wanna do that in the background")
    while True:
        time.sleep(10)
        print(f"Did some useful stuff right now {time.strftime('%H:%M:%S')}")

if __name__ == '__main__':
    hide_window(WINDOW_TITLE)
    main()

^ Now if you run a batch script that runs this script, and you make a shortcut to it and name it "Some Program" When you start the "Some Program.lnk" it will hide it on-start, can be very useful for python listener scripts

For showing the window, you need to run show_window(WINDOW_TITLE)

Support/Contributions

If you have any suggestions, please make a pull request. If there's activity, I will create a discord server and update this README.md

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

razbiutils-0.1.0.dev2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

razbiutils-0.1.0.dev2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file razbiutils-0.1.0.dev2.tar.gz.

File metadata

  • Download URL: razbiutils-0.1.0.dev2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for razbiutils-0.1.0.dev2.tar.gz
Algorithm Hash digest
SHA256 1bd19792fdc18a30af2b925eb1cfbdb637ff7e8a84e79bc003a8f72310642635
MD5 15c8223a2441525360e07eb06f56fbe7
BLAKE2b-256 c8ef453562ce6a8cc18ec6d0451c7d3cfa7528cedb97920b19989b2d92549632

See more details on using hashes here.

File details

Details for the file razbiutils-0.1.0.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for razbiutils-0.1.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ba352fe9ce12ebbf992a148d573602f2986870546a93b6d7c784beb148c4472
MD5 a3e68f0ea3b671680f636bf4305bbd5e
BLAKE2b-256 84b9b7d0aa8365ee5c48a080021a8280682a8f3e39f62a63d8977ac812f205e1

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