kjaymiller / kjaymiller/31DaysofNeurodivergenceTweets
Add Formatting Rules to Load Messages
- Dominant language
- Python
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```python
def load_messages(
messages: typing.Sequence[str],
queue: QueueClient,
# pre-upload: typing.Optional[list[function]] = None, # TODO: #11 Add Formatting Rules
**kwargs,
):
"""
Iterate through a `messages` optionally applying a formatted messages.
"""
# #11 Will change this to just messages and then you'll have to pass in formatting functions to `pre_upload` the message
for index_, message in enumerate(messages, start=1,):
# #11 will check for pre_upload
yield queue.send_message(f"{index_} - {message}", **kwargs)
```
https://github.com/kjaymiller/31DaysofNeurodivergenceTweets/blob/7e16cd365693c47f60c6ddc6a85a607a508c3751/LoadMessages/message.py#L8
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.