forked from arthurdejong/python-stdnum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
5056 lines (3251 loc) · 172 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2021-02-06 Arthur de Jong <[email protected]>
* [fad3064] stdnum/by/portal.nalog.gov.by.crt: Add Let's Encrypt
R3 intermediate certificate
The portal.nalog.gov.by web site serves an incomplete certificate
chain and the intermediate certificate was changed.
2021-02-06 Arthur de Jong <[email protected]>
* [8c4ec55] stdnum/be/banks.dat, stdnum/cn/loc.dat,
stdnum/eu/nace.dat, stdnum/gs1_ai.dat, stdnum/imsi.dat,
stdnum/isbn.dat, stdnum/nz/banks.dat, stdnum/oui.dat: Update
database files
2021-02-06 Arthur de Jong <[email protected]>
* [fe34e15] stdnum/kr/rrn.py, stdnum/pe/ruc.py, stdnum/ua/edrpou.py:
Use HTTPS in URLs where possible
2021-01-24 Arthur de Jong <[email protected]>
* [407a02f] stdnum/at/postleitzahl.dat, update/at_postleitzahl.py:
Switch postal code download to Austrian open-data portal
This simplifies the process of downloading Austrian
postal codes by downloading a JSON blob instead from
https://www.data.gv.at/katalog/dataset/f76ed887-00d6-450f-a158-9f8b1cbbeebf
This filters the list to only use addressable (adressierbar)
postal codes because it matches the previous list.
Thanks Bernd Schlapsi for providing the pointer.
Closes https://github.com/arthurdejong/python-stdnum/issues/235
2021-01-21 Alexis de Lattre <[email protected]>
* [53f13b4] stdnum/vatin.py, tests/test_vatin.doctest: Add support
for XI VAT numbers in vatin
Closes https://github.com/arthurdejong/python-stdnum/pull/251
2021-01-21 Arthur de Jong <[email protected]>
* [b93d695] stdnum/eu/vat.py, stdnum/gb/vat.py,
tests/test_eu_vat.doctest: Support xi country code for Northern
Ireland
While Great Brittain is no longer an EU member state some GB VAT
numbers are still valid if the company meets certain requirements.
See
https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business
Closes https://github.com/arthurdejong/python-stdnum/issues/250
2021-01-11 Arthur de Jong <[email protected]>
* [6b7f209] ChangeLog, NEWS, README, docs/conf.py, docs/index.rst,
docs/stdnum.li.peid.rst, docs/stdnum.ro.cui.rst,
docs/stdnum.ua.edrpou.rst, docs/stdnum.ua.rntrc.rst,
stdnum/__init__.py, tox.ini: Get files ready for 1.15 release
2021-01-11 Arthur de Jong <[email protected]>
* [755eee7] .travis.yml: Simplify Travis matrix
This also ensures that supported Python interpreters are output
in order.
2021-01-10 Arthur de Jong <[email protected]>
* [a0c62ee] stdnum/at/postleitzahl.dat, stdnum/be/banks.dat,
stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/gs1_ai.dat,
stdnum/iban.dat, stdnum/imsi.dat, stdnum/isbn.dat,
stdnum/my/bp.dat, stdnum/nz/banks.dat, stdnum/oui.dat,
update/at_postleitzahl.py, update/my_bp.py, update/nz_banks.py:
Update database files
2021-01-10 Arthur de Jong <[email protected]>
* [df0623b] stdnum/by/unp.py, stdnum/do/ncf.py, stdnum/imsi.py,
stdnum/isbn.py, stdnum/meid.py, tox.ini: Drop pinning of isort
now flake8-isort has been fixed
This changes a few inline imports in the code to pass with the
new isort.
Reverts 291b831
2021-01-10 Arthur de Jong <[email protected]>
* [b202eee] stdnum/my/nric.py: Fix typo
2021-01-10 Arthur de Jong <[email protected]>
* [7e86331] setup.py: Add project URLs for PyPI
2020-10-25 Leandro Regueiro <[email protected]>
* [126496c] stdnum/ua/rntrc.py, tests/test_ua_rntrc.doctest:
Add support for Ukraine РНОКПП number
Closes https://github.com/arthurdejong/python-stdnum/pull/242
Closes https://github.com/arthurdejong/python-stdnum/issues/117
2020-10-25 Leandro Regueiro <[email protected]>
* [b7b2af8] stdnum/ua/__init__.py, stdnum/ua/edrpou.py,
tests/test_ua_edrpou.doctest: Add support for Ukraine ЄДРПОУ
number
Closes https://github.com/arthurdejong/python-stdnum/pull/242
Closes https://github.com/arthurdejong/python-stdnum/issues/117
2021-01-04 Viggo de Vries <[email protected]>
* [0427b01] stdnum/eu/vat.py, tests/test_eu_vat.doctest,
tests/test_gb_vat.doctest: Remove GB from EU member states
Closes https://github.com/arthurdejong/python-stdnum/pull/246
2021-01-10 Arthur de Jong <[email protected]>
* [2f2c742] .travis.yml, setup.py, tox.ini: Add support for
Python 3.9
This switches Travis tests to bionic by default.
2021-01-10 Arthur de Jong <[email protected]>
* [2046f51] stdnum/damm.py, stdnum/eu/at_02.py, stdnum/gs1_128.py,
stdnum/iso7064/mod_11_10.py, stdnum/iso7064/mod_11_2.py,
stdnum/iso7064/mod_37_2.py, stdnum/iso7064/mod_37_36.py,
stdnum/iso7064/mod_97_10.py, stdnum/luhn.py, stdnum/util.py,
stdnum/verhoeff.py: Fix flake8 blind except Exception error
2021-01-04 Viggo de Vries <[email protected]>
* [cc3a970] stdnum/au/__init__.py: Use ABN as Australian VAT number
See https://www.ato.gov.au/Business/GST/Tax-invoices/
Closes https://github.com/arthurdejong/python-stdnum/pull/246
2021-01-02 Arthur de Jong <[email protected]>
* [c74e322] stdnum/vatin.py, tests/test_vatin.doctest: Support
VAT numbers that are only valid with country prefix
The Swish VAT number has the CH prefix embedded as a required
part of the number. This ensures that the international VAT
number module also supports that.
Closes https://github.com/arthurdejong/python-stdnum/issues/245
Fixes ff188bd
2020-10-27 Matthias Schmid, M.Sc <[email protected]>
* [5082af4] stdnum/li/__init__.py, stdnum/li/peid.py,
tests/test_li_peid.doctest: Add Liechtenstein
Personenidentifikationsnummer
Closes https://github.com/arthurdejong/python-stdnum/pull/241
Closes https://github.com/arthurdejong/python-stdnum/issues/125
2020-10-02 Jonas Geuens <[email protected]>
* [3a592e4] stdnum/be/vat.py, tests/test_be_vat.doctest: Expanded
validation for BE VAT numbers
Specifically invalidated all-zero numbers
Closes https://github.com/arthurdejong/python-stdnum/pull/240
2020-11-01 Arthur de Jong <[email protected]>
* [c5eb2d8] stdnum/eu/vat.py, stdnum/ro/cf.py,
tests/test_eu_vat.doctest: Retain RO prefix in Romanian VAT numbers
This does not strip the RO prefix from Romanian VAT numbers to be
able to keep the distinction between a CUI/CIF that is registered
for VAT (which commonly has the RO prefix) and those that don't.
Closes https://github.com/arthurdejong/python-stdnum/issues/231
2020-11-01 Arthur de Jong <[email protected]>
* [1f6c77f] stdnum/ro/cnp.py, stdnum/ro/onrc.py: Minor updates
2020-11-01 Arthur de Jong <[email protected]>
* [e0417f6] stdnum/ro/cf.py, stdnum/ro/cui.py: Add Romanian
CUI/CIF number
This module separates the validation of numbers assigned to
companies (CUI or CIF) of those assigned to natural persons (CNP).
2020-09-19 Arthur de Jong <[email protected]>
* [19d3f70] stdnum/eu/vat.py: Make list of EU member states list
of public API
This provides stdnum.eu.vat.MEMBER_STATES. Note that Greece is
listed with a country code of "gr" while the prefix used in VAT
numbers is "el".
Closes https://github.com/arthurdejong/python-stdnum/issues/238
2020-09-04 Arthur de Jong <[email protected]>
* [992dc20] online_check/check.js,
online_check/jquery-1.7.1.js, online_check/jquery-1.7.1.min.js,
online_check/jquery-3.5.1.js, online_check/jquery-3.5.1.min.js,
online_check/jquery-3.5.1.min.map, online_check/template.html:
Upgrade jQuery to 3.5.1
This also runs eslint over check.js and fixes an issue from
the upgrade.
2020-08-09 Arthur de Jong <[email protected]>
* [3373938] ChangeLog, NEWS, README, docs/index.rst,
docs/stdnum.by.unp.rst, docs/stdnum.cn.uscc.rst,
docs/stdnum.gb.utr.rst, docs/stdnum.gs1_128.rst,
docs/stdnum.id.npwp.rst, docs/stdnum.il.hp.rst,
docs/stdnum.it.aic.rst, docs/stdnum.kr.brn.rst,
docs/stdnum.ro.onrc.rst, docs/stdnum.sg.uen.rst,
docs/stdnum.sv.nit.rst, docs/stdnum.tw.ubn.rst,
docs/stdnum.vatin.rst, docs/stdnum.vn.mst.rst,
docs/stdnum.za.idnr.rst, stdnum/__init__.py: Get files ready
for 1.14 release
2020-08-09 Arthur de Jong <[email protected]>
* [40fcc24] stdnum/be/banks.dat, stdnum/cn/loc.dat,
stdnum/eu/nace.dat, stdnum/gs1_ai.dat, stdnum/iban.dat,
stdnum/imsi.dat, stdnum/isbn.dat, stdnum/nz/banks.dat,
stdnum/oui.dat, update/imsi.py, update/nz_banks.py: Update
database files
2020-03-08 Leandro Regueiro <[email protected]>
* [ff188bd] stdnum/vatin.py, tests/test_vatin.doctest: Add module
to check any VAT number
This effectively mimics vatnumber's `check_vat` function, so people
can easily replace the outdated vatnumber library with stdnum.
Closes https://github.com/arthurdejong/python-stdnum/pull/199
2020-08-08 Arthur de Jong <[email protected]>
* [b6e43cd] update/gs1_ai.py: Fix Python 3.6 issue in update script
Fixes 180788a
2020-08-08 Arthur de Jong <[email protected]>
* [180788a] stdnum/gs1_128.py, stdnum/gs1_ai.dat,
tests/test_gs1_128.doctest, update/gs1_ai.py: Add GS1-128 format
This adds validation, parsing and encoding functions for
GS1-128. It is based on the lists of formats as published by
the GS1 organisation.
Based on the implementation provided by Sergi Almacellas Abellana
Closes https://github.com/arthurdejong/python-stdnum/pull/144
2020-08-02 Arthur de Jong <[email protected]>
* [c2284f3] stdnum/ro/onrc.py, tests/test_ro_onrc.doctest: Add
Romanian Trade Register identifier
Closes https://github.com/arthurdejong/python-stdnum/issues/229
Closes https://github.com/arthurdejong/python-stdnum/pull/234
2020-06-02 Mohammed Salman <[email protected]>
* [94e2c63] stdnum/gb/utr.py, tests/test_gb_utr.doctest: Add
English Unique Tax Reference
Closes https://github.com/arthurdejong/python-stdnum/pull/227
2020-08-02 Arthur de Jong <[email protected]>
* [505521e] stdnum/ro/cnp.py: Support foreign residents for
Romanian CNP
This supports 7 or 8 as first digits in the CNP which are
apparently used to identify foreign residents.
This also changes the exception for an incorrect first digit
from InvalidFormat to InvalidComponent which is a little clearer.
Closes https://github.com/arthurdejong/python-stdnum/issues/230
2020-08-02 Arthur de Jong <[email protected]>
* [51a122d] stdnum/kr/GPKIRootCA1.crt, stdnum/kr/brn.py: Remove
custom CA certificate for www.ftc.go.kr
This certificate is not needed any more because the site now
uses a different certificate that is signed by a known CA.
2020-07-31 evaldez89 <[email protected]>
* [feca1fe] stdnum/do/rnc.py, tests/test_do_rnc.py: Scape new
line character
Closes https://github.com/arthurdejong/python-stdnum/pull/233
Closes https://github.com/arthurdejong/python-stdnum/issues/232
2020-04-05 Leandro Regueiro <[email protected]>
* [dab926c] stdnum/tw/__init__.py, stdnum/tw/ubn.py,
tests/test_tw_ubn.doctest: Add support for Taiwan TIN number
Closes https://github.com/arthurdejong/python-stdnum/pull/214
Closes https://github.com/arthurdejong/python-stdnum/issues/209
2020-07-05 Arthur de Jong <[email protected]>
* [291b831] tox.ini: Avoid newer isort for flake8 tests
Do not install the latest isort because it currently breaks
flake8-isort. This pinning should be removed as soon as
https://github.com/gforcada/flake8-isort/issues/88 is resolved.
2020-03-08 Leandro Regueiro <[email protected]>
* [7112874] stdnum/id/__init__.py, stdnum/id/npwp.py,
tests/test_id_npwp.doctest: Add support for Indonesian NPWP
Closes https://github.com/arthurdejong/python-stdnum/issues/106
Closes https://github.com/arthurdejong/python-stdnum/pull/198
2020-04-18 Leandro Regueiro <[email protected]>
* [a34a76d] stdnum/vn/__init__.py, stdnum/vn/mst.py,
tests/test_vn_mst.doctest: Add support for Vietnam TIN number
Closes https://github.com/arthurdejong/python-stdnum/issues/217
Closes https://github.com/arthurdejong/python-stdnum/pull/218
2020-05-16 Arthur de Jong <[email protected]>
* [1b7e985] stdnum/kr/GPKIRootCA1.crt, stdnum/kr/brn.py,
tests/test_kr_brn.py: Add an online check for the South Korean BRN
2020-03-07 Leandro Regueiro <[email protected]>
* [b3891f1] stdnum/kr/__init__.py, stdnum/kr/brn.py,
tests/test_kr_brn.doctest: Add support for South Korea Business
Registration Number
Closes https://github.com/arthurdejong/python-stdnum/pull/197
Closes https://github.com/arthurdejong/python-stdnum/issues/101
2020-06-06 Christopher Ormaza <[email protected]>
* [127fff1] stdnum/ec/ci.py: Support 6 as third digit for foreign
people in Ecuador
Closes https://github.com/arthurdejong/python-stdnum/pull/228
2020-03-18 Leandro Regueiro <[email protected]>
* [0d5b8b1] stdnum/sg/__init__.py, stdnum/sg/uen.py,
tests/test_sg_uen.doctest: Add support for Singapore Unique
Entity Number
Closes https://github.com/arthurdejong/python-stdnum/issues/111
Closes https://github.com/arthurdejong/python-stdnum/pull/203
2020-03-18 Leandro Regueiro <[email protected]>
* [4eda3f3] stdnum/nz/__init__.py: Add missing vat alias for
New Zealand
Closes https://github.com/arthurdejong/python-stdnum/pull/202
2020-04-04 Leandro Regueiro <[email protected]>
* [f3ce70c] stdnum/cn/__init__.py, stdnum/cn/uscc.py,
tests/test_cn_uscc.doctest: Add support for Chinese TIN number
Closes https://github.com/arthurdejong/python-stdnum/issues/207
Closes https://github.com/arthurdejong/python-stdnum/pull/210
2020-04-10 Leandro Regueiro <[email protected]>
* [54e2e8f] stdnum/sv/__init__.py, stdnum/sv/nit.py,
tests/test_sv_nit.doctest: Add support for El Salvador TIN number
Closes https://github.com/arthurdejong/python-stdnum/issues/133
Closes https://github.com/arthurdejong/python-stdnum/pull/215
2020-03-31 Leandro Regueiro <[email protected]>
* [356a729] stdnum/il/__init__.py, stdnum/il/hp.py,
tests/test_il_hp.doctest: Add Israeli TIN number
Closes https://github.com/arthurdejong/python-stdnum/pull/208
Closes https://github.com/arthurdejong/python-stdnum/issues/107
2020-04-25 Arthur de Jong <[email protected]>
* [e49e0e9] docs/index.rst: Document function return behaviour
2020-04-19 Arthur de Jong <[email protected]>
* [417b500] setup.cfg, setup.py, tox.ini: Flake 8 fixes
2020-04-18 Arthur de Jong <[email protected]>
* [ff86618] .travis.yml: Resolve Travis configuration warnings
2020-04-18 Arthur de Jong <[email protected]>
* [982322a] tox.ini: Avoid newest Sphinx
Newer versions of Sphinx treat underscores differently when
used in arguments to automodule causing problems in generating
documentation for the stdnum.in_.aadhaar, stdnum.in_.pan,
stdnum.is_.kennitala and stdnum.is_.vsk modules.
2020-03-20 Arthur de Jong <[email protected]>
* [91ca4da] stdnum/cu/ni.py, stdnum/do/ncf.py, stdnum/do/rnc.py,
stdnum/es/ccc.py, stdnum/es/referenciacatastral.py,
stdnum/eu/eic.py, stdnum/eu/nace.py, stdnum/fi/hetu.py,
stdnum/fr/nir.py, stdnum/gb/nhs.py, stdnum/gr/amka.py,
stdnum/isil.py, stdnum/issn.py, stdnum/kr/rrn.py, stdnum/mu/nid.py,
stdnum/mx/curp.py, stdnum/mx/rfc.py, stdnum/pl/regon.py: Use
HTTPS in URLs where possible
2020-03-19 grzekru <[email protected]>
* [273dd54] stdnum/eu/vat.py: Use HTTPS instead of HTTP fox
VIES lookups
Closes https://github.com/arthurdejong/python-stdnum/issues/204
Closes https://github.com/arthurdejong/python-stdnum/pull/205
2020-03-03 FabrizioMontanari <[email protected]>
* [8433821] stdnum/it/aic.py, tests/test_it_aic.doctest: Add
Italian AIC codes
Closes https://github.com/arthurdejong/python-stdnum/pull/193
2020-03-09 Arthur de Jong <[email protected]>
* [f7b968c] stdnum/by/unp.py: Fix typo
Thanks @unho
2020-03-08 Arthur de Jong <[email protected]>
* [d09ed52] stdnum/lv/pvn.py, stdnum/ru/inn.py: Use zip() for
applying weights in check algorithms
2020-03-07 Arthur de Jong <[email protected]>
* [60139a8] stdnum/by/__init__.py, stdnum/by/portal.nalog.gov.by.crt,
stdnum/by/unp.py, tests/test_by_unp.doctest, tests/test_by_unp.py:
Add Bellarus УНП number
This also adds a function to do an online lookup of the number.
Closes https://github.com/arthurdejong/python-stdnum/issues/196
2020-03-07 Leandro Regueiro <[email protected]>
* [ebe7e10] stdnum/jp/__init__.py: Add missing vat alias for Japan
2020-03-07 Leandro Regueiro <[email protected]>
* [6429080] stdnum/ca/__init__.py: Add missing vat alias for Canada
2020-03-07 Leandro Regueiro <[email protected]>
* [84ee720] stdnum/tr/__init__.py: Add missing vat alias for Turkey
2020-03-07 Leandro Regueiro <[email protected]>
* [fcbe159] stdnum/pe/__init__.py: Add missing vat alias for Peru
2020-03-07 Leandro Regueiro <[email protected]>
* [9be7dee] stdnum/cr/__init__.py: Add missing vat alias for
Costa Rica
2020-03-07 Leandro Regueiro <[email protected]>
* [69d22e9] stdnum/br/__init__.py: Add missing vat alias for Brazil
2020-01-31 Leon Sandøy <[email protected]>
* [df9f922] stdnum/no/fodselsnummer.py,
tests/test_no_fodselsnummer.doctest: Implement get_birth_date()
for no.fodselsnummer
This adds a function that allows you to determine a persons
birth date from a Norwegian fødselsnummer.
This also accounts for D-numbers, H-numbers, and FH-numbers,
which contain special exceptions and modifications to the
birthdate portion of the number.
Most of the information this is based on was found here:
https://no.wikipedia.org/wiki/F%C3%B8dselsnummer#H-nummer
It also updates the list of valid fødselsnummer in the tests,
since this list contained many numbers that are not valid by
this new validation that now accounts for dates.
Additionally, this updates all tests that were failing under the
new validation, and adds a few new tests to bring the coverage
to 100%.
Closes https://github.com/arthurdejong/python-stdnum/pull/187
2020-01-31 Leon Sandøy <[email protected]>
* [4500881] stdnum/dk/cpr.py: Improve birth date validation
for dk.cpr
This adds a check to validate that the birth date information
in a personnummer is not set in the future, resolving a TODO
from this file.
It also improves exception messages for certain validation
fail conditions.
2020-01-31 Leon Sandøy <[email protected]>
* [f5e0456] stdnum/se/personnummer.py: Fix misleading docstring
in se.personnummer get_birth_date()
The docstring for get_birth_date() in the Swedish personnummer.py
warned that the datetime might be 100 years off because of the
lack of precision in the personnummer.
This was accurate when the docstring was written, but this is
no longer accurate after the - and + signs were correctly handled.
Fixes 5441ffa
2020-03-01 Arthur de Jong <[email protected]>
* [8437b8e] .travis.yml: Use bionic for pypy3 tests on Travis
This switches the pypy3 tests to bionic which has Python
3.6.9. There were installation issues with 3.5.3 on trusty and
coverage issues with 3.6.1 of xenial (now the default on Travis).
2020-02-24 Aleksi Hoffman <[email protected]>
* [353db92] stdnum/fi/hetu.py, tests/test_fi_hetu.doctest: Support
validating temporary Finnish personal identity codes
This adds an optional allow_temporary parameter, which defaults
to False, to the validate() function.
Closes https://github.com/arthurdejong/python-stdnum/pull/191
2020-02-18 Gustavo Valverde <[email protected]>
* [efa70f1] stdnum/do/ncf.py: Change DGII endpoint to new one
The old endpoint has been deprecated.
Closes https://github.com/arthurdejong/python-stdnum/pull/190
2020-02-12 Arthur de Jong <[email protected]>
* [e513888] stdnum/se/personnummer.py,
tests/test_se_personnummer.doctest: Fix issue with extra plus
or minus in se.personnummer
Fixes 5441ffa Closes
https://github.com/arthurdejong/python-stdnum/issues/188
2020-01-22 Gustavo Valverde <[email protected]>
* [77a77ba] stdnum/do/ncf.py: Add missing NCF document types
for validation
These document types are in the official
documentation, but were not being validated:
https://dgii.gov.do/cicloContribuyente/facturacion/comprobantesFiscales/Paginas/tiposComprobantes.aspx
Closes https://github.com/arthurdejong/python-stdnum/pull/186
2020-01-19 Arthur de Jong <[email protected]>
* [d5666b8] ChangeLog, NEWS, README, docs/index.rst,
docs/stdnum.ch.esr.rst, setup.py, stdnum/__init__.py: Get files
ready for 1.13 release
2020-01-19 Arthur de Jong <[email protected]>
* [334e907] online_check/stdnum.wsgi: Fix online check to be Python
3 compatible
2020-01-18 Arthur de Jong <[email protected]>
* [53d9934] stdnum/at/postleitzahl.dat, stdnum/be/banks.dat,
stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/iban.dat,
stdnum/imsi.dat, stdnum/isbn.dat, stdnum/isil.dat,
stdnum/nz/banks.dat, stdnum/oui.dat, update/iban.py: Update
database files
2020-01-18 Arthur de Jong <[email protected]>
* [f23c549] stdnum/za/idnr.py, tests/test_za_idnr.doctest: Add
South African Identity Document number
Closes https://github.com/arthurdejong/python-stdnum/issues/126
2020-01-12 Arthur de Jong <[email protected]>
* [42e096e] stdnum/isin.py, tests/test_isin.doctest: Add temporary
and internal ISIN country codes
This adds a few temporary and internal country codes that are
used by various agencies so that they can also be validated. This
does not mean that all these numbers are globally valid.
Closes https://github.com/arthurdejong/python-stdnum/issues/158
2019-12-06 anwarbaroudi <[email protected]>
* [87c195f] stdnum/isin.py, tests/test_isin.doctest: Add three
country codes to ISIN
This adds three missing country codes: 'AN' for 'Netherlands
Antilles', 'CS' for 'Serbia and Montenegro' and 'XK' for 'Kosovo'.
Closes https://github.com/arthurdejong/python-stdnum/issues/173
Closes https://github.com/arthurdejong/python-stdnum/pull/174
Closes https://github.com/arthurdejong/python-stdnum/pull/176
2020-01-09 Emmanuel Arias <[email protected]>
* [0b30c4b] stdnum/ar/cuit.py, tests/test_ar_cuit.doctest: Test
Argentinian CUIT type
The first two digits of the CUIT indicate the type of CUIT
(personal, company or international) and can only have certain
values.
Closes https://github.com/arthurdejong/python-stdnum/issues/179
Closes https://github.com/arthurdejong/python-stdnum/pull/181
2020-01-09 Arthur de Jong <[email protected]>
* [a9b3e90] stdnum/nl/btw.py, tests/test_eu_vat.doctest: Support
new btw-identificatienummer
The btw-identificatienummer has been introduced on January 1st
2020 in the Netherlands as an alternative to the btw-nummer that
contains the BSN personal identifier. The number has the same
structure and function but does not contain a BSN and uses a
different check digit algorithm.
Thanks to Cas Vissers, Jeroen van Heiningen, Jerome Hanke, Nicolas
Martinelli, Ronald Portier and Tim Muller for contributing to
the fix.
More information:
*
http://kleineondernemer.nl/index.php/nieuw-btw-identificatienummer-vanaf-1-januari-2020-voor-eenmanszaken
* https://nl.wikipedia.org/wiki/Btw-nummer_(Nederland) *
https://www.belastingdienst.nl/wps/wcm/connect/bldcontenten/belastingdienst/business/vat/new-vat-id/
*
https://www.belastingdienst.nl/wps/wcm/connect/bldcontentnl/belastingdienst/zakelijk/btw/administratie_bijhouden/btw_nummers_controleren/uw_btw_nummer
Closes https://github.com/arthurdejong/python-stdnum/issues/182
Closes https://github.com/arthurdejong/python-stdnum/pull/183
Closes https://github.com/arthurdejong/python-stdnum/pull/184
Closes https://github.com/arthurdejong/python-stdnum/pull/185
2020-01-04 Arthur de Jong <[email protected]>
* [9605dbe] stdnum/it/codicefiscale.py,
tests/test_it_codicefiscale.doctest: The Italian IVA is also a
Codice Fiscale
Closes https://github.com/arthurdejong/python-stdnum/issues/180
2019-12-18 Sergi Almacellas Abellana <[email protected]>
* [087c668] .travis.yml, setup.py, tox.ini: Add support for
Python 3.8
Closes https://github.com/arthurdejong/python-stdnum/pull/177
2019-12-27 Arthur de Jong <[email protected]>
* [922505a] stdnum/eu/nace.py: Broaden noqa docstring exclusion
Nowadays flake8 seems to report this as D401 (First line should
be in imperative mood) while before it was D402 (First line
should not be the function’s signature).
2019-12-27 Arthur de Jong <[email protected]>
* [de50109] stdnum/do/ncf.py: Switch to using lxml for HTML parsing
This avoids an extra dependency on BeautifulSoup and makes the
code more consistent.
2019-11-12 Jakub Wilk <[email protected]>
* [831c669] NEWS, README, stdnum/br/__init__.py, stdnum/br/cnpj.py,
stdnum/br/cpf.py: Fix typos
Closes https://github.com/arthurdejong/python-stdnum/pull/172
2019-11-04 Kurt Keller <[email protected]>
* [388bac9] stdnum/iso11649.py: Add format to iso11649
Closes https://github.com/arthurdejong/python-stdnum/pull/171
2019-11-02 Kurt Keller <[email protected]>
* [a45d4f7] stdnum/ch/esr.py, tests/test_ch_esr.doctest: Add Swiss
ESR/ISR/QR-reference
Closes https://github.com/arthurdejong/python-stdnum/pull/170
2019-10-27 Arthur de Jong <[email protected]>
* [41b9c94] ChangeLog, NEWS, README, docs/index.rst,
docs/stdnum.ad.nrt.rst, docs/stdnum.cr.cpf.rst,
docs/stdnum.cr.cpj.rst, docs/stdnum.cr.cr.rst,
docs/stdnum.gt.nit.rst, docs/stdnum.il.idnr.rst,
docs/stdnum.jp.cn.rst, docs/stdnum.kr.rrn.rst,
docs/stdnum.nz.ird.rst, docs/stdnum.pe.cui.rst,
docs/stdnum.pe.ruc.rst, docs/stdnum.py.ruc.rst,
docs/stdnum.tr.vkn.rst, docs/stdnum.uy.rut.rst,
docs/stdnum.ve.rif.rst, docs/stdnum.za.tin.rst, stdnum/__init__.py:
Get files ready for 1.12 release
2019-10-27 Arthur de Jong <[email protected]>
* [6ca5b53] stdnum/at/postleitzahl.dat, stdnum/be/banks.dat,
stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/imsi.dat,
stdnum/isbn.dat, stdnum/isil.dat, stdnum/my/bp.dat,
stdnum/nz/banks.dat, stdnum/oui.dat, stdnum/us/ein.dat,
tests/test_be_iban.doctest: Update database files
The BIC for some former Record Bank accounts (now ING Belgium)
was changed from HBKABE22 to BBRUBEBB (that of ING).
2019-10-27 Arthur de Jong <[email protected]>
* [5b835bb] update/imsi.py: Parse multiple Wikipedia pages for
full MCC/MNC list
2019-10-27 Arthur de Jong <[email protected]>
* [29de83e] update/oui.py: Make the IEEE OUI data more compact
This groups consecutive assignments into a range to make the
dat file a little more readable.
2019-10-27 Arthur de Jong <[email protected]>
* [67b747b] update/at_postleitzahl.py, update/be_banks.py,
update/cn_loc.py, update/do_whitelists.py, update/iban.py,
update/imsi.py, update/isil.py, update/my_bp.py, update/numlist.py,
update/nz_banks.py, update/oui.py: Switch update scripts to
Python 3
2019-10-27 Arthur de Jong <[email protected]>
* [0915b55] update/at_postleitzahl.py, update/be_banks.py,
update/cn_loc.py, update/do_whitelists.py, update/eu_nace.py,
update/iban.py, update/imsi.py, update/isbn.py, update/isil.py,
update/oui.py: Switch update scripts to use requests
This makes the scripts more consistent.
2019-10-27 Arthur de Jong <[email protected]>
* [40961fc] update/at_postleitzahl.py, update/eu_nace.py,
update/isbn.py, update/isil.py, update/my_bp.py,
update/requirements.txt: Switch update scripts to lxml
This avoids an extra dependency on Beautiful Soup and makes the
scripts more consistent.
This also includes a fix in the ISIL because of website changes.
2019-10-27 Arthur de Jong <[email protected]>
* [c4ad714] update/my_bp.crt, update/my_bp.py: Work around incorrect
jpn.gov.my certificate chain
The intermediate certificate for jpn.gov.my is missing from the
certificate chain that is returned by the server since the server
switched to HTTPS.
2019-10-27 Arthur de Jong <[email protected]>
* [c9ad8d3] update/nz_banks.py: Fix New Zealand Bank Branch Register
update script
There is now a direct URL for the XLS file and there is no longer
a need to search the page for a link.
2019-10-16 Gerard Dalmau <[email protected]>
* [7f3dcf0] stdnum/es/cif.py, stdnum/es/cups.py, stdnum/es/dni.py,
stdnum/es/nie.py, stdnum/es/nif.py: Improve descriptions of
Spanish codes
Closes https://github.com/arthurdejong/python-stdnum/pull/169
2019-10-14 Arthur de Jong <[email protected]>
* [54218b1] stdnum/kr/rrn.py: Fix rrn documentation
This also fixes Python 2.6 compatibility.
Fixes 790a052
2019-10-14 Dimitri Papadopoulos
* [790a052] stdnum/kr/__init__.py, stdnum/kr/rrn.py,
tests/test_kr_rrn.doctest: Add South Korean Resident Registration
Numbers
2019-10-13 Andreas Häber <[email protected]>
* [63a643f] stdnum/au/__init__.py: AU: Provide vat as alias from tfn
Closes https://github.com/arthurdejong/python-stdnum/pull/167
2019-10-13 Andreas Häber <[email protected]>
* [6119590] stdnum/at/__init__.py: AT: Provide personalid as an
alias from vnr
Closes https://github.com/arthurdejong/python-stdnum/pull/166
2019-10-13 Arthur de Jong <[email protected]>
* [3aedb1f] tests/test_ar_cbu.doctest, tests/test_ar_cuit.doctest,
tests/test_au_abn.doctest, tests/test_bg_vat.doctest: Add various
test numbers
2019-09-27 Andreas Häber <[email protected]>
* [d43ad77] stdnum/is_/__init__.py: IS: Provide personalid as an
alias from kennitala
2019-09-27 Andreas Häber <[email protected]>
* [e5d7d9f] stdnum/dk/__init__.py: DK: Provide personalid as an
alias from cpr
2019-09-18 Alan Hettinger <[email protected]>
* [37e6032] stdnum/jp/__init__.py, stdnum/jp/cn.py,
tests/test_jp_cn.doctest: Add Japan Corporate Number
Closes https://github.com/arthurdejong/python-stdnum/pull/157
2019-10-09 Amin Solhizadeh <[email protected]>
* [5441ffa] stdnum/se/personnummer.py,
tests/test_se_personnummer.doctest: Handle - and + sign correctly
in Swedish Personnummer
For people aged 100 and up, the minus/dash in the personnummer is
changed to a plus, on new year's eve the year they turn 100. See
Folkbokföringslagen (1991:481), §18.
This makes the - or + sign part of the number.
Closes https://github.com/arthurdejong/python-stdnum/issues/156
Closes https://github.com/arthurdejong/python-stdnum/pull/160
2019-08-29 Jeffry Jesus De La Rosa <[email protected]>
* [9c18ac5] stdnum/do/ncf.py: Fix broken links to DGII documentation
DGII has changed its page, all the link have been broken, so
they changed some URL.
Closes https://github.com/arthurdejong/python-stdnum/pull/153
2019-10-11 Jeffry Jesus De La Rosa <[email protected]>
* [ac50afa] stdnum/do/ncf.py: Change DGII form parameters
DGII has changed their validation mechanism, so we first exract
the __EVENTVALIDATION and __VIEWSTATE from the form and put them
in the post request for validation.
Closes https://github.com/arthurdejong/python-stdnum/pull/165
2019-10-13 Arthur de Jong <[email protected]>
* [aadf121] .travis.yml: Avoid skipping missing interpreters
on Travis
2019-08-12 Arthur de Jong <[email protected]>
* [8cb71f2] tox.ini: Drop pinning of pydocstyle now flake8-docstrings
has been fixed
Reverts 61c762d
2019-08-02 Arthur de Jong <[email protected]>
* [d9b4818] setup.cfg: Show missing lines in coverage report
2019-08-02 Arthur de Jong <[email protected]>
* [d5bf6e5] .travis.yml: Fix Travis build to use trusty for some
Python versions
Python 2.6 is not available xenial which is the default now. The
coverage also does not seem to work for pypy3.
2019-06-23 Leandro Regueiro <[email protected]>
* [2f38aaf] stdnum/gt/__init__.py, stdnum/gt/nit.py,
tests/test_gt_nit.doctest: Add Guatemalan NIT
Closes https://github.com/arthurdejong/python-stdnum/pull/149
Closes https://github.com/arthurdejong/python-stdnum/issues/132
2019-07-21 Arthur de Jong <[email protected]>
* [db89d38] stdnum/de/handelsregisternummer.py,
tests/test_de_handelsregisternummer.doctest: Fix the
Handelsregisternummer number matching
This ensures that numbers of 1 digit are also accepted and that
trailing characters are not silently discardede in the validation.
This also adds a few test cases for this and makes "Paderborn
früher Höxter" an alias for "Paderborn".
Closes https://github.com/arthurdejong/python-stdnum/issues/143
2019-07-21 Arthur de Jong <[email protected]>
* [e75b1bf] stdnum/de/handelsregisternummer.py,
tests/test_de_handelsregisternummer.py: Lookup German
Handelsregisternummer in OffeneRegister.de
This supports looking up the German Handelsregisternummer using
the online OffeneRegister.de web service.
2019-07-21 Arthur de Jong <[email protected]>
* [fb72550] tox.ini: Do not require Python 2 for building Sphinx docs
This results in tox using Python 3, mostly to work around
https://sourceforge.net/p/docutils/bugs/365/
2019-07-21 Arthur de Jong <[email protected]>
* [61c762d] tox.ini: Avoid newer pydocstyle
Do not install the latest pydocstyle because it currently breaks
flake8-docstring. This pinning should be removed as soon as
https://gitlab.com/pycqa/flake8-docstrings/issues/36 is resolved.
2019-07-14 Arthur de Jong <[email protected]>
* [ad96b15] stdnum/util.py: Support normalising quotes
See https://github.com/arthurdejong/python-stdnum/issues/150
2019-06-23 Leandro Regueiro <[email protected]>
* [4ad2d9c] stdnum/ad/__init__.py, stdnum/ad/nrt.py,
tests/test_ad_nrt.doctest: Add Andorran TIN
Closes https://github.com/arthurdejong/python-stdnum/pull/145
Closes https://github.com/arthurdejong/python-stdnum/issues/119
2019-06-15 Leandro Regueiro <[email protected]>
* [510a46a] stdnum/cr/cr.py, tests/test_cr_cr.doctest: Add Costa