Skip to main content

No project description provided

Project description

sphinx-expose-init-alias

Generate doc of exposed stuff in __init__.py as alias

What-Is-Wanted

We sometimes do "re-expose" in __init__.py to improve experience of using our library. Such as

# lib/a.py

def foo():
  ...

# lib/__init__.py

from .a import foo

But the foo in lib/__init__.py will only occur in docs when use sphinx.ext.autodoc if we put it in the __all__ in lib/__init__.py. And wrose thing is that the content is just like a stuff defined in lib/__init__.py, which is a bit confused and duplicated.

Usage

# docs/lib.rst

.. autoaliasmodule:: lib
  :members:

Project details


Download files

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

Source Distribution

sphinx_expose_init_alias-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

sphinx_expose_init_alias-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_expose_init_alias-0.1.1.tar.gz.

File metadata

File hashes

Hashes for sphinx_expose_init_alias-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0fb999cedde7441bcdd7a561a185adee1eef3e40fe480b2d6a456758f5bffee3
MD5 472cb6b8e883643fc200b35e54a3698d
BLAKE2b-256 d052838d71dddccf12c5f8471cf85ad232cb35584a558d851ae36df4ad667507

See more details on using hashes here.

File details

Details for the file sphinx_expose_init_alias-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_expose_init_alias-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 957a5e50eddae88adf895e2e3255a0f0b2b9a8301831edbb7b1958e1bede642b
MD5 a764daf2f9c93556aeb15790d3273350
BLAKE2b-256 730ce4d47501ac372268b116cde88b72d19c58a14e21a81559d2248c673e065f

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