Skip to main content

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.6.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

featurelib-0.0.6-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file featurelib-0.0.6.tar.gz.

File metadata

  • Download URL: featurelib-0.0.6.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.1

File hashes

Hashes for featurelib-0.0.6.tar.gz
Algorithm Hash digest
SHA256 a7f6b8d99e9b910ffe687a69450152219838a4cc6a35f2071f17f163f6fbf753
MD5 e3062110026953285657bf9229a485c7
BLAKE2b-256 ebc483fc35686c4664d6ca30c634ac3f6b2652e547d7c48c0f1fc5225bc3f622

See more details on using hashes here.

File details

Details for the file featurelib-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: featurelib-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.1

File hashes

Hashes for featurelib-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0ec4b6dc497fc8464f9c2945b8695989eb416684741717da9fafbf10638a33f0
MD5 481615a049451bed3d4d24671e6decad
BLAKE2b-256 b84129a63e257a34a93ec650286b60ab1b9ec66d68999d0d1edb010d218bf2cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page