Giter VIP home page Giter VIP logo

Comments (3)

cthoyt avatar cthoyt commented on May 27, 2024

Great suggestion! Several of the functions you might want to use are already available through pystow.utils. I’ll try to improve the docs to make this a bit more obvious.

Was the a specific one you wanted to use?

from pystow.

bgyori avatar bgyori commented on May 27, 2024

I suppose it would be equally useful to have a corresponding variant for all the ensure_* functions (the ones that specify a specific file format) but personally I'd probably use json and pickle (this doesn't exist yet) most often.

from pystow.

cthoyt avatar cthoyt commented on May 27, 2024

Okay on a second read I think I understood what you were asking for and made a demo in #37 that just address CSV, pickle, and JSON opening. This doesn't affect any existing functionality so I'll make a release (https://github.com/cthoyt/pystow/releases/tag/v0.4.1, https://pypi.org/project/pystow/0.4.1/) so you can try it out.

The archetype is pretty general and could be pretty easily extended to other ensure_* functions to implement corresponding open_* functions.

from pystow.

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.