Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsysimon committed Oct 21, 2019
1 parent 3abc197 commit ed12f1a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions python/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# sdk:python

```python
from pipedream import sdk as pd

pd.send_event(API_KEY, {'hello': 'world'})

# with exports
pd.send_event(
API_KEY,
{'hello': 'world'},
exports={
'event': {'hello': 'world!'},
'other_export': 'howdy',
}
)
```

If you do not provide an `event` export it will be set to the `raw_event`
(first argument). `event` and `raw_event` MUST be a dict or the SDK request
will be invalid.

## Development

TODO

0 comments on commit ed12f1a

Please sign in to comment.