amochka 0.3.5__tar.gz → 0.4.1__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 (27) hide show
  1. {amochka-0.3.5 → amochka-0.4.1}/PKG-INFO +1 -1
  2. {amochka-0.3.5 → amochka-0.4.1}/amochka/__init__.py +17 -1
  3. {amochka-0.3.5 → amochka-0.4.1}/amochka/client.py +459 -146
  4. amochka-0.4.1/amochka/errors.py +49 -0
  5. {amochka-0.3.5 → amochka-0.4.1}/amochka.egg-info/PKG-INFO +1 -1
  6. {amochka-0.3.5 → amochka-0.4.1}/amochka.egg-info/SOURCES.txt +8 -1
  7. {amochka-0.3.5 → amochka-0.4.1}/pyproject.toml +1 -1
  8. amochka-0.4.1/tests/test_cache.py +87 -0
  9. {amochka-0.3.5 → amochka-0.4.1}/tests/test_client.py +1 -1
  10. amochka-0.4.1/tests/test_etl.py +34 -0
  11. amochka-0.4.1/tests/test_http.py +168 -0
  12. amochka-0.4.1/tests/test_notes_events.py +30 -0
  13. amochka-0.4.1/tests/test_security.py +179 -0
  14. amochka-0.4.1/tests/test_utils.py +89 -0
  15. {amochka-0.3.5 → amochka-0.4.1}/README.md +0 -0
  16. {amochka-0.3.5 → amochka-0.4.1}/amochka/etl.py +0 -0
  17. {amochka-0.3.5 → amochka-0.4.1}/amochka.egg-info/dependency_links.txt +0 -0
  18. {amochka-0.3.5 → amochka-0.4.1}/amochka.egg-info/requires.txt +0 -0
  19. {amochka-0.3.5 → amochka-0.4.1}/amochka.egg-info/top_level.txt +0 -0
  20. {amochka-0.3.5 → amochka-0.4.1}/etl/__init__.py +0 -0
  21. {amochka-0.3.5 → amochka-0.4.1}/etl/config.py +0 -0
  22. {amochka-0.3.5 → amochka-0.4.1}/etl/extractors.py +0 -0
  23. {amochka-0.3.5 → amochka-0.4.1}/etl/loaders.py +0 -0
  24. {amochka-0.3.5 → amochka-0.4.1}/etl/migrations/001_create_tables.sql +0 -0
  25. {amochka-0.3.5 → amochka-0.4.1}/etl/run_etl.py +0 -0
  26. {amochka-0.3.5 → amochka-0.4.1}/etl/transformers.py +0 -0
  27. {amochka-0.3.5 → amochka-0.4.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amochka
3
- Version: 0.3.5
3
+ Version: 0.4.1
4
4
  Summary: Python library for working with amoCRM API with ETL capabilities
5
5
  Author-email: Timur <timurdt@gmail.com>
6
6
  License: MIT
@@ -2,9 +2,17 @@
2
2
  amochka: Библиотека для работы с API amoCRM.
3
3
  """
4
4
 
5
- __version__ = "0.2.0"
5
+ __version__ = "0.4.1"
6
6
 
7
7
  from .client import AmoCRMClient, CacheConfig
8
+ from .errors import (
9
+ AmoCRMError,
10
+ APIError,
11
+ AuthenticationError,
12
+ NotFoundError,
13
+ RateLimitError,
14
+ ValidationError,
15
+ )
8
16
  from .etl import (
9
17
  write_ndjson,
10
18
  export_leads_to_ndjson,
@@ -18,6 +26,14 @@ from .etl import (
18
26
  __all__ = [
19
27
  "AmoCRMClient",
20
28
  "CacheConfig",
29
+ # Exceptions
30
+ "AmoCRMError",
31
+ "APIError",
32
+ "AuthenticationError",
33
+ "NotFoundError",
34
+ "RateLimitError",
35
+ "ValidationError",
36
+ # ETL functions
21
37
  "write_ndjson",
22
38
  "export_leads_to_ndjson",
23
39
  "export_contacts_to_ndjson",