Git Product home page Git Product logo

Comments (5)

rysson avatar rysson commented on July 28, 2024 3

Hi,

It's necessary form me too. I've created simple patch:
rysson@ae3162d

File-like object is used directly if seek-able. If not, io.BytesIO is used.

Now you can:

with zipfile.ZipFile('/path/to/file.zip', 'r') as zf:
    with zf.open('BAZA/ZESPOLY.DBF') as z:
         for record in DBF(z):
             print(record)

BTW. Next commit adds code page 'mazovia' support.

@olemb, could you give me a comment? Can i create pull-request?

from dbfread.

zaneselvans avatar zaneselvans commented on July 28, 2024 2

We created a fork over here that does some of this, if it's useful to you at all: https://github.com/catalyst-cooperative/dbfread

from dbfread.

razor-1 avatar razor-1 commented on July 28, 2024

Looks like this project may be abandoned? Would be great to get this in

from dbfread.

ptvirgo avatar ptvirgo commented on July 28, 2024

... and third. @rysson not sure if you can get a pull request accepted, but it's exactly what I need.

from dbfread.

olemb avatar olemb commented on July 28, 2024

... and fourth.

I am very sorry that I had to abandon the project for a long time time for reasons I won't go into here (in short, life happened), but I am starting up again now and this is at the top of the list of new features to add. It's very highly requested and would be useful in a lot of different situations.

Since there are now several issues pull requests I've made a meta-issue #53 where we can discuss the pros and cons of the different implementations.

I will have to read the code and discussions on each issue before I'm ready to give any informed answers.

(Edit: forgot to add the issue number.)

from dbfread.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.