Namex is a Python utility that helps package developers define and manage their public API surface, primarily by simplifying the construction of the `__all__` attribute in `__init__.py`. It prevents accidental exposure of internal details and ensures a consistent public interface. The current version is 0.1.0, and it is likely to see active development with potential for API evolution.
pip install namexVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to set up `namex` in a package's `__init__.py` to define its public API. It imports `Config` and `get_api`, then configures which modules to scan and which specific symbols to exclude. The resulting `__all__` ensures only specified public members are exposed.
Consult the latest documentation and release notes for updates when upgrading. Pin your version for production environments.
Thoroughly review the generated `__all__` content and adhere strictly to naming conventions and explicit configuration rules within your package.
Use Namex as the sole authority for managing your package's `__all__` attribute within its scope to ensure consistent and predictable API definition.
No dependency data recorded yet.