Coder Social home page Coder Social logo

gelliravi / wq.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wq/itertable

0.0 2.0 0.0 87 KB

Python interoperability library for consuming and generating data resources in various formats.

Home Page: wq.io/wq.io

License: MIT License

wq.io's Introduction

wq.io

Python libraries for consuming (input) and generating (output) external data resources in various formats.

Importing data

The basic process is broken into several steps which are handed by various submodules.

loaders

Load an external resource from the local filesystem or from the web into a file-like object.

parsers

Parse the file (using the standard python library for that file type) and convert the recordset into a simple list of dictionaries.

mappers

Rename field names and values if needed and optionally convert the dictionaries into other object types (such as a namedtuple).

Traversing data

The base library then provides a collection object (an "IO") that can be used to easily navigate the dataset. It also provides a number of convenience classes for common IO use cases. For example, CsvNetIO provides an IO with loaders.NetLoader, parsers.CsvParser, and mappers.TupleMapper pre-mixed into the class.

Exporting data

The export process uses the same submodules to apply the above steps in reverse:

mappers

Convert the mapped object back into a simple dictionary and map the field names and values back to the format expected by the file.

parsers

Convert the dictionary list back into the source format and write out to the file.

loaders

Prepare the file-like object for writing and perform any needed wrap-up operations.

wq.io's People

Contributors

sheppard avatar

Watchers

 avatar James Cloos avatar

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.