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.1.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ooputil-0.1.1.tar.gz.
File metadata
- Download URL: ooputil-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03f8f7896bac47359b0938deb2b9b5348d5c6b5d63243504ed7e4d9c6a21c292
|
|
| MD5 |
c355c0966d60522e843d67cc4ce26a64
|
|
| BLAKE2b-256 |
f67b6ac538f89bcf26e6bde5d78ea8f5da33da1a5ae57372863a0b2b6d0b319a
|
File details
Details for the file ooputil-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ooputil-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa74e7dd8a9e74a31a4fac2588dc2cf97424489877b7b237289aa9baaef6b54f
|
|
| MD5 |
4db49023d0d03c92cd8f5ff30f46bf1d
|
|
| BLAKE2b-256 |
5038e24c43bff8acc477a35a88044ed34b86f6f5b456844f9fc8174e3637321d
|