Skip to content

Commit 501f407

Browse files
committed
__init__.py: Added example usage
1 parent 89cdef0 commit 501f407

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

tempmail/__init__.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
"""tempmail-python is a Python library for generating and managing temporary email addresses using the 1secmail service.
22
3-
Example usage:
3+
## Example usage:
44
```python
5-
TODO
5+
from tempmail import EMail
6+
7+
email = EMail()
8+
9+
# ... request some email ...
10+
11+
msg = email.wait_for_message()
12+
print(msg.body) # Hello World!\n
613
```
714
"""
815

0 commit comments

Comments
 (0)