Commit Graph

71 Commits

Author SHA1 Message Date
Felix Lohmeier 505a62afc2 support unicode chars in project name and column names 2019-08-21 16:48:43 +02:00
Felix Lohmeier 18a4d68b5c support unicode chars in export to stdout 2019-08-21 16:47:21 +02:00
Felix Lohmeier f4f38d02fb fix whitespace (codacy issue) 2019-08-20 06:47:35 +02:00
Felix Lohmeier 375ac42be0 realigned create/new_project to upstream
new feature: xml root element will be discovered if recordPath is not set
bugfix: newly introduced option projectTags was not working in 0.3.7
bugfix: txt defaulted to fixed-width (should be line-based)
bugfix: default recordPath for json was not working in 0.3.7
bugfix: default sheets option was broken (but xls, xlsx, ods is broken in OpenRefine >=2.8 anyway, see #4)
tests: added sample files and an ipython notebook for comprehensive tests of create option
2019-08-20 04:30:50 +02:00
Felix Lohmeier caa2ebfde8 Workaround for SSL verification problems in one-file-executables 2019-08-16 13:15:24 +02:00
Felix Lohmeier 062e6960a8 remove unused import (codacy issue) 2019-08-16 12:27:27 +02:00
Felix Lohmeier bfd00b55aa release v0.3.7 - substantially revised code and docs
fixed bug #1 (option columnWidths broken since v0.3.2)
fixed bug #2 (commands create and export templating broken since v0.3.5)
added --download command
extended --info command
improved performance of --export command
improved error handling and user feedback
removed support for legacy docker option --link
added detailed usage instructions with examples
moved and extended instructions from docker/README.md to README.md
added usage instructions for Python library
added chapter on Binder openrefineder
added badges for docker, pypi and binder
added usage instructions for tests script
added note to myself for distributing releases
moved all functions from parser to cli module
separated export and template function
improved code style (PEP8)
2019-08-16 10:58:41 +02:00
Felix Lohmeier be439c986b templating export format should always be txt 2019-08-16 00:18:59 +02:00
Felix Lohmeier 777d73997c restore project_format default and remove unused code
create project from url has never worked before
new_project_defaults are outdated
2019-08-15 18:06:53 +02:00
Felix Lohmeier aa5b3a4203 realign to upstream 2019-08-14 13:45:35 +02:00
Felix Lohmeier 70782d8465 fix templating example 2019-08-06 21:58:28 +02:00
Felix Lohmeier b6f20f2e93 renamed module client.py to cli.py 2019-08-05 10:20:09 +02:00
Felix Lohmeier ece61c1096 prepare distribution on PyPI
moved parser from refine.py to google/refine/__main__.py to allow module execution (python -m google.refine); script refine.py is now just a forwarding to __main__.py
2019-08-04 03:03:49 +02:00
Felix Lohmeier 1d0c4f828a moved functions from cli script into new module client.py 2019-08-04 02:15:07 +02:00
Felix Lohmeier d82c7b28fb Revert "refactor to allow module execution"
This reverts commit a0123e9511.
2019-08-03 13:23:32 +02:00
Felix Lohmeier a0123e9511 refactor to allow module execution 2019-08-01 17:23:40 +02:00
Felix Lohmeier 3e8f209a50 release v0.3.3: support for templating export, fixed some bugs 2017-11-23 01:48:29 +01:00
Felix Lohmeier 6c65f15363 fixed JSON post arguments 2017-11-20 04:55:11 +01:00
Felix Lohmeier 947c7510a6 refactored and extended CLI 2017-11-19 23:26:22 +01:00
Felix Lohmeier f0643b46a0 Revert "included urllib2_file.py in the package to ease installation"
This reverts commit bf91e918df.
2017-11-17 16:47:31 +01:00
Felix Lohmeier bf91e918df included urllib2_file.py in the package to ease installation 2017-03-14 22:04:06 +01:00
Stefano Parmesan 2d94ac4e36 allow for extra parameters in new_project 2014-08-12 11:34:17 +02:00
Davide Setti 9bd8102b0a fixed the encoding parameter: it was passed as a Refine old-style argument, but it's a new one 2014-05-22 14:18:56 +02:00
Paul Makepeace ca25a305e0 Use true/false instead of on/''. Update to new new-project params. 2013-10-14 00:28:50 +06:00
Paul Makepeace a1ea660ffa Catch HTTP errors and report more diags 2013-10-13 00:34:10 +06:00
Paul Makepeace 08dd425f28 Be explicit server-originated errors are from server. Derive new project defaults.
sudo tcpflow -AH -c -e  -i lo0 src or dst host localhost and port 3335 | ruby -ractive_support/core_ext -ruri -lne 'next unless /^format=([^&]+)&options=(.*)/; format = URI.unescape($1); opts = URI.unescape($2) ; opts.gsub!(/"(\w+)"/) { %Q['\''#{$1.underscore}'\''] }; opts.gsub!(/:/,": "); opts.gsub!(/,/,",\n\t"); opts.gsub!(/(true|false)/) { $1.titleize }; puts "        '\''#{format}'\'': #{opts},"'
2013-10-12 23:38:16 +06:00
Paul Makepeace bbd4d84c96 Google Refine -> OpenRefine 2013-10-10 16:41:10 +05:00
Paul Makepeace 5b701821a9 incorrectly class attributes 2013-10-10 15:32:56 +05:00
Paul Makepeace bc0a8e7c7b Whitespace & minor renaming to bring in line with PEP8 guidelines 2013-10-09 23:16:43 +05:00
Paul Makepeace 8e07662e65 Remove incomplete reconciliation response parsing. It's not exposed in the API yet and changed from Refine 2.0 to 2.1 2011-07-21 17:03:17 +00:00
Paul Makepeace e6a3038e46 Init key_column 2011-06-23 09:51:12 +00:00
Paul Makepeace 4405e4a9b1 Guard use of reconCandidates
which existed only up to Refine 2.0
2011-06-23 09:50:56 +00:00
Paul Makepeace a9066491a7 Don't use kwargs any more 2011-06-23 09:50:18 +00:00
Paul Makepeace 63258f58b1 Use + for consistency 2011-06-23 09:49:59 +00:00
Paul Makepeace bd43d001c4 Clean up interface to passing multiple facets into Engine() 2011-06-23 09:49:25 +00:00
Paul Makepeace 9a461607b9 Ensure clearing facet map 2011-06-23 09:48:16 +00:00
Paul Makepeace 5e544bb827 Move get_version() to RefineServer & add RefineServer.version lazy property 2011-06-10 17:49:06 +00:00
Paul Makepeace 7a77121e8c No engine for get-processes, and decode reconciliation JSON response 2011-06-10 14:39:54 +00:00
Paul Makepeace 59b9b51715 Fix up get_preference() 2011-06-10 14:39:20 +00:00
Paul Makepeace c345c465be Clarity docs (I hope) 2011-06-10 14:38:44 +00:00
Paul Makepeace 9ab8ab3695 Add query params option and tidy up parameter organization 2011-06-10 14:38:16 +00:00
Paul Makepeace d3163dd693 Add ReconJudgmentFacet 2011-06-10 14:31:05 +00:00
Paul Makepeace 316b60b387 Add RefineServer.url() staticmethod to report the Refine server's url 2011-06-10 12:53:46 +00:00
Paul Makepeace 30d119f5c8 Add untested reconciliation support. 2011-06-09 12:07:18 +00:00
Paul Makepeace 92504e0b34 Allow pending as a response 2011-06-09 12:03:15 +00:00
Paul Makepeace 550b3d9f51 Line wrap 2011-06-09 10:50:13 +00:00
Paul Makepeace 5fa24d3509 Add missing time import 2011-06-08 17:17:16 +00:00
Paul Makepeace cfd7b9ac99 Start Reconciliation API with guess_types_of_column 2011-06-08 17:05:55 +00:00
Paul Makepeace 31e30df5bd Script to list Refine project; apply a JSON operation history; and export a Refine project 2011-05-27 01:35:14 +01:00
Paul Makepeace b6137dd803 Allow REFINE_{HOST,PORT} to be set in code. 2011-05-27 01:19:44 +01:00