# irma-shared
irma-shared is a collection of objects and well-known values used by
[IRMA](https://github.com/quarkslab/irma) and required to communicate with its
API.
*irma-shared is not a project in itself and is only meant to be used as a
dependency*
```python
import requests
import sys
from irma.shared.schemas.v2 import ScanSchema
from irma.shared.csts import IrmaScanStatus
scanid = "9e21108a-3552-4309-af39-684c32664391"
r = requests.get("http://172.16.1.30/api/v2/scans/" + scanid)
scan = ScanSchema().loads(r.text)
assert scan.id == scanid
if scan.status >= IrmaScanStatus.finished:
print("Scan finished", file=sys.stderr)
else:
print("Scan in progress", file=sys.stderr)
```
## Work in progress
- Use a stable version of marshmallow
- Complete unit tests
## Get it now
```console
$ pip install irma-shared
```
## Documentation
None for now
## Requirements
- python >= 3.5
- marshmallow >= 3.0.0
Requirements are exhaustively listed in
[setup.py](https://github.com/quarkslab/irma-shared/setup.py)
## Authors
irma-shared is developed by the IRMA development team at
[Quarkslab](https://quarkslab.com); mail: irma-dev AT quarkslab DOT com.
## Project links
- IRMA: https://github.com/quarkslab/irma/
- Documentation: None
- PyPI: https://pypi.org/project/irma-shared/
- Issues: https://github.com/quarkslab/irma-shared/issues/
## License
APACHE v2 licensed. See the attached
[LICENSE](https://github.com/quarkslab/irma-shared/LICENSE)
Python库 | irma-shared-2.1.1b1.tar.gz
版权申诉
60 浏览量
2022-04-10
02:03:28
上传
评论
收藏 7KB GZ 举报
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
最新资源
- python-leetcode面试题解之第157题用Read4读取N个字符-题解.zip
- python-leetcode面试题解之第156题上下翻转二叉树-题解.zip
- python-leetcode面试题解之第155题最小栈-题解.zip
- python-leetcode面试题解之第153题寻找旋转排序数组中的最小值-题解.zip
- python-leetcode面试题解之第152题乘积最大子数组-题解.zip
- python-leetcode面试题解之第151题反转字符串中的单词-题解.zip
- python-leetcode面试题解之第150题逆波兰表达式求值-题解.zip
- python-leetcode面试题解之第149题直线上最多的点数-题解.zip
- python-leetcode面试题解之第148题排序链表-题解.zip
- python-leetcode面试题解之第147题对链表进行插入排序-题解.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈