export
Control module exports
About
This library dynamically generates an __all__ attribute for modules
Install
pip install export
Usage
Private by Default
Does export objects marked public, doesn't export everything else
# lib.py
import export
export.init(default=export.PRIVATE)
@export.public
def foo():
pass
def bar():
pass
def baz():
pass
>>> import lib
>>>
>>> lib.__all__
['foo']
Public by Default
Doesn't export objects marked private, does export everything else
# lib.py
import export
export.init(default=export.PUBLIC)
def foo():
pass
@export.private
def bar():
pass
@export.private
def baz():
pass
>>> import lib
>>>
>>> lib.__all__
['export', 'foo']
Release files for export 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| export-0.2.1.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| export-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / export-0.2.1.tar.gz
| Download URL | export-0.2.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b206d7c6cb2246781321bc30394bf1364496fdfc1d1ea69cfe67da6d67095a7e
|
|
BLAKE2b-256 checksum How to use checksums |
9c4e6e9b2a1594d00b138ea8f51007ad73ab646c42f4694b12a0395576d9b9f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.10.6 Linux/5.15.0-73-generic
|
Release files / export-0.2.1-py3-none-any.whl
| Download URL | export-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
223ea74ae90715f56c3009e4cf19c8289b92ab56a3a0a8a00c5cf31e464f58f7
|
|
BLAKE2b-256 checksum How to use checksums |
5b7d1712bd54b282d4e0bef5a7dd08a1211609311c9cfefca979c7123d9eaed1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.10.6 Linux/5.15.0-73-generic
|