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.0.0.tar.gz (4.3 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.0.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for usamaalicewhite-7.0.0.tar.gz
Algorithm Hash digest
SHA256 738745529b9d416378e6470ebfa48555c0fc3a3db6b17d9e0cee3fea5e9dc99a
MD5 57e76980c65f5003c4bb4a25f3618635
BLAKE2b-256 568e5e20f80cd76c944655e8aa7237f3420022f2432fc12df63edec33c34e35e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for usamaalicewhite-7.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48fe639aad0f5b529248d2bbabd8e934aa3f3f30410508e23f4c47d7c13d3e3e
MD5 53ef6db62688756cfbe7536b7e4b3f09
BLAKE2b-256 7b343b4061da11830335ce5d6678fb4d37d9eabc85297a09b8bcb0111f7c6de3

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