Publication helps maintain public-api-friendly Python modules by preventing unintentional access to private implementation details via introspection. It's currently at version 0.0.3 and is an early-stage library with a focused purpose.
pip install publicationVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to use the `@publish` decorator to control the visibility of classes and their members to introspection tools. Note that `publication` affects discoverability, not direct access.
Understand that 'private' in this context means 'not discoverable by introspection', not 'inaccessible'.
Use proper security mechanisms (e.g., access control, authorization) for sensitive data or operations.
Ensure modules are loaded in a standard way. For dynamic scenarios, be aware that its effects might be inconsistent or absent.
Run `pip install publication` in your terminal to install the library.
Ensure you are importing `api` correctly based on the library's structure, typically `from publication import api` or `from publication.api import api`. If the error persists, verify the library's documentation for the correct import path.
Either ensure the attribute/method you are trying to access is part of the public API by decorating it with `@api` in its definition, or refactor your code to only interact with the publicly exposed API of the module.
No dependency data recorded yet.