Coder Social home page Coder Social logo

Support Python 3 about rows HOT 6 CLOSED

turicas avatar turicas commented on May 27, 2024
Support Python 3

from rows.

Comments (6)

ocarneiro avatar ocarneiro commented on May 27, 2024

Any specific library missing in python3 to be replaced?

from rows.

turicas avatar turicas commented on May 27, 2024

@ocarneiro, I actually don't know. We currently have these dependencies:

  • unicodecsv (for CSV plugin -- we may use csv from standard library on Python3)
  • click and requests (for command-line interface)
  • lxml (HTML and ODS plugins)
  • xlrd and xlwt (XLS)
  • openpyxl (XLSX)

And also development requirements:

  • coverage
  • ipdb
  • mock
  • nose
  • pylint
  • yanc

from rows.

encukou avatar encukou commented on May 27, 2024

@ocarneiro, all dependencies are ported.
csv is Unicode-only in Python 3, and mock is in the standard library as unittest.mock since 3.3. The others claim py3 compatibility on PyPI.

from rows.

turicas avatar turicas commented on May 27, 2024

Working in progress by @henriquebastos on #151.

from rows.

turicas avatar turicas commented on May 27, 2024

Since many changes related to rows.fields were made on last version 0.2.1, I've started a new branch with Python 3 migration, from scratch: feature/python3-support.
First I converted the rows.fields module, utility functions and the library core, then I converted some plugins. By now I just need to convert the JSON and Parquet plugins. All tests are passing on Python 2.

@henriquebastos, I'd like somebody to review this branch once I finished -- could you please to it? I think I'm going to finish early this week.

from rows.

turicas avatar turicas commented on May 27, 2024

Update: the work is almost complete! By now all tests are passing on both versions, but still need to:

  • Create test and fix a little issue I found on plugin HTML
  • Create test and fix a little issue I found on BinaryField
  • Fix problem with BinaryField precedence
  • Fix examples ecuador_radiodifusoras.py (Python 2), slip_opinions.py (2 and 3) and tests_uwsgi_log.py/uwsgi_log_plugin.py and the related problems on the library which are causing them to fail
  • Configure tox
  • Verify the best way to expose plugin functions (from rows.plugins.html import extract_links won't work, for example)

from rows.

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.