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.3.tar.gz
(3.1 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.3.tar.gz.
File metadata
- Download URL: ooputil-0.1.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4696de091183e7e36fffc27f767875c24c476a8d2fdc5ae132d3bee3746d3bc6
|
|
| MD5 |
b1c53774d58880275d2c1e4d00a2c2d4
|
|
| BLAKE2b-256 |
b0e32989b1e781196367e737f875692923f2fb5412fadd35a0b28ca7b540b33c
|
File details
Details for the file ooputil-0.1.3-py3-none-any.whl.
File metadata
- Download URL: ooputil-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.0 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 |
e17e62f6d60895ce791bada7b4eae4cda43b994567eba77eff9e14d8bbc3e288
|
|
| MD5 |
abf506ba1bdb0d78dafc961e5b67d5cd
|
|
| BLAKE2b-256 |
fc79cc640461537e111073e866967f8c8b51511b1b234673c006ef338f1a4565
|