Skip to content

Commit

Permalink
✨REFACTORING✨ - it's now a class, and I've standardised things like
Browse files Browse the repository at this point in the history
using pathlib for all of the files, and moved all of the print
statements to the top level so that it doesn't clutter stdout when
called as a library. Some extra tests.
  • Loading branch information
spikelynch committed Dec 3, 2024
1 parent e339e8e commit f395b5a
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 293 deletions.
15 changes: 1 addition & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,6 @@ Install [uv](https://docs.astral.sh/uv/), then

## Usage

To build an SQLite version of a crate:
> uv run src/rocrate_tabular/rocrate_tabular.py path/to/crate crate.db

> uv run src/rocrate_tabular/rocrate_tabular.py -c path/to/crate -o out.db

To build a CSV version of the same tables:

> uv run src/rocrate_tabular/rocrate_tabular.py -c path/to/crate -o out.csv


## Todo

Build this out so it's a better library:

- [ ] unit tests
- [ ] better separation of output formats
- [ ] build tables for kinds of crate entities with sensible defaults
Loading

0 comments on commit f395b5a

Please sign in to comment.