Skip to main content

Python utility library.

Project description

Information

Overview

  1. Purpose
    • Python utility library
  2. Author
    • UsamaAliceWhite
  3. Copyright
    • Copyright 2026 UsamaAliceWhite All Rights Reserved

Environment

  1. Language
    • Python
  2. Standard Library
    • pathlib
    • socket
    • subprocess
    • threading
    • typing
  3. Third-Party Library
    • None
  4. Support OS
    • Window
    • Linux
    • Mac

Specification

Core

  1. SingletonPattern
    1. Purpose
      • Thread-safe Singleton pattern using a metaclass.
    2. Arguments
      • None= None
    3. Returns
      • None= None
    4. SampleCode
      from UsamaAliceWhite.Core import SingletonPattern
      
      class SeaOtter(metaclass= SingletonPattern):
          def __init__(self) -> None:
              pass
      
      one: SeaOtter = SeaOtter()
      two: SeaOtter = SeaOtter()
      
      assert one is two
      

System

  1. is_remote_debug_port_active
    1. Purpose
      • Check the usage status of the remote debugging port.
    2. Arguments
      • port= Remote debugging port number
      • host= Target host address
      • timeout= Connection timeout in seconds
    3. Returns
      • True= Port is in use
      • False= Port is available
    4. SampleCode
      from UsamaAliceWhite.System import is_remote_debug_port_active
      
      if is_remote_debug_port_active(port= 5368):
          print("Port is in use.")
      else:
          print("Port is available.")
      
  2. launch_browser_with_remote_debug
    1. Purpose
      • Launch the browser with a specified remote debugging port.
        Supports Chrome, Edge, and other Chromium browsers.
    2. Arguments
      • browser_path= Path to the browser executable
      • profile_path= Path to the profile directory
      • debug_port= Remote debugging port number
      • cmdline_args= Additional command-line arguments
        (--user-data-dir and --remote-debugging-port are added automatically)
    3. Returns
      • subprocess.Popen= The launched browser process instance
    4. SampleCode
      from UsamaAliceWhite.System import launch_browser_with_remote_debug
      from subprocess import Popen
      
      process: Popen = launch_browser_with_remote_debug(
          browser_path= "C:/Program Files/Google/Chrome/Application/chrome.exe",
          profile_path= "C:/UsamaAliceWhite/Profile/",
          debug_port= 5368,
          cmdline_args= ["--no-first-run", "--start-maximized"]
      )
      

Structure

UsamaAliceWhite-PyPI/
├── UsamaAliceWhite/
│   ├── Core/
│   │   ├── __init__.py
│   │   └── MetaClass.py
│   ├── System/
│   │   ├── __init__.py
│   │   └── Process.py
│   ├── __init__.py
│   └── py.typed
├── LICENSE
├── pyproject.toml
└── 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

usamaalicewhite-7.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

usamaalicewhite-7.1.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file usamaalicewhite-7.1.0.tar.gz.

File metadata

  • Download URL: usamaalicewhite-7.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for usamaalicewhite-7.1.0.tar.gz
Algorithm Hash digest
SHA256 9677b772506a1383cc5a18b885ee55e0255dcdf3b71d3ad5cdb087bf70e358ff
MD5 27466b5d20f0f09542fbd8f39ea3ec1f
BLAKE2b-256 f59d74d59c4000d955a3db57ede97a47d025e989d02e8ca9099d0604e591d687

See more details on using hashes here.

File details

Details for the file usamaalicewhite-7.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for usamaalicewhite-7.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb8c06aa730596ef42ba9be186938c9322d6590cea4f45290d4b34bff930cc19
MD5 c80665ca9d7f0c5d1442fa6cec135aef
BLAKE2b-256 5c1aa4445ab9151e000b9eaad1498918935983bec4810daf2a28aef3e1686ae4

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