Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for reading from a (non-seekable) file object instead of a filename #53

Open
olemb opened this issue Dec 21, 2020 · 1 comment

Comments

@olemb
Copy link
Owner

olemb commented Dec 21, 2020

This will require internal changes to the library, and perhaps some API changes.

Relevant issues and pull requests:

I suspect the best solution to handle all of these cases is to break most of the code into functions that can be composed into different APIs. For example, there could be a function that reads the headers from a file object, an d a generator that reads records from a file object and we could write a new backwards compatible DBF class or another leaner API on top of these.

These smaller function would also be useful when writing debugging tools.

@zaneselvans
Copy link

Take a look at our implementation here if it's useful: https://github.com/catalyst-cooperative/dbfread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants