-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
77 lines (72 loc) · 1.56 KB
/
__init__.py
File metadata and controls
77 lines (72 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
"""
Numbers Protocol Capture SDK - Python SDK for Numbers Protocol Capture API.
A developer-friendly SDK for registering and managing digital assets
with blockchain-backed provenance.
Example:
>>> from numbersprotocol_capture import Capture
>>> capture = Capture(token="your-api-token")
>>> asset = capture.register("./photo.jpg", caption="My photo")
>>> print(asset.nid)
"""
from . import verify
from .client import AsyncCapture, Capture
from .crypto import sha256, verify_signature
from .errors import (
AuthenticationError,
CaptureError,
InsufficientFundsError,
NetworkError,
NotFoundError,
PermissionError,
ValidationError,
)
from .types import (
Asset,
AssetSearchOptions,
AssetSearchResult,
AssetTree,
CaptureOptions,
Commit,
FileInput,
License,
NftRecord,
NftSearchResult,
RegisterOptions,
SignOptions,
SimilarMatch,
UpdateOptions,
)
__version__ = "0.2.1"
__all__ = [
# Main clients
"Capture",
"AsyncCapture",
# Types
"FileInput",
"CaptureOptions",
"RegisterOptions",
"UpdateOptions",
"SignOptions",
"Asset",
"Commit",
"AssetTree",
"License",
"AssetSearchOptions",
"AssetSearchResult",
"SimilarMatch",
"NftSearchResult",
"NftRecord",
# Errors
"CaptureError",
"AuthenticationError",
"PermissionError",
"NotFoundError",
"InsufficientFundsError",
"ValidationError",
"NetworkError",
# Utilities
"sha256",
"verify_signature",
# Verify Engine helpers
"verify",
]