Commit Graph

827 Commits (8ef54855d7076577163334a5bd5b6c3bd9981617)
 

Author SHA1 Message Date
Salvo 'LtWorf' Tomaselli 8ef54855d7
Better help 2020-08-26 21:17:05 +07:00
Salvo 'LtWorf' Tomaselli 15026ddb0d
Make mypy happy 2020-08-26 21:17:04 +07:00
Salvo 'LtWorf' Tomaselli 925c238f02
Use pretty print in cli 2020-08-26 21:17:04 +07:00
Salvo 'LtWorf' Tomaselli 96404b4d98
Add pretty print function 2020-08-26 21:17:04 +07:00
Salvo 'LtWorf' Tomaselli ea1d5f9752
Load json without casting
It will avoid json stuff cast as string.

It is a workaround for this https://github.com/ltworf/typedload/pull/140

But anyway cast is not needed so it is fine to disable it.
2020-08-26 21:16:36 +07:00
Salvo 'LtWorf' Tomaselli ea22350463
Merge pull request #35 from ltworf/multiline_optimization
Fix and test multiline optimizer
2020-08-26 17:39:53 +07:00
Salvo 'LtWorf' Tomaselli 9d6402b48c
Make a bunch of stuff private
Only export the entry points, not all the inner functions.
2020-08-26 17:26:55 +07:00
Salvo 'LtWorf' Tomaselli a727c51e75
Handle new parser nodes 2020-08-26 17:16:14 +07:00
Salvo 'LtWorf' Tomaselli 1181042ee0
Handle empty context 2020-08-26 17:15:51 +07:00
Salvo 'LtWorf' Tomaselli 0af82fb225
Python test for multiline 2020-08-26 17:15:24 +07:00
Salvo 'LtWorf' Tomaselli 7228c86d72
I had completely forgotten about multiline optimizations 2020-08-26 17:14:22 +07:00
Salvo 'LtWorf' Tomaselli 8755236f94
Merge pull request #31 from ltworf/column_types
Types per column, not per cell. Cast when loading.
2020-08-24 19:31:55 +07:00
Salvo 'LtWorf' Tomaselli a6898697a6
CHANGELOG 2020-08-24 19:09:20 +07:00
Salvo 'LtWorf' Tomaselli ae2e838df2
Fix cli for the double format 2020-08-24 19:09:20 +07:00
Salvo 'LtWorf' Tomaselli a110f3f2c5
GUI manage json files 2020-08-24 19:09:20 +07:00
Salvo 'LtWorf' Tomaselli 5a271dce1d
Usual mypy workaround
https://github.com/ltworf/typedload/issues/132

https://github.com/python/mypy/issues/9003
2020-08-24 19:08:52 +07:00
Salvo 'LtWorf' Tomaselli 177ca5a3ee
Values can be None 2020-08-24 18:42:18 +07:00
Salvo 'LtWorf' Tomaselli 0920559a82
Make mypy happy 2020-08-24 18:38:10 +07:00
Salvo 'LtWorf' Tomaselli 4d280e02b0
Keep tests in json format
So the results are typed
2020-08-24 18:37:55 +07:00
Salvo 'LtWorf' Tomaselli d592cc3050
Fix json loading
With some small amount of error detection.
2020-08-24 18:37:19 +07:00
Salvo 'LtWorf' Tomaselli dac2d47246
Depend on typedload 2020-08-24 18:02:39 +07:00
Salvo 'LtWorf' Tomaselli 4d81858c8b
Make Rdate into something typedload can handle 2020-08-24 18:02:11 +07:00
Salvo 'LtWorf' Tomaselli c4bc74d612
Add a new json format 2020-08-24 18:02:11 +07:00
Salvo 'LtWorf' Tomaselli 2e5d18f418
Switch to dataclass
NamedTuple has some bug that makes dumping broken
2020-08-24 18:02:11 +07:00
Salvo 'LtWorf' Tomaselli ff9f0c10b6
Do not crash when editing relations containing None 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli 5869f5d421
Visually show the different types 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli 4c101526e6
Use None instead o a special string 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli 33a2a21617
Fix types 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli 18d6f5ebfb
Remove add and sub from Rdate
They were not symmetrical, better to remove them.
2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli 4dc7f131f3
Only use eq 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli 774c8eed67
Compare to anything 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli b69fd0980b
Do not clash names 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli b86c0c6a61
Remove leftover print 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli 69f7e83626
Fix printing 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli 90b3163e32
Add the --- token bare 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli 5c8cbde27a
No autocasts needed
All casting is done when loading
2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli 7800a157bf
Convert Rdate object to keep working 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli 73aa0dd2a1
New code to guess types 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli f410b112af
Use the new by column type detection 2020-08-24 18:02:10 +07:00
Salvo 'LtWorf' Tomaselli 5259921bb1
Better error message 2020-08-24 18:02:09 +07:00
Salvo 'LtWorf' Tomaselli aea763021c
Remove useless new object 2020-08-24 18:02:09 +07:00
Salvo 'LtWorf' Tomaselli c246c0715d
Remove useless operations 2020-08-24 18:02:09 +07:00
Salvo 'LtWorf' Tomaselli c61cea7806
Remove unused code 2020-08-24 18:02:09 +07:00
Salvo 'LtWorf' Tomaselli 51f85e6daf
CHANGELOG 2020-08-24 18:02:09 +07:00
Salvo 'LtWorf' Tomaselli fd645a20c7
Merge pull request #33 from ltworf/readme
Improve readme
2020-08-24 14:42:25 +07:00
Salvo 'LtWorf' Tomaselli 259a7c6497
README.md 2020-08-24 14:38:45 +07:00
Salvo 'LtWorf' Tomaselli e8abacd005
Merge pull request #32 from ltworf/rename_command
Change the command name
2020-08-24 10:48:47 +07:00
Salvo 'LtWorf' Tomaselli f892a9e162
Update copyright 2020-08-24 10:41:50 +07:00
Salvo 'LtWorf' Tomaselli 8fd1384574
Copy also cli package 2020-08-24 10:40:01 +07:00
Salvo 'LtWorf' Tomaselli 26115245c2
Clean deb-pkg directory 2020-08-24 10:29:28 +07:00