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.2.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.2.tar.gz.
File metadata
- Download URL: ooputil-0.1.2.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 |
e21f96df517f407522a38ebc781883d4f8b9e382d86cbbcd443696584bcfe46e
|
|
| MD5 |
81a13a118c9ebbd8c17d62b48c2cc03e
|
|
| BLAKE2b-256 |
e887c9527bdc8b06fd24f365f2c444b226174d9bc21bb9073dc952cdea60efff
|
File details
Details for the file ooputil-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ooputil-0.1.2-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 |
2170843595a81ed4cf94764758da82a0f93c1b9d30425e1aa3c4e0ed70d91b82
|
|
| MD5 |
a9a5a5547140317fce5dbc7c49850f5a
|
|
| BLAKE2b-256 |
c51d377117b496790366911b11b65427ccc60d4a3e229a0b27c83eb7657d98f6
|