cert-core-3.0.0b1
توضیحات
Blockcerts core models for python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cert-core-3.0.0b1 |
| نام | cert-core |
| نسخه کتابخانه | 3.0.0b1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | info@blockcerts.org |
| ایمیل نویسنده | info@blockcerts.org |
| آدرس صفحه اصلی | https://github.com/blockchain-certificates/cert-core |
| آدرس اینترنتی | https://pypi.org/project/cert-core/ |
| مجوز | MIT |
[](https://travis-ci.org/blockchain-certificates/cert-core)
[](https://badge.fury.io/py/cert-core)
# cert-core
This python library contains common Blockcerts models and accessors used by other Blockcerts python libraries.
Subpackages:
## cert-model
Parses different versions of Blockcerts JSON files into a common Certificate model.
## cert-store
Blockchain certificate storage. This is used as a library in the cert-viewer project.
The certificate storage interface is [simplekv](https://pypi.python.org/pypi/simplekv/). The default configurations
use the FilesystemStore, which is highly recommended if you are getting started. This makes it easier to issue,
copy, and view your Blockchain Certificates.
## Certificate Storage Configuration
The certificate storage location can be modified with the following configuration entries in your `conf.ini` file:
- `cert_store_type`: which key-value backing store to use. Current supported values are:
- `simplekv_fs`: (Default) file system store
- `simplekv_gridfs`: (Advanced) gridfs store
- `cert_store_path`: file system path if using `simplekv_fs`
- `mongodb_uri`: mongo db uri (including db name) if using `simplekv_gridfs`
Example File System config:
```
cert_store_type = simplekv_fs
cert_store_path = ./cert_data
```
Example GridFS config (Advanced):
```
cert_store_type = simplekv_gridfs
mongodb_uri = mongodb://localhost:27017/test
```
### Legacy options
**Warning**
Most users should ignore these instructions, which are only included as a temporary bridge for earlier users of blockcerts. We recommend migrating to the latest version of Blockcerts.
### V1 Aware Certificate Store
Warning: avoid this option unless you are sure you need it. Earlier versions of the Blockchain Certificate
required a separate storage of the certificate transaction id. That was managed in a `certificates` mongo db table.
The `--v1_aware` flag allows support for these certificates.
## Running the python code locally
1. Ensure you have an python environment. [Recommendations](https://github.com/blockchain-certificates/cert-issuer/blob/master/docs/virtualenv.md)
2. Git clone the repository and change to the directory
```bash
git clone https://github.com/blockchain-certificates/cert-core.git && cd cert-core
```
3. Run cert-core setup
```bash
pip install .
```
## Unit tests
This project uses tox to validate against several python environments.
1. Ensure you have an python environment. [Recommendations](https://github.com/blockchain-certificates/cert-issuer/blob/master/docs/virtualenv.md)
2. Run tests
```
./run_tests.sh
```
## Publishing package to pypi
- [First time info](http://peterdowns.com/posts/first-time-with-pypi.html)
- Publish script: `./release_package.sh`
## Contact
Contact us at [the Blockcerts community forum](http://community.blockcerts.org/).
نیازمندی
| مقدار | نام |
|---|---|
| >=2.18.4 | requests |
| >=2.1.5 | cert-schema |
| >=0.12.0 | configargparse |
| >=1.1.14 | connexion |
| >=0.5.1 | Flask-PyMongo |
| >=2.6.0 | jsonschema |
| >=2.6.1 | python-dateutil |
| >=2017.2 | pytz |
| >=0.10.0 | simplekv |
| >=3.0.0 | tox |
| >=0.12.1 | validators |
| >=1.1.6 | enum34 |
نحوه نصب
نصب پکیج whl cert-core-3.0.0b1:
pip install cert-core-3.0.0b1.whl
نصب پکیج tar.gz cert-core-3.0.0b1:
pip install cert-core-3.0.0b1.tar.gz