amochka 0.1.9__tar.gz → 0.3.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.
- {amochka-0.1.9 → amochka-0.3.0}/PKG-INFO +5 -3
- amochka-0.3.0/amochka/__init__.py +28 -0
- amochka-0.3.0/amochka/client.py +1375 -0
- amochka-0.3.0/amochka/etl.py +302 -0
- {amochka-0.1.9/amochka → amochka-0.3.0}/amochka.egg-info/PKG-INFO +5 -3
- amochka-0.3.0/amochka.egg-info/SOURCES.txt +18 -0
- amochka-0.3.0/amochka.egg-info/requires.txt +4 -0
- amochka-0.3.0/amochka.egg-info/top_level.txt +2 -0
- amochka-0.3.0/etl/__init__.py +7 -0
- amochka-0.3.0/etl/config.py +236 -0
- amochka-0.3.0/etl/extractors.py +354 -0
- amochka-0.3.0/etl/loaders.py +813 -0
- amochka-0.3.0/etl/migrations/001_create_tables.sql +346 -0
- amochka-0.3.0/etl/run_etl.py +684 -0
- amochka-0.3.0/etl/transformers.py +470 -0
- {amochka-0.1.9 → amochka-0.3.0}/pyproject.toml +10 -7
- amochka-0.1.9/amochka/amochka.egg-info/SOURCES.txt +0 -8
- amochka-0.1.9/amochka/amochka.egg-info/requires.txt +0 -2
- amochka-0.1.9/amochka/amochka.egg-info/top_level.txt +0 -1
- {amochka-0.1.9 → amochka-0.3.0}/README.md +0 -0
- {amochka-0.1.9/amochka → amochka-0.3.0}/amochka.egg-info/dependency_links.txt +0 -0
- {amochka-0.1.9 → amochka-0.3.0}/setup.cfg +0 -0
- {amochka-0.1.9 → amochka-0.3.0}/tests/test_client.py +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: amochka
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Python library for working with amoCRM API
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: Python library for working with amoCRM API with ETL capabilities
|
|
5
5
|
Author-email: Timur <timurdt@gmail.com>
|
|
6
6
|
License: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/yourusername/amochka
|
|
8
8
|
Project-URL: Documentation, https://github.com/yourusername/amochka
|
|
9
9
|
Project-URL: Repository, https://github.com/yourusername/amochka
|
|
10
10
|
Project-URL: Bug Tracker, https://github.com/yourusername/amochka/issues
|
|
11
|
-
Keywords: amocrm,crm,api,client,automation
|
|
11
|
+
Keywords: amocrm,crm,api,client,automation,etl
|
|
12
12
|
Classifier: Development Status :: 4 - Beta
|
|
13
13
|
Classifier: Intended Audience :: Developers
|
|
14
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -27,6 +27,8 @@ Requires-Python: >=3.6
|
|
|
27
27
|
Description-Content-Type: text/markdown
|
|
28
28
|
Requires-Dist: requests>=2.25.0
|
|
29
29
|
Requires-Dist: ratelimit>=2.2.0
|
|
30
|
+
Requires-Dist: psycopg2-binary>=2.9.0
|
|
31
|
+
Requires-Dist: python-dotenv>=1.0.0
|
|
30
32
|
|
|
31
33
|
# amochka
|
|
32
34
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"""
|
|
2
|
+
amochka: Библиотека для работы с API amoCRM.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
__version__ = "0.2.0"
|
|
6
|
+
|
|
7
|
+
from .client import AmoCRMClient, CacheConfig
|
|
8
|
+
from .etl import (
|
|
9
|
+
write_ndjson,
|
|
10
|
+
export_leads_to_ndjson,
|
|
11
|
+
export_contacts_to_ndjson,
|
|
12
|
+
export_notes_to_ndjson,
|
|
13
|
+
export_events_to_ndjson,
|
|
14
|
+
export_users_to_ndjson,
|
|
15
|
+
export_pipelines_to_ndjson,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
"AmoCRMClient",
|
|
20
|
+
"CacheConfig",
|
|
21
|
+
"write_ndjson",
|
|
22
|
+
"export_leads_to_ndjson",
|
|
23
|
+
"export_contacts_to_ndjson",
|
|
24
|
+
"export_notes_to_ndjson",
|
|
25
|
+
"export_events_to_ndjson",
|
|
26
|
+
"export_users_to_ndjson",
|
|
27
|
+
"export_pipelines_to_ndjson",
|
|
28
|
+
]
|