Skip to content

Commit ed12f1a

Browse files
committed
Add README
1 parent 3abc197 commit ed12f1a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

python/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# sdk:python
2+
3+
```python
4+
from pipedream import sdk as pd
5+
6+
pd.send_event(API_KEY, {'hello': 'world'})
7+
8+
# with exports
9+
pd.send_event(
10+
API_KEY,
11+
{'hello': 'world'},
12+
exports={
13+
'event': {'hello': 'world!'},
14+
'other_export': 'howdy',
15+
}
16+
)
17+
```
18+
19+
If you do not provide an `event` export it will be set to the `raw_event`
20+
(first argument). `event` and `raw_event` MUST be a dict or the SDK request
21+
will be invalid.
22+
23+
## Development
24+
25+
TODO

0 commit comments

Comments
 (0)