Skip to main content

Library for OOP utilities

Project description

ooputil

This package defines utilities for object-oriented programming in python.

How to use

Interfaces

from ooputil import Interface

# Implementing an OOP interface
class MyInterface(Interface):
    def do_something(self, elem: str) -> None: pass

    def do_another_thing(self) -> None: pass


# Creating a class that implements the interface
class MyClass(MyInterface):
    def do_something(self, elem: str) -> None:
        print(elem)

    def do_another_thing(self) -> None:
        print("Using my method :)")

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

ooputil-0.1.4.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

ooputil-0.1.4-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file ooputil-0.1.4.tar.gz.

File metadata

  • Download URL: ooputil-0.1.4.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for ooputil-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a1f1984bc37c427d563ebc471b92d970300bd9582d0a79f45176a45eef7fc82e
MD5 632fe4d121fe6305ce571c82dec92af1
BLAKE2b-256 5323f52c4e54fb8d84398b4d52dd1d56595ed7614f867cbc51c59326426ddd1f

See more details on using hashes here.

File details

Details for the file ooputil-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ooputil-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for ooputil-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 839abe37b0402dcaf93b2a9b2187fc3b449e53164bc12b583175a7dbb5a92bdc
MD5 7f8003777876407c9ff523c07cc04ac3
BLAKE2b-256 efd4460316730398c187c7166b4b1ea013e5b726baf40b37a00d08bb1fd14205

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