Skip to main content

@public decorator, public(*objects) function - add objects names to __all__

Project description

['.. README generated with readmemako.py (github.com/russianidiot/readme-mako.py) and .README dotfiles (github.com/russianidiot-dotfiles/.README)', '.. image:: https://img.shields.io/badge/Language-Python-blue.svg?style=plastic', ':target: none', '.. image:: https://img.shields.io/pypi/pyversions/public.svg', ':target: https://pypi.org/pypi/public', '.. image:: https://img.shields.io/pypi/v/public.svg', ':target: https://pypi.org/pypi/public', '|', '.. image:: https://api.codacy.com/project/badge/Grade/535736e5a8d148369e9bc237238b3831', ':target: https://www.codacy.com/app/russianidiot/public-py', '.. image:: https://codeclimate.com/github/russianidiot/public.py/badges/gpa.svg', ':target: https://codeclimate.com/github/russianidiot/public.py', '.. image:: https://landscape.io/github/russianidiot/public.py/master/landscape.svg?style=flat', ':target: https://landscape.io/github/russianidiot/public.py', '.. image:: https://scrutinizer-ci.com/g/russianidiot/public.py/badges/quality-score.png?b=master', ':target: https://scrutinizer-ci.com/g/russianidiot/public.py/', '|', '.. image:: https://scrutinizer-ci.com/g/russianidiot/public.py/badges/build.png?b=master', ':target: https://scrutinizer-ci.com/g/russianidiot/public.py/', '.. image:: https://semaphoreci.com/api/v1/russianidiot/public-py/branches/master/badge.svg', ':target: https://semaphoreci.com/russianidiot/public-py', '.. image:: https://api.travis-ci.org/russianidiot/public.py.svg?branch=master', ':target: https://travis-ci.org/russianidiot/public.py/', '.. image:: https://app.wercker.com/status/f9a3b6fa3f83012adafea514154b8b37/s/master', ':target: https://app.wercker.com/russianidiot/public.py', 'Install', '```````', '.. code:: bash', '`[sudo] pip install public`', 'Usage', '`````', '.. code:: python', '>>> from public import public', '>>> @public # decorator', '>>> public(*objects) # function', 'Examples', '````````', '.. code:: python', '>>> @public', 'def func(): pass', '>>> @public', 'class CLS: pass', '>>> print(__all__)', "['CLS',func']", '# public(*objects) function', '>>> public("name")', '>>> public("name1","name2")', '>>> print(__all__)', "['name','name1','name2']", 'Feedback |github_follow| |github_issues|', '.. |github_follow| image:: https://img.shields.io/github/followers/russianidiot.svg?style=social&label=Follow', ':target: https://github.com/russianidiot', '.. |github_issues| image:: https://img.shields.io/github/issues/russianidiot/public.py.svg', ':target: https://github.com/russianidiot/public.py/issues']

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

public-0.0.43.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file public-0.0.43.tar.gz.

File metadata

  • Download URL: public-0.0.43.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for public-0.0.43.tar.gz
Algorithm Hash digest
SHA256 8a1b0817977e8326a5612527230b3df6c7cc7f3571fde5fb8d52a9d9799c45a4
MD5 12afc6ed59c89504321e138d2e6d4ca0
BLAKE2b-256 f0d75b29ae2221735caa31ae1b245ba38fa9e4b00e9408bd2bf6126ee4840698

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page