podpislon-sdk 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. podpislon_sdk-1.0.0/.gitignore +83 -0
  2. podpislon_sdk-1.0.0/CHANGELOG.md +25 -0
  3. podpislon_sdk-1.0.0/LICENSE +32 -0
  4. podpislon_sdk-1.0.0/PKG-INFO +729 -0
  5. podpislon_sdk-1.0.0/README.md +650 -0
  6. podpislon_sdk-1.0.0/pyproject.toml +125 -0
  7. podpislon_sdk-1.0.0/src/podpislon/__init__.py +106 -0
  8. podpislon_sdk-1.0.0/src/podpislon/_transport.py +280 -0
  9. podpislon_sdk-1.0.0/src/podpislon/_utils.py +142 -0
  10. podpislon_sdk-1.0.0/src/podpislon/_version.py +24 -0
  11. podpislon_sdk-1.0.0/src/podpislon/client.py +145 -0
  12. podpislon_sdk-1.0.0/src/podpislon/enums.py +46 -0
  13. podpislon_sdk-1.0.0/src/podpislon/exceptions.py +169 -0
  14. podpislon_sdk-1.0.0/src/podpislon/models/__init__.py +36 -0
  15. podpislon_sdk-1.0.0/src/podpislon/models/common.py +58 -0
  16. podpislon_sdk-1.0.0/src/podpislon/models/company.py +36 -0
  17. podpislon_sdk-1.0.0/src/podpislon/models/contact.py +33 -0
  18. podpislon_sdk-1.0.0/src/podpislon/models/document.py +116 -0
  19. podpislon_sdk-1.0.0/src/podpislon/models/payment.py +30 -0
  20. podpislon_sdk-1.0.0/src/podpislon/models/webhook.py +59 -0
  21. podpislon_sdk-1.0.0/src/podpislon/py.typed +0 -0
  22. podpislon_sdk-1.0.0/src/podpislon/resources/__init__.py +7 -0
  23. podpislon_sdk-1.0.0/src/podpislon/resources/_base.py +49 -0
  24. podpislon_sdk-1.0.0/src/podpislon/resources/company.py +27 -0
  25. podpislon_sdk-1.0.0/src/podpislon/resources/documents.py +362 -0
  26. podpislon_sdk-1.0.0/src/podpislon/resources/payments.py +19 -0
  27. podpislon_sdk-1.0.0/src/podpislon/webhooks/__init__.py +6 -0
  28. podpislon_sdk-1.0.0/src/podpislon/webhooks/handler.py +204 -0
  29. podpislon_sdk-1.0.0/src/podpislon/webhooks/parser.py +79 -0
@@ -0,0 +1,83 @@
1
+ # Project-specific
2
+ /.idea
3
+ /.claude
4
+ .spec.yaml
5
+
6
+ # Auto-generated version file (created by hatch-vcs at build time)
7
+ src/podpislon/_version.py
8
+
9
+ # Byte-compiled / optimized / DLL files
10
+ __pycache__/
11
+ *.py[cod]
12
+ *$py.class
13
+
14
+ # Distribution / packaging
15
+ .Python
16
+ build/
17
+ develop-eggs/
18
+ dist/
19
+ downloads/
20
+ eggs/
21
+ .eggs/
22
+ lib/
23
+ lib64/
24
+ parts/
25
+ sdist/
26
+ var/
27
+ wheels/
28
+ share/python-wheels/
29
+ *.egg-info/
30
+ .installed.cfg
31
+ *.egg
32
+ MANIFEST
33
+
34
+ # PyInstaller
35
+ *.manifest
36
+ *.spec
37
+
38
+ # Installer logs
39
+ pip-log.txt
40
+ pip-delete-this-directory.txt
41
+
42
+ # Unit test / coverage reports
43
+ htmlcov/
44
+ .tox/
45
+ .nox/
46
+ .coverage
47
+ .coverage.*
48
+ .cache
49
+ nosetests.xml
50
+ coverage.xml
51
+ *.cover
52
+ *.py,cover
53
+ .hypothesis/
54
+ .pytest_cache/
55
+ cover/
56
+
57
+ # Translations
58
+ *.mo
59
+ *.pot
60
+
61
+ # Environments
62
+ .env
63
+ .venv
64
+ env/
65
+ venv/
66
+ ENV/
67
+ env.bak/
68
+ venv.bak/
69
+
70
+ # Type checkers
71
+ .mypy_cache/
72
+ .dmypy.json
73
+ dmypy.json
74
+ .pyre/
75
+ .pytype/
76
+ .ruff_cache/
77
+
78
+ # IDEs
79
+ .vscode/
80
+ *.swp
81
+ *.swo
82
+ *~
83
+ .DS_Store
@@ -0,0 +1,25 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ Versions are derived automatically from git tags (`vX.Y.Z`) using `hatch-vcs`.
9
+
10
+ ## [Unreleased]
11
+
12
+ ### Added
13
+ - First public release of the unofficial async Python SDK for Podpislon.
14
+ - `PodpislonClient` async client with resource accessors:
15
+ - `client.documents` — list / add / get-file / resend / delete
16
+ - `client.company` — get-info
17
+ - `client.payments` — list-systems
18
+ - Pydantic v2 models for all API entities (Document, Contact, Company, Payment, …).
19
+ - Built-in client-side rate limiter (4 RPS per key, matches the API limit).
20
+ - Configurable retries for `429` and `5xx` responses with exponential backoff.
21
+ - Async iteration helper `client.documents.iter_all()` for paginated document listing.
22
+ - Webhook handler with type-safe event dispatch (`DOCUMENT_OPENED`,
23
+ `DOCUMENT_SIGNED`, `CLIENT_DATA_REQUEST_SUBMITTED`).
24
+ - FastAPI integration helper for receiving webhooks.
25
+ - Examples for FastAPI and aiogram bots.
@@ -0,0 +1,32 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Nikita Belan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ DISCLAIMER
26
+
27
+ This project (`podpislon-sdk`) is an UNOFFICIAL, community-maintained Python
28
+ SDK. It is NOT affiliated with, endorsed by, sponsored by, or in any way
29
+ officially connected with the company that operates https://podpislon.ru or
30
+ its affiliates. All product names, logos, trademarks and registered
31
+ trademarks are property of their respective owners. Use of these names,
32
+ logos, and brands does not imply endorsement.