| Name | certy JSON |
| Version |
0.2.0
JSON |
| download |
| home_page | None |
| Summary | Certy is a simple X509 certificate generator for unit and integration tests. |
| upload_time | 2024-10-26 09:12:31 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.9 |
| license | None |
| keywords |
testing
certificates
x509
pki
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
|
# python-certy

## Description
Certy provides a simple API for creating X509 certificates and certificate revocation lists on demand when running unit tests.
No more storing test certificates and private keys in the repository!
Python-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.
## Example
```python
from certy import Credential
ca = Credential().subject("CN=ca")
ca.write_certificates_as_pem("ca.pem")
cred = Credential().subject("CN=server").issuer(ca)
cred.write_certificates_as_pem("cert.pem")
cred.write_private_key_as_pem("key.pem")
```
## Documentation
The latest documentation is available [here](https://tsaarni.github.io/python-certy/).
See also [tests](tests) for more examples.
## Installation
Install certy from [PyPI](https://pypi.org/project/certy/):
```bash
pip install certy
```
## Development
Create virtual environment by running `python3 -m venv .venv`, then activate it `source .venv/bin/activate`.
Install dependencies by running `pip install -r dev-requirements.txt`.
Run tests with `pytest`.
To find out coverage of tests, execute `coverage run -m pytest` and then `coverage html`.
The coverage report is generated to `htmlcov/index.html`.
Run `make html` on `docs` directory to generate documentation.
Open `docs/_build/html/index.html` to view the generated documentation.
Raw data
{
"_id": null,
"home_page": null,
"name": "certy",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "testing, certificates, x509, pki",
"author": null,
"author_email": "Tero Saarni <tero.saarni@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/83/4e/271badd633146131b4389d71eb87104be0e26be23b326170697918acad47/certy-0.2.0.tar.gz",
"platform": null,
"description": "# python-certy\n\n\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 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",
"bugtrack_url": null,
"license": null,
"summary": "Certy is a simple X509 certificate generator for unit and integration tests.",
"version": "0.2.0",
"project_urls": {
"Documentation": "https://tsaarni.github.io/python-certy/",
"Source": "https://github.com/tsaarni/python-certy"
},
"split_keywords": [
"testing",
" certificates",
" x509",
" pki"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "3b2c5b9fa685b58851e6777d109c24a227c85bac7863b94c14d2857d6c80b5c2",
"md5": "ffd1cf1210330f9f45393228af401353",
"sha256": "8f376604d1a83ce07c0587b341f4f66a48cba7bc64a69d2eff33e8878334763f"
},
"downloads": -1,
"filename": "certy-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ffd1cf1210330f9f45393228af401353",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 13378,
"upload_time": "2024-10-26T09:12:29",
"upload_time_iso_8601": "2024-10-26T09:12:29.503208Z",
"url": "https://files.pythonhosted.org/packages/3b/2c/5b9fa685b58851e6777d109c24a227c85bac7863b94c14d2857d6c80b5c2/certy-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "834e271badd633146131b4389d71eb87104be0e26be23b326170697918acad47",
"md5": "39d35eaec4808d8333ba3d9a474916c9",
"sha256": "b66a6365c300b1a8fe842fed8616599060262fe15a7fcd6b49e80c1a1fe259dd"
},
"downloads": -1,
"filename": "certy-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "39d35eaec4808d8333ba3d9a474916c9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 18099,
"upload_time": "2024-10-26T09:12:31",
"upload_time_iso_8601": "2024-10-26T09:12:31.227724Z",
"url": "https://files.pythonhosted.org/packages/83/4e/271badd633146131b4389d71eb87104be0e26be23b326170697918acad47/certy-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-26 09:12:31",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tsaarni",
"github_project": "python-certy",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "certy"
}