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

Uploaded Python 3

File details

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

File metadata

  • Download URL: featurelib-0.0.2.tar.gz
  • Upload date:
  • Size: 10.3 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.2.tar.gz
Algorithm Hash digest
SHA256 12b00873a32d17d55e33fbde96026fedc0815619ee3102f50656fb6eda455df1
MD5 f498f6d84e7f29e0bfdf575cf61ac4ff
BLAKE2b-256 cfb56389b524dbfd6b0aba8d9f921632809d42544fe22d0c73c9fef185fcc932

See more details on using hashes here.

File details

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

File metadata

  • Download URL: featurelib-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a2f5b22e8adba5dc5f67fb860b291003cfaaff98c679f9cb8ffccb4a4d0df3e5
MD5 40389517df787ede8974466e1c9acc40
BLAKE2b-256 73535795d595ba7a993dcbe0fd0a7ebf64109424cc9193301830ff976527b018

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