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.3.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.3-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: featurelib-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 bebdd6aaf9a116598d6b77913bb1c54045f64a8ce04331d4db8ae3d20ad57ee1
MD5 e7911f72f7f1ddaa83d81124653f61fb
BLAKE2b-256 a5d4e541649d2e074e05725f921c2c5268cf178b26f161ed6b3f9f97a457932d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: featurelib-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0feacc96ab06a1e78c8273b1a54c75e69481f2980dc0299a3acf88da13ab7015
MD5 dd43421f02a2d62de241a2f404ea754e
BLAKE2b-256 c2641ad69b248ba47791a3110978a2ba13fde596b77fe5ebc699bd5a542fe262

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