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

Uploaded Python 3

File details

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

File metadata

  • Download URL: featurelib-0.0.5.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

Hashes for featurelib-0.0.5.tar.gz
Algorithm Hash digest
SHA256 4dc5b09b7b385e860780be0da3dca2030e6a7c20f4acc316aa6c0d0891091649
MD5 8c62d9d1cb349288cc3cae79a3239171
BLAKE2b-256 18f075c277144990406eb24216a3598974e9bf7f07645d5f2707ebf995f957f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: featurelib-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cd299c83a148dfc1435b28965868e9a305852951f839427faa118bb628e8798d
MD5 6aca04e54df159dfde9ee9df2cc67983
BLAKE2b-256 043ae79bbb3998b62b70fa920542b9874fc1f1c3f1e7c0f61e372f74950bbeb7

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