-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python API docs not available #530
Comments
For me the examples don't even work:
In the meantime I'm using this: def ykman_main(*args):
"""
Helper function for ykman (yubikey manager)
"""
stdout = io.StringIO()
stderr = io.StringIO()
with contextlib.redirect_stderr(stderr):
with contextlib.redirect_stdout(stdout):
try:
ykman._cli.__main__.cli.main(args=args)
except SystemExit:
pass
return stdout.getvalue().splitlines(), stderr.getvalue().splitlines() Because the end-user documentation is at least clear to me. Please include this as an API and I think you'd help a lot of people. See also: #425 |
@dmarinuswoodwing I opened #532 as a dedicated issue for the non-working examples. |
API documentation is available at https://developers.yubico.com/yubikey-manager/API_Documentation/ There is certainly still room for improvement, but it's a lot better than it used to be! |
pip install yubikey-manager
(latest from PyPI)Steps to reproduce
Expected result
For a good developer experience it would be helpful to have a complete API documentation.
Actual results and logs
As a developer, I have to consult the source code, as an alternative, to understand how the Python package can be used.
Other info
Potential role model: Click documentation
The text was updated successfully, but these errors were encountered: