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.7.tar.gz (9.4 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.7-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: featurelib-0.0.7.tar.gz
  • Upload date:
  • Size: 9.4 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.7.tar.gz
Algorithm Hash digest
SHA256 bcaebd7f0edeb8bc52fbc4604c8d010db8e183da8cc3718257acd168772fc2aa
MD5 66e69343ad343630e9e0a1469992dc61
BLAKE2b-256 02d4cab87c9f9c20d011980a630862d8a9860b3d56311ac25a76e0996a109174

See more details on using hashes here.

File details

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

File metadata

  • Download URL: featurelib-0.0.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9571a080906121969ead282d735cc1286d6b95ca624be736febdd0bd0280a819
MD5 c99ec35fd931649ea295d79e60d8c897
BLAKE2b-256 8cc0697a0cdb06e704f843328d0c3d149f42ef88cf11b1b101e31aec161a89de

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