Skip to main content

@public decorator and public(*objects) function for add object names to __all__

Project description

https://img.shields.io/pypi/v/public.svg https://img.shields.io/pypi/pyversions/public.svg https://img.shields.io/pypi/dm/public.svg

Install

github.com: pip install git+git://github.com/russianidiot/public.py.git

pypi.python.org: pip install public

download: python setup.py install && [ -e requirements.txt ] && pip install -r requirements.txt

Usage

@public decorator

public(*objects) function

from public import *

public("name")

print(__all__)
>>> ['name']

public("name1","name2")

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

Feedback

github_issues - Github Issues

gitter - Chat with me (english/russian)

russianidiot.github.io/python/ - my Python packages

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.12.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

public-0.0.12-py2.7.egg (5.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for public-0.0.12.tar.gz
Algorithm Hash digest
SHA256 0f1b1d7fddf4493a1d70cf03fd28f828cf68f97bbeb9658b3d442210cd333bbb
MD5 fd4ee07442be6c4539ebed02f123cc1f
BLAKE2b-256 94e6fbe601d5ab14f130cca238bac60b224eb5b2b7dc5cae392193f2b15622fb

See more details on using hashes here.

File details

Details for the file public-0.0.12-py2.7.egg.

File metadata

  • Download URL: public-0.0.12-py2.7.egg
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for public-0.0.12-py2.7.egg
Algorithm Hash digest
SHA256 4ae2bfd3f74ff7d1c36cf82992a624a99f103a6a61a4f5838d45a88e48d99c05
MD5 2724f131b4a88f9a8a2d65be193f6c67
BLAKE2b-256 e35badc4ea1c5a0cb3c076b01787736d0748a41b65cef932b6fb1a90c74569b8

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