forked from arthurdejong/python-stdnum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangeLog
More file actions
3815 lines (2454 loc) · 129 KB
/
ChangeLog
File metadata and controls
3815 lines (2454 loc) · 129 KB
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
2019-03-10 Arthur de Jong <arthur@arthurdejong.org>
* [fdeeb9a] 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/oui.dat:
Update database files
2019-03-10 Arthur de Jong <arthur@arthurdejong.org>
* [fbbb550] update/at_postleitzahl.py, update/isil.py,
update/my_bp.py, update/requirements.txt: Switch update scripts
to beautifulsoup4
2019-02-27 Arthur de Jong <arthur@arthurdejong.org>
* [61a8a94] stdnum/ee/ik.py: Add documentation
2018-12-27 Arthur de Jong <arthur@arthurdejong.org>
* [151e0d8] stdnum/ar/cbu.py: Remove broken link
2019-03-10 Arthur de Jong <arthur@arthurdejong.org>
* [3f953f3] stdnum/nz/__init__.py, stdnum/nz/bankaccount.py,
stdnum/nz/banks.dat, tests/test_nz_bankaccount.doctest,
update/nz_banks.py: Add New Zealand bank account number
2019-03-03 Arthur de Jong <arthur@arthurdejong.org>
* [4e25e31] stdnum/md/__init__.py, stdnum/md/idno.py,
tests/test_md_idno.doctest: Add Moldavian IDNO
2019-03-03 Arthur de Jong <arthur@arthurdejong.org>
* [d5d812b] tests/test_bg_egn.doctest: Add more tests for
Bulgarian EGN
2019-03-03 Arthur de Jong <arthur@arthurdejong.org>
* [60cb887] stdnum/mac.py, tests/test_mac.doctest: Rename MAC
check_manufacturer to validate_manufacturer
For consistency with the other validation modules that have
an extra argument to disable or enable certain parts of the
validation.
2019-03-03 Arthur de Jong <arthur@arthurdejong.org>
* [39b8ace] stdnum/lt/asmens.py, tests/test_lt_asmens.doctest:
Add Lithuanian Asmens kodas
2019-02-27 Arthur de Jong <arthur@arthurdejong.org>
* [ab91d87] stdnum/gr/amka.py, tests/test_gr_amka.doctest: Add
Greek AMKA social security number
2019-02-20 Arthur de Jong <arthur@arthurdejong.org>
* [6eadca1] setup.cfg, setup.py, stdnum/__init__.py,
stdnum/bic.py, stdnum/cl/__init__.py, stdnum/co/__init__.py,
stdnum/eu/at_02.py, stdnum/iso6346.py, stdnum/iso9362.py,
stdnum/numdb.py, stdnum/sk/rc.py, stdnum/us/tin.py,
tox.ini, update/at_postleitzahl.py, update/do_whitelists.py,
update/my_bp.py, update/numlist.py: Switch from import-order
to isort
2019-02-17 Arthur de Jong <arthur@arthurdejong.org>
* [9daa1b0] stdnum/ar/cbu.py, stdnum/at/uid.py, stdnum/iban.py,
update/iban.py: Fix typos
2019-02-17 Arthur de Jong <arthur@arthurdejong.org>
* [cc6ffec] stdnum/de/handelsregisternummer.py, stdnum/de/stnr.py,
stdnum/do/cedula.py, stdnum/numdb.py: Improvements reported
by pylint
2019-02-17 Arthur de Jong <arthur@arthurdejong.org>
* [be8e258] stdnum/cu/__init__.py, stdnum/cu/ni.py: Add Cuban
número de identidad
2019-02-11 Andrés R <androdriguez14@gmail.com>
* [0fc0c30] stdnum/do/rnc.py: Return only first response from
DGII lookup
This fixes an issue when response for check_dgii() comes with
2 records instead of one for same RNC.
Closes https://github.com/arthurdejong/python-stdnum/pull/95
2019-02-10 Arthur de Jong <arthur@arthurdejong.org>
* [b4773ae] .travis.yml, setup.py, tox.ini: Add Python 3.7 tests
2019-02-05 Arthur de Jong <arthur@arthurdejong.org>
* [50874a9] stdnum/mx/__init__.py, stdnum/mx/curp.py,
tests/test_mx_curp.doctest: Add Mexican CURP
2019-01-29 Arthur de Jong <arthur@arthurdejong.org>
* [4cb44aa] stdnum/bg/egn.py, stdnum/cz/rc.py, stdnum/dk/cpr.py,
stdnum/lv/pvn.py, stdnum/ro/cnp.py: Call compact in
get_birth_date() functions
This ensures that formatting characters are also removed when
formatted numbers are passed to the get_birth_date() functions.
Closes https://github.com/arthurdejong/python-stdnum/issues/94
2018-12-28 Arthur de Jong <arthur@arthurdejong.org>
* [3f4a08a] stdnum/mac.py, stdnum/oui.dat, tests/test_mac.doctest,
update/oui.py: Add MAC address
This adds validation of MAC (Ethernet) addresses. It will perform
lookups in the IEEE registry for manufacturer names for universally
administered addresses.
Closes https://github.com/arthurdejong/python-stdnum/issues/93
2018-12-27 Arthur de Jong <arthur@arthurdejong.org>
* [d7f7b8e] stdnum/ar/__init__.py, stdnum/ar/dni.py: Add Argentinian
DNI
Closes https://github.com/arthurdejong/python-stdnum/issues/90
2018-12-26 Arthur de Jong <arthur@arthurdejong.org>
* [375f63b] stdnum/at/vnr.py: Add Austrian Versicherungsnummer
2018-11-27 Ilya Vihtinsky <iliaviht@gmail.com>
* [b77c9cd] stdnum/se/__init__.py, stdnum/se/personnummer.py,
tests/test_se_personnummer.doctest: Add Swedish Personnummer
Closes https://github.com/arthurdejong/python-stdnum/pull/88
2018-11-27 Ilya Vihtinsky <iliaviht@gmail.com>
* [d11e5c4] stdnum/no/__init__.py, stdnum/no/fodselsnummer.py,
tests/test_no_fodselsnummer.doctest: Add Norwegian Fødselsnummer
Closes https://github.com/arthurdejong/python-stdnum/pull/88
2018-12-07 Mario Puntin <mario@silix.com.ar>
* [bb24c2f] stdnum/ar/cuit.py: Add format for Argentinian CUIT number
Closes https://github.com/arthurdejong/python-stdnum/pull/89
2018-11-24 Christopher Ormaza <chris.ormaza@gmail.com>
* [069279a] stdnum/ec/ci.py, stdnum/ec/ruc.py: Support Cedula and
RUC of foreigners
Add the case of Cedulas and RUCs of foreigners in Ecuador,
as Venezuelans and Colombians
Closes https://github.com/arthurdejong/python-stdnum/pull/87
2018-11-12 Gustavo Valverde <gustavo@iterativo.do>
* [e31ff95] stdnum/do/ncf.py, stdnum/do/rnc.py: Use HTTPS for WSDL
as HTTP was deprecated
The regulator changed their site to use HTTPS by default; making
this resource unavailable through HTTP.
Closes https://github.com/arthurdejong/python-stdnum/pull/85
2018-11-11 Arthur de Jong <arthur@arthurdejong.org>
* [8677d04] setup.cfg: Make the multi-line operator place explicit
Recent versions of flake8 changed the defaults of the errors
to ignore.
2018-10-14 Arthur de Jong <arthur@arthurdejong.org>
* [a68f3ca] ChangeLog, NEWS, README, docs/index.rst,
docs/stdnum.bitcoin.rst, docs/stdnum.iso11649.rst,
docs/stdnum.mu.nid.rst, docs/stdnum.no.iban.rst,
docs/stdnum.no.kontonr.rst, stdnum/__init__.py,
stdnum/at/postleitzahl.dat, stdnum/be/banks.dat, stdnum/cn/loc.dat,
stdnum/eu/nace.dat, stdnum/imsi.dat, stdnum/isbn.dat,
update/my_bp.py: Get files ready for 1.10 release
2018-10-14 Arthur de Jong <arthur@arthurdejong.org>
* [6b85f91] stdnum/iban.py, tests/test_iban.doctest: Raise
InvalidComponent on unknown IBAN country
This partially reverts 58ea7b2.
Closes https://github.com/arthurdejong/python-stdnum/issues/82
2018-10-09 Arthur de Jong <arthur@arthurdejong.org>
* [58ea7b2] stdnum/iban.py, tests/test_iban.doctest: Fix issue
with minimal IBAN
This ensures that an IBAN with a missing bban part and unknown
country code (while still having a valid MOD 97,10 checksum)
is considered valid.
Closes https://github.com/arthurdejong/python-stdnum/issues/84
2018-09-30 Arthur de Jong <arthur@arthurdejong.org>
* [54c3650] stdnum/bitcoin.py, tests/test_bitcoin.doctest:
Bitcoin address
This adds validation of Bitcoin addresses. No check is done that
the addresses actually exist but only that they are syntactically
correct.
Closes https://github.com/arthurdejong/python-stdnum/issues/80
2018-09-21 Levin Rickert <me@levrik.io>
* [510ee93] stdnum/ru/__init__.py: Add vat alias for Russia
2018-08-30 Gerard Dalmau <gdalmau@gisce.net>
* [e58c09a] tests/test_es_cups.doctest,
tests/test_es_referenciacatastral.doctest: Fix ES test descriptions
2018-08-30 Gerard Dalmau <gdalmau@gisce.net>
* [4a76779] stdnum/es/cif.py, stdnum/es/nif.py,
tests/test_es_nif.doctest: Improve CIF and NIF validation
NIF starting with K, L or M are NIF instead of CIF.
This also adds NIF-DNI-CIF-NIE classification tests.
Closes https://github.com/arthurdejong/python-stdnum/pull/81
2018-08-22 Arthur de Jong <arthur@arthurdejong.org>
* [5af712b] stdnum/no/iban.py, stdnum/no/kontonr.py,
tests/test_iban.doctest: Add Norwegian bank account number
This includes validation of Norwegian bank account numbers and
conversion to IBAN.
Closes https://github.com/arthurdejong/python-stdnum/issues/79
2018-08-08 Arthur de Jong <arthur@arthurdejong.org>
* [ec39d86] stdnum/mu/__init__.py, stdnum/mu/nid.py,
tests/test_mu_nid.doctest: Add Mauritian national ID number
Thans to Bradley Smith for providing the needed information to
implement this.
See
https://lists.arthurdejong.org/python-stdnum-users/2018/msg00003.html
2018-05-24 Esben Toke Christensen <esben.christensen@visma.com>
* [676d62c] stdnum/iso11649.py, tests/test_iso11649.doctest:
Add iso11649 structured creditor reference
Closes https://github.com/arthurdejong/python-stdnum/pull/72
2018-06-18 PanderMusubi <pander@users.sourceforge.net>
* [65b5bfe] README, stdnum/nl/brin.py, stdnum/nl/bsn.py,
stdnum/nl/btw.py, stdnum/nl/onderwijsnummer.py,
stdnum/nl/postcode.py: Improved texts and added links
Closes https://github.com/arthurdejong/python-stdnum/pull/75
2018-05-19 Arthur de Jong <arthur@arthurdejong.org>
* [6e776ae] stdnum/do/ncf.py, tests/test_do_ncf.py: Switch the
NCF online check to the new form
This tries to screen-scrape the new DGII form that is used to
validate the new format of NCF numbers.
Closes https://github.com/arthurdejong/python-stdnum/issues/71
2018-05-01 Arthur de Jong <arthur@arthurdejong.org>
* [04f78fb] online_check/stdnum.wsgi: Fix encoding issues in
online check
This ensures that all text is unicode internally and encoded to
UTF-8 on response.
2018-05-01 Arthur de Jong <arthur@arthurdejong.org>
* [bae6f19] stdnum/mx/rfc.py, tests/test_mx_rfc.doctest: Fix an
issue with format of Mexican tax numbers
Fix an issue where the format accepted a mix of personal and
company numberer in validation causing in a raised ValueError
exception.
2018-05-01 Arthur de Jong <arthur@arthurdejong.org>
* [08d1053] stdnum/es/referenciacatastral.py, stdnum/mx/rfc.py,
stdnum/util.py, tests/test_util.doctest: Make unicode conversion
standard
A few modules use non-ASCII characters in numbers. This
introduces a to_unicode() function in util so that it can be
used by multiple modules.
2018-04-14 Arthur de Jong <arthur@arthurdejong.org>
* [d9defc8] ChangeLog, NEWS, README, docs/index.rst,
docs/stdnum.at.postleitzahl.rst, docs/stdnum.at.tin.rst,
docs/stdnum.be.iban.rst, docs/stdnum.de.handelsregisternummer.rst,
docs/stdnum.de.stnr.rst, docs/stdnum.figi.rst,
docs/stdnum.me.iban.rst, setup.py, stdnum/__init__.py,
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/us/ein.dat, update/isil.py: Get files
ready for 1.9 release
2018-04-12 Arthur de Jong <arthur@arthurdejong.org>
* [e200656] stdnum/iban.py, tests/test_be_iban.doctest: Add an
extra test for Belgian IBANs
A Belgian IBAN should not end with 00. This also fixes a docstring
and comment in the IBAN module.
2018-04-10 Arthur de Jong <arthur@arthurdejong.org>
* [e6739be] stdnum/imsi.dat, stdnum/imsi.py, tests/test_imsi.doctest,
update/imsi.py: Correctly split IMSI with multi-length MNC
Ensures that imsi.split() will correctly split the IMSI into
an MCC, MNC and MSIN even if not all MNCs within a single MCC
have the same length. This has the downside of not being able
to guess the MNC length in some cases.
This also omits empty information from the data file and updates
the data file from Wikipedia.
Closes https://github.com/arthurdejong/python-stdnum/issues/68
2018-04-09 Arthur de Jong <arthur@arthurdejong.org>
* [2541a22] online_check/check.js: Improve online check animation
This speeds up the animation, collapsing the list before
performing the server request and disable the slide animation
on history navigation.
2018-04-09 Arthur de Jong <arthur@arthurdejong.org>
* [147b84b] online_check/stdnum.wsgi: Ensure API requests are
cached separately
This ensures that requests that browsers make using XMLHttpRequest
(they set the X-Requested-With header) are cached separately
from normal requests.
2018-04-09 Arthur de Jong <arthur@arthurdejong.org>
* [8204ac6] stdnum/do/ncf.py: Support new style of NCF numbers
This adds support for validating Dominican Republic invoice
numbers that should be used since from 2018-05-01.
http://www.dgii.gov.do/contribuyentes/personasFisicas/inicioOperaciones/ComprobantesFiscales/Paginas/SecuenciaDeNCF.aspx
Closes https://github.com/arthurdejong/python-stdnum/issues/69
2018-03-25 Arthur de Jong <arthur@arthurdejong.org>
* [918d483] stdnum/figi.py, tests/test_figi.doctest: Add Financial
Instrument Global Identifier
2018-03-23 Arthur de Jong <arthur@arthurdejong.org>
* [ceb3c62] stdnum/de/__init__.py,
stdnum/de/handelsregisternummer.py,
tests/test_de_handelsregisternummer.doctest: Add German company
registry numbers
Based on the implementation provided by Markus Törnqvist and
Lari Haataja of Holvi Payment Services.
2018-03-19 Arthur de Jong <arthur@arthurdejong.org>
* [fec1685] stdnum/at/tin.py: Also ignore other letters with
possible umlaut
Fixes 98d11a3
Closes https://github.com/arthurdejong/python-stdnum/pull/67
2018-03-18 Arthur de Jong <arthur@arthurdejong.org>
* [98d11a3] stdnum/at/fa.dat, stdnum/at/tin.py,
tests/test_at_tin.doctest: Add Austrian Abgabenkontonummer
Based on the implementation provided by Mohammed Salman of Holvi.
Closes https://github.com/arthurdejong/python-stdnum/pull/50
2018-03-17 Arthur de Jong <arthur@arthurdejong.org>
* [ab15e20] stdnum/at/__init__.py: Fix import order
Fixes ee263a5
2018-03-17 Arthur de Jong <arthur@arthurdejong.org>
* [ee263a5] setup.cfg, stdnum/at/__init__.py,
stdnum/at/postleitzahl.dat, stdnum/at/postleitzahl.py,
stdnum/nl/__init__.py, update/at_postleitzahl.py: Add Austrian
postal code
This also fixes the name of the Dutch postal_code alias and
tunes the tests.
2018-03-17 Arthur de Jong <arthur@arthurdejong.org>
* [8c29fbf] stdnum/me/__init__.py, stdnum/me/iban.py,
tests/test_iban.doctest: Add support for Montenegro IBAN format
This adds further checks to the country-specific part of the
IBAN for Montenegro IBANs.
2018-03-11 Arthur de Jong <arthur@arthurdejong.org>
* [647dfea] stdnum/de/stnr.py, tests/test_de_stnr.doctest: Add
German Steuernummer
Based on the implementation provided by Mohammed Salman of Holvi.
This is the old tax number that is being replaced by the
Steuerliche Identifikationsnummer. The number has a regional form
(which is used most often) and a national form.
Closes https://github.com/arthurdejong/python-stdnum/pull/49
2018-02-28 Esa Halsti <esa.halsti@taitoa.fi>
* [6e30cf5] stdnum/fi/hetu.py, tests/test_fi_hetu.doctest: Add
validation for "individual" part of hetu
The range between 900 and 999 is reserved for temporary identifiers
and is not given to any real person.
Closes https://github.com/arthurdejong/python-stdnum/pull/66
2018-03-10 Arthur de Jong <arthur@arthurdejong.org>
* [70dc091] setup.cfg: Support building a universal wheel
2018-02-19 Arthur de Jong <arthur@arthurdejong.org>
* [75138a4] stdnum/do/cedula.py, tests/test_do_cedula.py: Add
check_dgii() to stdnum.do.cedula module
This exposes the stdnum.do.rnc.check_dgii() in the stdnum.do.cedula
module with but rename the rnc result entry to cedula.
Closes https://github.com/arthurdejong/python-stdnum/issues/63
2018-02-19 Arthur de Jong <arthur@arthurdejong.org>
* [92d751c] stdnum/do/ncf.py, stdnum/do/rnc.py: Fix PySimpleSOAP
DGII result parsing issue
This strips the wrapper that PySimpleSOAP puts around results
from the DGII PySimpleSOAP SOAP call.
Closes https://github.com/arthurdejong/python-stdnum/issues/64
Closes https://github.com/arthurdejong/python-stdnum/issues/65
2018-02-19 Arthur de Jong <arthur@arthurdejong.org>
* [81947a2] docs/index.rst: Improve get_cc_module() documentation
2018-02-14 Arthur de Jong <arthur@arthurdejong.org>
* [5cbba25] setup.cfg, stdnum/al/__init__.py, stdnum/ar/__init__.py,
stdnum/at/__init__.py, stdnum/be/__init__.py, stdnum/be/iban.py,
stdnum/cl/__init__.py, stdnum/co/__init__.py,
stdnum/cz/__init__.py, stdnum/dk/__init__.py,
stdnum/do/__init__.py, stdnum/ec/__init__.py,
stdnum/ee/__init__.py, stdnum/es/__init__.py, stdnum/exceptions.py,
stdnum/fi/__init__.py, stdnum/fr/__init__.py,
stdnum/hr/__init__.py, stdnum/hu/__init__.py,
stdnum/is_/__init__.py, stdnum/it/__init__.py,
stdnum/lt/__init__.py, stdnum/lu/__init__.py,
stdnum/lv/__init__.py, stdnum/mc/__init__.py,
stdnum/mx/__init__.py, stdnum/nl/__init__.py,
stdnum/no/__init__.py, stdnum/pl/__init__.py,
stdnum/pt/__init__.py, stdnum/ro/__init__.py,
stdnum/rs/__init__.py, stdnum/si/__init__.py,
stdnum/sk/__init__.py, stdnum/sm/__init__.py, tests/test_do_ncf.py,
tests/test_do_rnc.py, update/be_banks.py, update/numlist.py:
Update the flake8 ignore list
Re-enable the flake8 test for unused imports by explicitly marking
imports for namespace purposes. This allows us to remove a few
unused imports.
A few more cleanups that allow us to reduce the number of
ignored flake8 ignored tests. The remaining ignored tests are
now documented.
Ignore a flake8 warning about print statements because we use
print in the update scripts.
2018-02-11 Arthur de Jong <arthur@arthurdejong.org>
* [201960c] stdnum/be/iban.py, stdnum/bic.py, stdnum/iban.py,
tests/test_be_iban.doctest: Add test for Belgian IBANs
This adds a test for IBANs that were found online together with
a BIC code to test the IBAN to swift code mapping.
This also supports some extra separators in IBAN and BIC numbers
and fixes a check digit calculation issue in the Belgian account
number check digits.
2018-02-10 Arthur de Jong <arthur@arthurdejong.org>
* [56002fa] stdnum/be/banks.dat, stdnum/be/iban.py,
tests/test_iban.doctest, update/be_banks.py,
update/requirements.txt: Add support for Belgian IBAN format
This adds further checks to the country-specific part of the
IBAN for Belgian IBANs.
Closes https://github.com/arthurdejong/python-stdnum/issues/62
2018-02-10 Arthur de Jong <arthur@arthurdejong.org>
* [c611b27] stdnum/bic.py: Support spaces in BIC codes
BIC codes are sometimes written in a space-separated form this
correctly cleans the spaces for compact representation.
2018-02-06 Arthur de Jong <arthur@arthurdejong.org>
* [5fd1ae0] stdnum/do/ncf.py, stdnum/do/rnc.py, stdnum/eu/vat.py,
stdnum/tr/tckimlik.py, stdnum/util.py: Allow configuring SOAP
request timeout
This adds a timeout parameter to all checks that use a SOAP web
service to reduce the blocking time. The default timeout for
all checks is 30 seconds.
2018-01-07 Chris Lamb <chris@chris-lamb.co.uk>
* [c113613] stdnum/eu/vat.py: Exclude EU country codes from
documentation
Whilst working on the Reproducible Builds effort [0], we noticed
that python-stdnum could not be built reproducibly as it relies
on a stable set ordering when generating the documentation.
This has been filed in Debian as #88652
[0] https://reproducible-builds.org/ [1]
https://bugs.debian.org/886522
Closes: https://github.com/arthurdejong/python-stdnum/pull/61
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2018-01-06 Arthur de Jong <arthur@arthurdejong.org>
* [9841bae] ChangeLog, NEWS, stdnum/__init__.py: Get files ready
for 1.8.1 release
2018-01-06 Arthur de Jong <arthur@arthurdejong.org>
* [820c233] README: Fix feedback section in README to be valid RST
2018-01-06 Arthur de Jong <arthur@arthurdejong.org>
* [ab8a871] setup.py: Update long description in compatible way
This ensures that the README is read correctly on all supported
Python interpreters.
Fixes 1304122
2018-01-05 5j9 <5j9@users.noreply.github.com>
* [1304122] setup.py: setup.py: Open README with utf-8 encoding
Fixes #59
2018-01-03 Arthur de Jong <arthur@arthurdejong.org>
* [ae89e82] ChangeLog, MANIFEST.in, NEWS, README, docs/conf.py,
docs/index.rst, docs/stdnum.casrn.rst, docs/stdnum.do.ncf.rst,
docs/stdnum.eu.banknote.rst, docs/stdnum.in_.aadhaar.rst,
docs/stdnum.in_.pan.rst, setup.cfg, stdnum/__init__.py,
update/numlist.py: Get files ready for 1.8 release
2018-01-03 Arthur de Jong <arthur@arthurdejong.org>
* [db9b278] tox.ini: Fix Sphinx dependency name
2018-01-03 Arthur de Jong <arthur@arthurdejong.org>
* [fbb9d24] docs/index.rst, stdnum/__init__.py: Move get_cc_module()
function to package for public use
2018-01-03 Arthur de Jong <arthur@arthurdejong.org>
* [7bb0e5f] setup.py, stdnum/util.py: Try the non-caching zeep
client on older versions
This uses the "normal" Client class from zeep if CachingClient
is not available (this is the case on older zeep versions).
This also records (and documents) the dependencies for SOAP
libraries in setup.py.
2018-01-01 Arthur de Jong <arthur@arthurdejong.org>
* [6d7ba46] .travis.yml: Add a Travis configuration file
2018-01-01 Arthur de Jong <arthur@arthurdejong.org>
* [db7be06] stdnum/do/ncf.py, stdnum/do/rnc.py, tox.ini: Fix Python
2.6 compatibility
2018-01-01 Arthur de Jong <arthur@arthurdejong.org>
* [8107f08] stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/imsi.dat,
stdnum/isbn.dat, stdnum/us/ein.dat: Update database files
Note that the Swift IBAN Registry in txt format is currently
unavailable so hasn't been updated.
2018-01-01 Arthur de Jong <arthur@arthurdejong.org>
* [e781eee] MANIFEST.in, tox.ini, update/README, 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/my_bp.py,
update/numlist.py, update/requirements.txt: Move update scripts
to own directory
This moves all the update scripts to their own directory so they
don't clutter the toplevel directory.
This also ensures that the scripts are passed through flake8
and makes some adjustments for that alongside a few other cleanups.
2017-12-01 srikanthlogic <srik.lak@gmail.com>
* [442aa82] stdnum/in_/pan.py, tests/test_in_pan.doctest: Add
Indian PAN
Closes https://github.com/arthurdejong/python-stdnum/pull/57
2017-12-31 Arthur de Jong <arthur@arthurdejong.org>
* [8a34b4e] stdnum/util.py: Correctly quote regular expression
Fixes a6ae1d0.
2017-12-31 Arthur de Jong <arthur@arthurdejong.org>
* [271b9e4] docs/stdnum.is_.kennitala.rst, docs/stdnum.is_.vsk.rst,
tox.ini: Add Sphinx documentation checks
This also fixes an escaping issue in the automatically generated
documentation for modules that end with an underscore.
2017-12-06 Arthur de Jong <arthur@arthurdejong.org>
* [be094f8] README, docs/conf.py, docs/index.rst, getnumlist.py,
setup.py, stdnum/__init__.py: Use README as package long
description
This also shortens the stdnum module docstring and updates the
Sphinx configuration.
2017-12-01 srikanthlogic <srik.lak@gmail.com>
* [c576bc4] stdnum/in_/__init__.py, stdnum/in_/aadhaar.py: Add
Indian Aadhaar
Closes https://github.com/arthurdejong/python-stdnum/pull/56
2017-11-26 Arthur de Jong <arthur@arthurdejong.org>
* [bafdb70] stdnum/casrn.py, tests/test_casrn.doctest: Add CAS
Registry Number
This adds validation of the Chemical Abstracts Service Registry
Number.
2017-11-24 Arthur de Jong <arthur@arthurdejong.org>
* [d5f97e9] online_check/check.js, online_check/stdnum.wsgi:
Change output of online lookups
This puts the number before the number name to make it a little
clearer.
2017-11-24 Arthur de Jong <arthur@arthurdejong.org>
* [f7b4615] online_check/check.js: Store online check numbers
in history
This updates the browser history with with the numbers that
were checked so that you can easily go back and forth between
checked number.
2017-11-24 Arthur de Jong <arthur@arthurdejong.org>
* [7cb114b] online_check/stdnum.wsgi: Correctly escape number for
use in attribute
2017-11-26 Arthur de Jong <arthur@arthurdejong.org>
* [90067f7] tests/test_eu_banknote.doctest: Fix incorrect banknote
test
Also add a few verified correct numbers.
Fixes b7b812c.
2017-11-22 Arthur de Jong <arthur@arthurdejong.org>
* [b7b812c] stdnum/eu/banknote.py, tests/test_eu_banknote.doctest:
Add Euro bank notes serial number
This adds validation of serial numbers that appear on Euro bills.
2017-11-02 Arthur de Jong <arthur@arthurdejong.org>
* [a6ae1d0] docs/index.rst, docs/stdnum.bic.rst,
docs/stdnum.iso9362.rst, stdnum/bic.py, stdnum/iso9362.py,
stdnum/util.py: Rename stdnum.iso9362 to stdnum.bic
The new name is more descriptive and easier to remember. This
makes stdnum.iso9362 a compatibility module that can be imported
with the old name but provides a deprecation warning.
2017-10-22 Arthur de Jong <arthur@arthurdejong.org>
* [6be1754] stdnum/util.py: Support zeep as preferred SOAP library
This tries zeep, suds (suds-jurko) and falls back to using
pysimplesoap for performing the SOAP requests. From those zeep
seems to be the best supported implementation.
2017-10-22 Arthur de Jong <arthur@arthurdejong.org>
* [9ab1d66] stdnum/eu/vat.py, tests/test_eu_vat.py: Add tests for
the VIES VAT validation functions
These tests are not normally run as part of the normal test suite
and have to be explicitly enabled by setting the ONLINE_TESTS
environment variable to avoid overloading these online services.
2017-10-18 Arthur de Jong <arthur@arthurdejong.org>
* [ab21159] stdnum/do/ncf.py, tests/test_do_ncf.py: Add
stdnum.do.ncf.check_dgii()
This adds functions for querying the Dirección General de
Impuestos Internos (DGII) API to check if the RNC and NCF
combination provided is valid.
2017-10-18 Arthur de Jong <arthur@arthurdejong.org>
* [6b09c5d] stdnum/do/rnc.py, tests/test_do_rnc.py, tox.ini:
Add stdnum.do.rnc.check_dgii() and search_dgii()
This adds functions for querying the Dirección General de
Impuestos Internos (DGII) API to validate the RNC and search
the register by keyword.
2017-10-16 Arthur de Jong <arthur@arthurdejong.org>
* [665bf7a] stdnum/do/ncf.py, tests/test_do_ncf.doctest: Add
Dominican Republic receipt number (NCF)
This number does not have a check digit but uses a distinctive
enough format that it should not be too great of a problem.
2017-10-14 Arthur de Jong <arthur@arthurdejong.org>
* [4ab1e3b] stdnum/eu/vat.py, stdnum/tr/tckimlik.py, stdnum/util.py:
Cache SOAP client in get_soap_client()
This caches the instantiated SOAP client classes in the util
module instead of doing the caching in every module that performs
requests.
2017-10-18 Arthur de Jong <arthur@arthurdejong.org>
* [cecd35c] getdowhitelists.py: Add a script for updating RNC and
Cedula whitelists
2017-10-13 Arthur de Jong <arthur@arthurdejong.org>
* [399321b] stdnum/do/rnc.py, tests/test_do_rnc.doctest: Also add
a whitelist for Dominican Republic RNC
Some RNCs are apparently valid while having an incorrect check
digit (though most appear to be inactive). There also appear to
be valid RNCs that do not have 9 digits.
2017-10-13 Arthur de Jong <arthur@arthurdejong.org>
* [58511dc] stdnum/do/cedula.py, tests/test_do_cedula.doctest:
Add a few new numbers to the Cedula whitelist
These numbers were found to be valid but had an invalid check
digit nonetheless (though most appear to be inactive). Also
there appear to be a few valid Cedula that do not have 11 digits.
2017-10-13 David Arnold <dar@devco.co>
* [74c1721] stdnum/util.py, tests/test_util.doctest: Handle unicode
arguments in get_cc_module()
Closes https://github.com/arthurdejong/python-stdnum/issues/54
2017-09-15 Arthur de Jong <arthur@arthurdejong.org>
* [12cd072] stdnum/eu/at_02.py: Fix spelling errors
2017-09-12 Arthur de Jong <arthur@arthurdejong.org>
* [4496ffe] ChangeLog, NEWS, README, docs/index.rst,
docs/stdnum.ca.bn.rst, docs/stdnum.ca.sin.rst,
docs/stdnum.de.idnr.rst, docs/stdnum.ee.registrikood.rst,
docs/stdnum.fi.veronumero.rst, docs/stdnum.gb.upn.rst,
stdnum/__init__.py: Get files ready for 1.7 release
2017-09-12 Arthur de Jong <arthur@arthurdejong.org>
* [28092b3] stdnum/damm.py: Add example with custom table to Damm
2017-09-11 Arthur de Jong <arthur@arthurdejong.org>
* [24d4a76] stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/imsi.dat,
stdnum/isbn.dat, stdnum/isil.dat: Update database files
2017-09-11 Arthur de Jong <arthur@arthurdejong.org>
* [5071636] getisbn.py: Update getisbn to allow TLSv1
The www.isbn-international.org site uses TLSv1 which seems to be
blocked by recent Python/OpenSSL combinations unless configured
otherwise.
2017-09-11 Arthur de Jong <arthur@arthurdejong.org>
* [edaad05] setup.cfg, tox.ini: Run flake8 from tox
2017-09-10 Arthur de Jong <arthur@arthurdejong.org>
* [0ce5d0b] stdnum/bg/egn.py, stdnum/cz/dic.py, stdnum/dk/cpr.py,
stdnum/es/cups.py, stdnum/es/referenciacatastral.py,
stdnum/eu/nace.py, stdnum/fr/nir.py, stdnum/fr/siren.py,
stdnum/iban.py, stdnum/it/codicefiscale.py, stdnum/lv/pvn.py,
stdnum/numdb.py, stdnum/ro/cnp.py, stdnum/util.py: Minor code
improvements (mostly PEP8)
2017-09-10 Arthur de Jong <arthur@arthurdejong.org>
* [e468c1b] stdnum/ch/vat.py, stdnum/cn/ric.py, stdnum/do/cedula.py,
stdnum/ee/ik.py, stdnum/ee/registrikood.py, stdnum/es/nif.py,
stdnum/fi/__init__.py, stdnum/fi/hetu.py, stdnum/gb/nhs.py,
stdnum/gb/upn.py, stdnum/gb/vat.py, stdnum/is_/kennitala.py,
stdnum/it/codicefiscale.py, stdnum/nl/onderwijsnummer.py,
stdnum/numdb.py, stdnum/rs/pib.py, stdnum/sk/rc.py,
stdnum/us/tin.py: Make import ordering consistent
2017-09-10 Arthur de Jong <arthur@arthurdejong.org>
* [1c27639] stdnum/al/nipt.py, stdnum/ar/cbu.py, stdnum/ar/cuit.py,
stdnum/at/businessid.py, stdnum/at/uid.py, stdnum/au/abn.py,
stdnum/au/acn.py, stdnum/au/tfn.py, stdnum/be/vat.py,
stdnum/bg/egn.py, stdnum/bg/pnf.py, stdnum/bg/vat.py,
stdnum/br/cnpj.py, stdnum/br/cpf.py, stdnum/ca/bn.py,
stdnum/ca/sin.py, stdnum/ch/ssn.py, stdnum/ch/uid.py,
stdnum/ch/vat.py, stdnum/cl/rut.py, stdnum/cn/ric.py,
stdnum/co/nit.py, stdnum/cusip.py, stdnum/cy/vat.py,
stdnum/cz/dic.py, stdnum/cz/rc.py, stdnum/damm.py,
stdnum/de/idnr.py, stdnum/de/vat.py, stdnum/de/wkn.py,
stdnum/dk/cpr.py, stdnum/dk/cvr.py, stdnum/do/cedula.py,
stdnum/do/rnc.py, stdnum/ean.py, stdnum/ec/ci.py, stdnum/ec/ruc.py,
stdnum/ee/ik.py, stdnum/ee/kmkr.py, stdnum/ee/registrikood.py,
stdnum/es/ccc.py, stdnum/es/cif.py, stdnum/es/cups.py,
stdnum/es/dni.py, stdnum/es/iban.py, stdnum/es/nie.py,
stdnum/es/nif.py, stdnum/es/referenciacatastral.py,
stdnum/eu/at_02.py, stdnum/eu/eic.py, stdnum/eu/nace.py,
stdnum/eu/vat.py, stdnum/fi/alv.py, stdnum/fi/associationid.py,
stdnum/fi/hetu.py, stdnum/fi/veronumero.py, stdnum/fi/ytunnus.py,
stdnum/fr/nif.py, stdnum/fr/nir.py, stdnum/fr/siren.py,
stdnum/fr/siret.py, stdnum/fr/tva.py, stdnum/gb/nhs.py,
stdnum/gb/sedol.py, stdnum/gb/upn.py, stdnum/gb/vat.py,
stdnum/gr/vat.py, stdnum/grid.py, stdnum/hr/oib.py,
stdnum/hu/anum.py, stdnum/iban.py, stdnum/ie/pps.py,
stdnum/ie/vat.py, stdnum/imei.py, stdnum/imo.py,
stdnum/imsi.py, stdnum/is_/kennitala.py, stdnum/is_/vsk.py,
stdnum/isan.py, stdnum/isbn.py, stdnum/isil.py, stdnum/isin.py,
stdnum/ismn.py, stdnum/iso6346.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/iso9362.py, stdnum/issn.py, stdnum/it/codicefiscale.py,
stdnum/it/iva.py, stdnum/lei.py, stdnum/lt/pvm.py,
stdnum/lu/tva.py, stdnum/luhn.py, stdnum/lv/pvn.py,
stdnum/mc/tva.py, stdnum/meid.py, stdnum/mt/vat.py,
stdnum/mx/rfc.py, stdnum/my/nric.py, stdnum/nl/brin.py,
stdnum/nl/bsn.py, stdnum/nl/btw.py, stdnum/nl/onderwijsnummer.py,
stdnum/nl/postcode.py, stdnum/no/mva.py, stdnum/no/orgnr.py,
stdnum/numdb.py, stdnum/pl/nip.py, stdnum/pl/pesel.py,
stdnum/pl/regon.py, stdnum/pt/nif.py, stdnum/ro/cf.py,
stdnum/ro/cnp.py, stdnum/rs/pib.py, stdnum/ru/inn.py,
stdnum/se/orgnr.py, stdnum/se/vat.py, stdnum/si/ddv.py,
stdnum/sk/dph.py, stdnum/sm/coe.py, stdnum/tr/__init__.py,
stdnum/tr/tckimlik.py, stdnum/us/atin.py, stdnum/us/ein.py,
stdnum/us/itin.py, stdnum/us/ptin.py, stdnum/us/rtn.py,
stdnum/us/ssn.py, stdnum/us/tin.py, stdnum/verhoeff.py: Docstring
improvements
2017-09-08 Arthur de Jong <arthur@arthurdejong.org>
* [2cc39ea] stdnum/cz/dic.py, tests/test_eu_vat.doctest: Fix Czech
DIČ check digit calculation
This fixes a bug in the check digit calculation for the 9-digit
numbers that start with a 6 for individuals without a RČ. This
also adds a few tests for Czech VAT numbers.
See https://github.com/arthurdejong/python-stdnum/issues/51
2017-09-04 Arthur de Jong <arthur@arthurdejong.org>
* [d24a439] stdnum/ee/registrikood.py,
tests/test_ee_registrikood.doctest: Add Estonian Registrikood
This is based on what was done by Mohammed Salman of Holvi. This
adds more tests and validates the check digit.
This uses the check digit algorithm from Isikukood which seems
to work with all tested numbers although there is no confirmation
that this is the correct algorithm.
2017-08-25 Mohammed Salman <mohammed@holvi.com>
* [53cc0dc] stdnum/de/idnr.py, tests/test_de_idnr.doctest: Add
support for German tax id number
2017-08-30 Arthur de Jong <arthur@arthurdejong.org>
* [a71a1ac] stdnum/isbn.py, tests/test_isbn.doctest: Check bookland
code in ISBN
This ensures that an InvalidComponent() exception is raised when
an unknown EAN bookland code is found. It will also raise this
exception when using to_isbn10() when not using the 978 code.
2017-08-28 Arthur de Jong <arthur@arthurdejong.org>
* [8f6fa7d] setup.cfg, stdnum/iban.py, stdnum/ismn.py,
stdnum/meid.py, stdnum/numdb.py, stdnum/util.py,
tests/numdb-test.dat, tests/test_util.doctest: Ensure 100%
branch coverage
This ensures that the tests fail if 100% branch coverage is
not achieved. It also adds some pragma statements for code that
cannot be covered or is Python version dependent.
Furthermore, the get_module_list() function was removed
from stdnum.util and more tests were made from stdnum.util
and stdnum.numdb. The functionality to call format() in a
country-specific IBAN implementation was also dropped because
it was not used.
2017-08-27 Arthur de Jong <arthur@arthurdejong.org>
* [fbc92f8] stdnum/gb/upn.py: Add English Unique Pupil Number (UPN)
2017-08-26 Arthur de Jong <arthur@arthurdejong.org>
* [b8389eb] stdnum/ca/bn.py, tests/test_ca_bn.doctest: Add Canadian
Business Number (BN)
2017-08-26 Arthur de Jong <arthur@arthurdejong.org>