{"id":22253519,"url":"https://github.com/nitrokey/pynitrokey","last_synced_at":"2026-01-22T15:23:32.027Z","repository":{"id":37478267,"uuid":"178032372","full_name":"Nitrokey/pynitrokey","owner":"Nitrokey","description":"Python client for Nitrokey devices","archived":false,"fork":false,"pushed_at":"2025-05-12T10:50:12.000Z","size":3162,"stargazers_count":108,"open_issues_count":88,"forks_count":30,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-13T04:07:24.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nitrokey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSES/Apache-2.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-03-27T16:21:14.000Z","updated_at":"2025-05-07T12:09:34.000Z","dependencies_parsed_at":"2024-01-26T15:26:59.805Z","dependency_job_id":"57749eb8-70cf-40da-9aab-3232fa5fb0b2","html_url":"https://github.com/Nitrokey/pynitrokey","commit_stats":{"total_commits":721,"total_committers":18,"mean_commits":40.05555555555556,"dds":0.6560332871012482,"last_synced_commit":"36f049a783fdc8f84efa9c6d7029029281ea6c13"},"previous_names":[],"tags_count":89,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitrokey%2Fpynitrokey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitrokey%2Fpynitrokey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitrokey%2Fpynitrokey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitrokey%2Fpynitrokey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nitrokey","download_url":"https://codeload.github.com/Nitrokey/pynitrokey/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254509476,"owners_count":22082891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T07:18:46.206Z","updated_at":"2026-01-22T15:23:32.022Z","avatar_url":"https://github.com/Nitrokey.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nCopyright Nitrokey GmbH\nSPDX-License-Identifier: Apache-2.0 OR MIT\n--\u003e\n\n# pynitrokey\n\nA command line interface for the Nitrokey FIDO2, Nitrokey Start, Nitrokey 3 and NetHSM.\n\n## Quickstart\n\n```\n$ pipx install pynitrokey\n$ nitropy --help\n```\n\n## Documentation\n\nThe user documentation for the `nitropy` CLI is available on [docs.nitrokey.com](https://docs.nitrokey.com/software/nitropy/index.html). See also the product documentation for more information on the available commands:\n- [Nitrokey 3](https://docs.nitrokey.com/nitrokey3/index.html)\n- [Nitrokey FIDO2](https://docs.nitrokey.com/fido2/index.html)\n- [Nitrokey Start](https://docs.nitrokey.com/start/index.html)\n- [NetHSM](https://docs.nitrokey.com/nethsm/index.html)\n\n### Switching Nitrokey Start identities\n\n#### Alternative MI switching method\n\n\u003cdetails\u003e\n\n`pynitrokey` installation is not always possible, hence describing below alternative method to change the Identity on the Nitrokey Start. It suffices to have any CCID application installed, and send the following APDU `00 85 00 {ID}` (hex), where `ID` is in range `[0;2]`. After receiving this command Nitrokey Start will reboot with the selected identity.\n\nHere is how to do it using GnuPG:\n```text\n# Setting ID to 2\n$ gpg-connect-agent --hex \"scd apdu  00 85 00 02\" /bye\nERR 65539 Unknown version in packet \u003cUnspecified source\u003e\n\n# Alternative error messsage\nERR 65572 Bad certificate \u003cUnspecified source\u003e\n```\n\nThe error message here is expected due to immediate reboot of the device, and with losing the connection.\n\nWhen the ID change is attempted to be done immediately, the following response could be received:\n```\nERR 100663406 Card removed \u003cSCD\u003e\n```\nTo restore the communication, either kill the `gpg-agent` or run `gpg --card-status` again.\n\nTip: alternative `gpg-connect-agent reloadagent /bye` is not sufficient.\n\u003c/details\u003e\n\n## Compatibility\n\n`nitropy` requires Python 3.10 or later.\n\n## Development\n\nInformation for developers and contributors can be found in the [Developer Guide](./docs/developer-guide.rst).\n\n## Contributors\n\n`pynitrokey` development has been supported by these contributors:\n- [@Laborratte5](https://github.com/Laborratte5)\n- [@runcom](https://github.com/runcom)\n\n## Maintainers\n\nCurrent maintainers can be found in [MAINTAINERS.md](MAINTAINERS.md) file.\n\n## License\n\npynitrokey is licensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](./LICENSES/Apache-2.0.txt) or\n  http://www.apache.org/licenses/LICENSE-2.0)\n- MIT license ([LICENSE-MIT](./LICENSES/MIT.txt) or http://opensource.org/licenses/MIT)\n\nat your option.\n\npynitrokey also contains code originating from these projects:\n- [gnuk](https://salsa.debian.org/gnuk-team/gnuk/gnuk) by NIIBE Yutaka, [GPL-3.0-or-later](./LICENSES/GPL-3.0-or-later.txt)\n- [libnitrokey](https://github.com/Nitrokey/libnitrokey) by Nitrokey GmbH, [LGPL-3.0-only](./LICENSES/LGPL-3.0-only.txt)\n- [solo1-cli](https://github.com/solokeys/solo1-cli) by SoloKeys Developers, [Apache-2.0](./LICENSES/Apache-2.0.txt) or [MIT](./LICENSES/MIT)\n\nFor more information, see the SDPX license headers in each file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrokey%2Fpynitrokey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitrokey%2Fpynitrokey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrokey%2Fpynitrokey/lists"}