Skip to content

Commit

Permalink
doc: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
msto authored Apr 1, 2024
1 parent 46b8702 commit 1494824
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

Dataclass IO.

## Usage
## Quickstart

### Reading

```py
from dataclasses import dataclass
Expand All @@ -25,7 +27,7 @@ with DataclassReader(path, MyData) as reader:
do_something(record.foo)
```


### Writing
```py
from dataclasses import dataclass
from dataclass_io import DataclassWriter
Expand Down

0 comments on commit 1494824

Please sign in to comment.