{"id":16883016,"url":"https://github.com/tsaarni/python-certy","last_synced_at":"2025-03-20T04:35:05.695Z","repository":{"id":170431830,"uuid":"646566624","full_name":"tsaarni/python-certy","owner":"tsaarni","description":"Python package for generating certificates for unit and integration tests.","archived":false,"fork":false,"pushed_at":"2023-10-31T06:05:09.000Z","size":2795,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-14T16:09:53.518Z","etag":null,"topics":["certificates","crl","pki","python","testing","x509"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsaarni.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}},"created_at":"2023-05-28T19:59:00.000Z","updated_at":"2023-10-31T07:39:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"16cf3533-8e6b-4acc-ba47-ce54d2b270f6","html_url":"https://github.com/tsaarni/python-certy","commit_stats":null,"previous_names":["tsaarni/python-certy"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsaarni%2Fpython-certy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsaarni%2Fpython-certy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsaarni%2Fpython-certy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsaarni%2Fpython-certy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsaarni","download_url":"https://codeload.github.com/tsaarni/python-certy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244553990,"owners_count":20471172,"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":["certificates","crl","pki","python","testing","x509"],"created_at":"2024-10-13T16:10:01.766Z","updated_at":"2025-03-20T04:35:05.672Z","avatar_url":"https://github.com/tsaarni.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-certy\n\n![](https://github.com/tsaarni/python-certy/workflows/unit-tests/badge.svg)\n\n## Description\n\nCerty provides a simple API for creating X509 certificates and certificate revocation lists on demand when running unit tests.\nNo more storing test certificates and private keys in the repository!\n\nPython-certy is a version of similar tool for command line and Golang called [certyaml](https://github.com/tsaarni/certyaml) and [java-certy](https://github.com/tsaarni/java-certy/) for Java.\n\n## Example\n\n```python\nfrom certy import Credential\n\nca = Credential().subject(\"CN=ca\")\nca.write_certificates_as_pem(\"ca.pem\")\n\ncred = Credential().subject(\"CN=server\").issuer(ca)\ncred.write_certificates_as_pem(\"cert.pem\")\ncred.write_private_key_as_pem(\"key.pem\")\n```\n\n## Documentation\n\nThe latest documentation is available [here](https://tsaarni.github.io/python-certy/).\nSee also [tests](tests) for more examples.\n\n## Installation\n\nInstall certy from [PyPI](https://pypi.org/project/certy/):\n\n```bash\npip install certy\n```\n\n## Development\n\nCreate virtual environment by running `python3 -m venv .venv`, then activate it `source .venv/bin/activate`.\nInstall dependencies by running `pip install -r dev-requirements.txt`.\nRun tests with `pytest`.\nTo build wheel, run `flit build` and check the generated wheel in `dist` directory.\nTo find out coverage of tests, execute `coverage run -m pytest` and then `coverage html`.\nThe coverage report is generated to `htmlcov/index.html`.\n\nRun `make html` on `docs` directory to generate documentation.\nOpen `docs/_build/html/index.html` to view the generated documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsaarni%2Fpython-certy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsaarni%2Fpython-certy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsaarni%2Fpython-certy/lists"}