Name | certy JSON |
Version |
0.2.1
JSON |
| download |
home_page | None |
Summary | Certy is a simple X509 certificate generator for unit and integration tests. |
upload_time | 2024-11-03 14:48:30 |
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
![](https://github.com/tsaarni/python-certy/workflows/unit-tests/badge.svg)
## 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 build wheel, run `flit build` and check the generated wheel in `dist` directory.
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/4f/56/edd1733df2625a38536290c72d59ccaa31c3fb6e2fb8fc3f27a4fdd858c6/certy-0.2.1.tar.gz",
"platform": null,
"description": "# 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",
"bugtrack_url": null,
"license": null,
"summary": "Certy is a simple X509 certificate generator for unit and integration tests.",
"version": "0.2.1",
"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": "696f4df7bb25ac38fcd2b45f2f338139b99d469f41f7508ea861941178068e7f",
"md5": "53fa791add442ece5568418cdb56aff4",
"sha256": "5e63a175bc1c5070875c46657ee075fb0b79b1c8cfe99a2704196d81159fc8f5"
},
"downloads": -1,
"filename": "certy-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "53fa791add442ece5568418cdb56aff4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 13454,
"upload_time": "2024-11-03T14:48:29",
"upload_time_iso_8601": "2024-11-03T14:48:29.145203Z",
"url": "https://files.pythonhosted.org/packages/69/6f/4df7bb25ac38fcd2b45f2f338139b99d469f41f7508ea861941178068e7f/certy-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "4f56edd1733df2625a38536290c72d59ccaa31c3fb6e2fb8fc3f27a4fdd858c6",
"md5": "2c1c2d3044c8c83f7b5cd6ef9217a755",
"sha256": "e372b3fd78208b4168e46823e9a6749fcbc33da195148c3a8f4d2620dcfcf2ba"
},
"downloads": -1,
"filename": "certy-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "2c1c2d3044c8c83f7b5cd6ef9217a755",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 18326,
"upload_time": "2024-11-03T14:48:30",
"upload_time_iso_8601": "2024-11-03T14:48:30.907845Z",
"url": "https://files.pythonhosted.org/packages/4f/56/edd1733df2625a38536290c72d59ccaa31c3fb6e2fb8fc3f27a4fdd858c6/certy-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-03 14:48:30",
"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"
}