Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

contrib extension

Introduction

자신이 직접 라이브러리를 구현할때 contrib 형태의 라이브러리 관리를 사용한다면 contrib extension 라이브러리는 자신의 라이브러리의 root에서 하위 라이브러리를 접근하는 데에 도움을 줄 수 있습니다.

If you use library management in the form of a content library when you implement your own library, the content extension library can help you access sub libraries from the root of your library.

Installation

pip install contrib-extension

Use

"""   
    - test
        - __init__.py
        - test.py # main
        - post.py
            - __category__ = "board"
            - __id__ = "post"
            - set(self) -> return "ok"
        - contrib
            - __init__.py
            - download.py 
            - __category__ = "board_ext"
            - __id__ = "download"
            - do(self) -> return "what?"
            - upload
            - __init__.py
                - __category__ = "board_ext"
                - __id__ = "upload"
            - upload.py
            - setting.py
                - __category__ = "board"
                - __id__ = "upload"
"""
from contrib_extension import Extension

class test:
    def __init__(self):
        self._ext_ = Extension(use_lib_name=test)
        print(self._ext_)
        """
        {
            "board_ext":{
                "download":<module>,
                "upload":<module>
            },
            "board":{
                "upload":<module>
            }
        }
        """
        self._ext_.importlib("post", False)
        print(self._ext_.get_info())
        """
        {
            "board_ext":{
                "download":<module>,
                "upload":<module>
            },
            "board":{
                "upload":<module>,
                "post":<module>
            }
        }
        """
        print(self._ext_)
        """
        {
            "board_ext":{
                "download":<module>,
                "upload":<module>
            },
            "board":{
                "upload":<module>,
                "post":<module>
            }
        }
        """

    def post(self, text):
        module = self._ext_.get_class("board","post")
        obj = module()
        print(obj.set())
        # ok

    def upload(self, data):
        module = self._ext_.get_class("board_ext","download")
        obj = module()
        print(obj.do())
        # what?

About

이 프로젝트는 다른 프로젝트에 도움을 주기 위해 진행되었습니다. 지속적으로 업데이트를 통해 좀 더 나은 형태로 나아가겠습니다. 더 좋은 아이디어가 있다면 언제든지 연락바랍니다.

This project was undertaken to help other projects. We'll continue to update and move on to a better shape. Feel free to contact me if you have a better idea.

Version

  • v0.0.1.1909230047-rc

    • 미작동 오류 해결(Fix Error)
  • v0.0.1.1908252311-rc

    • Private 프로젝트에서 분리(Detach from Private project)
    • 프로젝트 정리(Project theorem)

License

MIT 라이선스로 공개되었습니다.

Released under the MIT license.

Metadata

Release files for contrib-extension 0.0.1.1909230047rc0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for contrib-extension 0.0.1.1909230047rc0
File Size Uploaded
contrib-extension-0.0.1.1909230047rc0.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for contrib-extension 0.0.1.1909230047rc0
File Interpreter ABI Platform
contrib_extension-0.0.1.1909230047rc0-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 kB

Release files / contrib-extension-0.0.1.1909230047rc0.tar.gz

Download URL contrib-extension-0.0.1.1909230047rc0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9e49a8a1410de09b63082f14c42495bb111e76000dcbd36a39336f0e631a39dd
BLAKE2b-256 checksum
How to use checksums
23e1d2106e02a0ae79075fa2b5baa896f7a8b993a06cbac71fcf5c15d11fa5d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

Release files / contrib_extension-0.0.1.1909230047rc0-py3-none-any.whl

Download URL contrib_extension-0.0.1.1909230047rc0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f04b2da1904f6754fe6f2969260d6ddf098e6917b07283718968f5750a4cab6
BLAKE2b-256 checksum
How to use checksums
6bf40b0c7bab52032d722dab485530472218f305dc11e58a0b6c2dff6cffeeaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page