{"id":28516019,"url":"https://github.com/keygen-sh/example-python-machine-activation","last_synced_at":"2025-07-17T15:36:29.057Z","repository":{"id":79006469,"uuid":"137154257","full_name":"keygen-sh/example-python-machine-activation","owner":"keygen-sh","description":"An example implementation of a node-locked license activation flow using Keygen and Python","archived":false,"fork":false,"pushed_at":"2023-11-21T14:47:03.000Z","size":10,"stargazers_count":23,"open_issues_count":0,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-05T17:33:38.383Z","etag":null,"topics":["code-sample","license-activation","license-keys","platform-example","software-licensing"],"latest_commit_sha":null,"homepage":"https://keygen.sh","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keygen-sh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-06-13T02:52:55.000Z","updated_at":"2025-06-13T09:06:10.000Z","dependencies_parsed_at":"2025-07-05T17:30:54.419Z","dependency_job_id":"5d1a952f-8c3f-4371-8579-6b2a2a8a646b","html_url":"https://github.com/keygen-sh/example-python-machine-activation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/keygen-sh/example-python-machine-activation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygen-sh%2Fexample-python-machine-activation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygen-sh%2Fexample-python-machine-activation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygen-sh%2Fexample-python-machine-activation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygen-sh%2Fexample-python-machine-activation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keygen-sh","download_url":"https://codeload.github.com/keygen-sh/example-python-machine-activation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keygen-sh%2Fexample-python-machine-activation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265623240,"owners_count":23800128,"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":["code-sample","license-activation","license-keys","platform-example","software-licensing"],"created_at":"2025-06-09T03:31:44.592Z","updated_at":"2025-07-17T15:36:29.035Z","avatar_url":"https://github.com/keygen-sh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example Machine Activation\n\nThis is an example of a typical machine activation flow written in Python.\nYou may of course choose to implement a different flow if required - this\nonly serves as an example implementation.\n\n## Running the example\n\nFirst up, configure a few environment variables:\n\n```bash\n# Your Keygen account ID. Find yours at https://app.keygen.sh/settings.\nexport KEYGEN_ACCOUNT_ID=\"YOUR_KEYGEN_ACCOUNT_ID\"\n```\n\nYou can either run each line above within your terminal session before\nstarting the app, or you can add the above contents to your `~/.bashrc`\nfile and then run `source ~/.bashrc` after saving the file.\n\nNext, install dependencies with [`pip`](https://packaging.python.org/):\n\n```\npython3 -m pip install -r requirements.txt\n```\n\n## Activating a machine\n\nTo perform a machine activation, run the script and supply a license key:\n\n```\npython3 main.py some-license-key-here\n```\n\nThe script will use a SHA256-HMAC of your device's [machineid](https://github.com/keygen-sh/py-machineid)\nfor the machine's fingerprint.\n\n## Questions?\n\nReach out at [support@keygen.sh](mailto:support@keygen.sh) if you have any\nquestions or concerns!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeygen-sh%2Fexample-python-machine-activation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeygen-sh%2Fexample-python-machine-activation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeygen-sh%2Fexample-python-machine-activation/lists"}