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

```bash
pip install contrib-extension
```

Use

```python
"""   
    - 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"
"""
import contrib-extension as 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.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.1908252311rc0

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.1908252311rc0
File Size Uploaded
contrib-extension-0.0.1.1908252311rc0.tar.gz 4.8 kB Details

Built distribution (wheel)

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

Total release size: 10.6 kB

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

Download URL contrib-extension-0.0.1.1908252311rc0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
16ce554b83572b90e10a81c5ac92820c672a6d91b45730c273884fe4a8fec5a0
BLAKE2b-256 checksum
How to use checksums
1c77409c81688c0dbabe7b1f8e804bbeb206f401abe57216ef0247de130b4680
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.1908252311rc0-py3-none-any.whl

Download URL contrib_extension-0.0.1.1908252311rc0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7a9c82fa15c1b82954627ae23cd6b60d3c6ff76bc353db325ca71fad05375ea
BLAKE2b-256 checksum
How to use checksums
6eebd6dc879855ae5f55a8627f199e0aa2ca0653fadceaadc8b09ad64263c75c
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