https://github.com/updatehub/package-schema
UpdateHub Package Schema
https://github.com/updatehub/package-schema
json schema updatehub
Last synced: 11 months ago
JSON representation
UpdateHub Package Schema
- Host: GitHub
- URL: https://github.com/updatehub/package-schema
- Owner: UpdateHub
- License: mit
- Created: 2017-05-05T18:56:45.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-26T22:00:45.000Z (over 4 years ago)
- Last Synced: 2025-01-23T13:13:50.431Z (about 1 year ago)
- Topics: json, schema, updatehub
- Language: Shell
- Homepage:
- Size: 58.6 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README

[](https://pypi.python.org/pypi/package-schema/)
# updatehub-package-schema
UpdateHub package schema validator for Python
## Installing
pip install updatehub-package-schema
## Usage
Simply call `validate_metadata` with your package metadata as a Python
dict. `validate_metadata` will raise `pkgschema.ValidationError` if
something is wrong with your package, otherwise it will return `None`.
```python
from pkgschema import validate_metadata
metadata = {} # the package metadata must be a Python dict
validate_metadata(metadata)
```
## License
updatehub-package-schema is released under MIT license.