Metadata-Version: 2.1
Name: public
Version: 2.0.1
Summary: replace '__all__' with '@public.add' decorator
Home-page: https://github.com/looking-for-a-job/public.py
License: UNKNOWN
Keywords: public __all__
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Quality Assurance
Description-Content-Type: text/markdown
Requires-Dist: setuptools

[![](https://img.shields.io/pypi/pyversions/public.svg?longCache=True)](https://pypi.org/pypi/public/)

### Install
```bash
$ [sudo] pip install public
```

### Features
+   replace `__all__` with `@public.add` decorator

before
```python
__all__ = ["func"]

def func():
```
after
```python
import public

@public.add
def func():
```

### Examples
```python
>>> import public
>>> @public.add
    def func(): pass

>>> @public.add
    class Cls: pass

>>> print(__all__)
['Cls','func']

>>> public.add("name")
>>> public.add(*["name1","name2"])

>>> print(__all__)
['name','name1','name2']
```


test module `__all__`
```python
>>> import module
>>> public.test(module)
```

### Links
+   [Importing * From a Package. Python documentation](https://docs.python.org/3/tutorial/modules.html#importing-from-a-package)
+   [Can someone explain __all__ in Python? Stackoverflow](https://stackoverflow.com/questions/44834/can-someone-explain-all-in-python)

