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.2.4.tar.gz
(3.4 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.2.4.tar.gz.
File metadata
- Download URL: ooputil-0.2.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77108330d226d027021c621d085e0db5ef5ed44297f8d1ecccd88762f792e44d
|
|
| MD5 |
e4b4f3cdae8d4a6c952124686abc67c2
|
|
| BLAKE2b-256 |
cb5c5ec545c5ec73fcbbfbea469cb1df22d7481c63c98eaef1412091137f4950
|
File details
Details for the file ooputil-0.2.4-py3-none-any.whl.
File metadata
- Download URL: ooputil-0.2.4-py3-none-any.whl
- Upload date:
- Size: 3.3 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 |
8ad708a228e37fccd86b3759d0a16bfbd2db9493276a9c679d6461aba9222acf
|
|
| MD5 |
777fab8f96aabe5d851e40edec840c8e
|
|
| BLAKE2b-256 |
23bac045ad5589843fffdb10ca93ff41c577247a82e09a9665b90dced84ddc20
|