Separate complicated functionality from your class
Project description
featurelib contains tools to divide and maintain large code bases while providing better readability and easy extensibility and maintainability.
from featurelib import feature, endpoint
class Logging(feature):
def log(self, msg: str) -> None:
# some logic here
def log_to_terminal(self, msg: str) -> None:
# some logic here
class Printing(feature):
def print(self) -> None:
print(self)
@endpoint
class App(Logging, Printing):
def __init__(self) -> None:
self.log('__init__ method.')
self.print()
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
featurelib-0.0.4.tar.gz
(9.7 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 featurelib-0.0.4.tar.gz.
File metadata
- Download URL: featurelib-0.0.4.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
304453458d5b3bd988434467dba185a9cb4e2ec006f6b1091985a88f5bd73e46
|
|
| MD5 |
57e9acbd545de6ef17b87e0b9812f706
|
|
| BLAKE2b-256 |
fe757baa21070675d7a51745f8e67d1e03e4648ced63c6c737480c69ad45a997
|
File details
Details for the file featurelib-0.0.4-py3-none-any.whl.
File metadata
- Download URL: featurelib-0.0.4-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c28e4b7edc0b88cf853499d3540eb382437fb250648547ef050bd7664b402b0
|
|
| MD5 |
15ced1d9e5f6ba569413c9309d4fd71e
|
|
| BLAKE2b-256 |
6182020243127ef6b926af11209c55fe7b7b753044d34bb98353cfccbe3db85d
|