oxli-bio / oxli

k-mers and the like
BSD 3-Clause "New" or "Revised" License
15 stars 0 forks source link

Add new dunder methods and attributes #27

Closed Adamtaranto closed 1 month ago

Adamtaranto commented 1 month ago

New dunder methods for more Pythonic interaction:

New attributes:

Note: Have added "toml" package as a conditional dependency for testing .version. It is in pyproject.toml under optional dependencies. Will be installed if installing oxli from repo via pip install -e .[test]

Closes #20

Adamtaranto commented 1 month ago

Was using toml library because I didn't know about tomllib. Will look into it.

Adamtaranto commented 1 month ago

@ctb Looks like tomllib was introduced in Python 3.11.

Do we want 3.11 to be the min version required for this package? or keep the external toml import?

I'm going to leave it for now and merge this branch. Can update later.