Skip to content

Commit b19ec56

Browse files
author
Ben
authored
Merge pull request #1 from airflow-plugins/mailchimp_plugin
Initial commit
2 parents 44aca81 + b4bdd25 commit b19ec56

15 files changed

+415
-1
lines changed

.gitignore

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
*.log
55+
.static_storage/
56+
.media/
57+
local_settings.py
58+
59+
# Flask stuff:
60+
instance/
61+
.webassets-cache
62+
63+
# Scrapy stuff:
64+
.scrapy
65+
66+
# Sphinx documentation
67+
docs/_build/
68+
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# SageMath parsed files
82+
*.sage.py
83+
84+
# Environments
85+
.env
86+
.venv
87+
env/
88+
venv/
89+
ENV/
90+
env.bak/
91+
venv.bak/
92+
93+
# Spyder project settings
94+
.spyderproject
95+
.spyproject
96+
97+
# Rope project settings
98+
.ropeproject
99+
100+
# mkdocs documentation
101+
/site
102+
103+
# mypy
104+
.mypy_cache/

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ njson format. The parameters it can accept include the following.
1515

1616
- `mailchimp_conn_id`: The Airflow id used to store the Mailchimp credentials.
1717
- `mailchimp_resource`: The mailchimp resource we are fetching data from.
18-
- `mailchimp_args`: S3 connection id from Airflow.
18+
- `mailchimp_args`: Mailchimp extra args
19+
- `s3_conn_id`: S3 connection id from Airflow.
1920
- `s3_bucket`: The output s3 bucket.
2021
- `s3_key`: The input s3 key.
2122
- `s3_bucket`: The s3 bucket where the result should be stored

__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from airflow.plugins_manager import AirflowPlugin
2+
from mailchimp_plugin.operators.mailchimp_to_s3_operator import MailchimpToS3Operator
3+
from mailchimp_plugin.hooks.mailchimp_hook import MailchimpHook
4+
5+
6+
class mailchimp_plugin(AirflowPlugin):
7+
name = "mailchimp_plugin"
8+
operators = [MailchimpToS3Operator]
9+
hooks = [MailchimpHook]
10+
# Leave in for explicitness
11+
executors = []
12+
macros = []
13+
admin_views = []
14+
flask_blueprints = []
15+
menu_links = []

__init__.pyc

839 Bytes
Binary file not shown.

__pycache__/__init__.cpython-34.pyc

728 Bytes
Binary file not shown.

__pycache__/test.cpython-34.pyc

228 Bytes
Binary file not shown.

hooks/__init__.py

Whitespace-only changes.

hooks/__init__.pyc

158 Bytes
Binary file not shown.
154 Bytes
Binary file not shown.
159 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)