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
3234 lines (2084 loc) · 109 KB
/
ChangeLog
File metadata and controls
3234 lines (2084 loc) · 109 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
2018-01-06 Arthur de Jong <[email protected]>
* [820c233] README: Fix feedback section in README to be valid RST
2018-01-06 Arthur de Jong <[email protected]>
* [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 <[email protected]>
* [1304122] setup.py: setup.py: Open README with utf-8 encoding
Fixes #59
2018-01-03 Arthur de Jong <[email protected]>
* [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 <[email protected]>
* [db9b278] tox.ini: Fix Sphinx dependency name
2018-01-03 Arthur de Jong <[email protected]>
* [fbb9d24] docs/index.rst, stdnum/__init__.py: Move get_cc_module()
function to package for public use
2018-01-03 Arthur de Jong <[email protected]>
* [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 <[email protected]>
* [6d7ba46] .travis.yml: Add a Travis configuration file
2018-01-01 Arthur de Jong <[email protected]>
* [db7be06] stdnum/do/ncf.py, stdnum/do/rnc.py, tox.ini: Fix Python
2.6 compatibility
2018-01-01 Arthur de Jong <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [8a34b4e] stdnum/util.py: Correctly quote regular expression
Fixes a6ae1d0.
2017-12-31 Arthur de Jong <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [7cb114b] online_check/stdnum.wsgi: Correctly escape number for
use in attribute
2017-11-26 Arthur de Jong <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [cecd35c] getdowhitelists.py: Add a script for updating RNC and
Cedula whitelists
2017-10-13 Arthur de Jong <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [12cd072] stdnum/eu/at_02.py: Fix spelling errors
2017-09-12 Arthur de Jong <[email protected]>
* [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 <[email protected]>
* [28092b3] stdnum/damm.py: Add example with custom table to Damm
2017-09-11 Arthur de Jong <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [edaad05] setup.cfg, tox.ini: Run flake8 from tox
2017-09-10 Arthur de Jong <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [53cc0dc] stdnum/de/idnr.py, tests/test_de_idnr.doctest: Add
support for German tax id number
2017-08-30 Arthur de Jong <[email protected]>
* [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 <[email protected]>
* [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 <[email protected]>
* [fbc92f8] stdnum/gb/upn.py: Add English Unique Pupil Number (UPN)
2017-08-26 Arthur de Jong <[email protected]>
* [b8389eb] stdnum/ca/bn.py, tests/test_ca_bn.doctest: Add Canadian
Business Number (BN)
2017-08-26 Arthur de Jong <[email protected]>
* [efd2eb9] stdnum/ca/__init__.py, stdnum/ca/sin.py: Add Canadian
Social Insurance Number (SIN)
2017-08-24 Arthur de Jong <[email protected]>
* [b8e12d6] setup.cfg: Ensure all Python files are in coverage report
2017-08-17 Mohammed Salman <[email protected]>
* [0c91b43] stdnum/fi/veronumero.py: Implement Finnish individual
tax number validation
2017-07-11 Arthur de Jong <[email protected]>
* [bd0c7c7] online_check/check.js, online_check/stdnum.wsgi,
online_check/template.html: Include search term in online form
This also makes the Javascript regular expression used for
highlighting links the same as the Python equivalent.
2017-06-02 Arthur de Jong <[email protected]>
* [81446fd] stdnum/iso7064/mod_97_10.py: Use slightly more
compact code
This changes the alphanumeric to numeric translation to be
slightly more compact and slightly faster.
2017-04-16 Arthur de Jong <[email protected]>
* [ed9ac5b] tests/test_isbn.doctest: Add a few ISBNs found online
This adds a number of ISBNs found online from various sources
to the test suite.
2017-04-15 Arthur de Jong <[email protected]>
* [57c12d8] stdnum/ismn.py, tests/test_ismn.doctest: An ISMN can
only be 10 or 13 digits
This also adds the test that an ISMN should start with 9790.
2017-04-15 Arthur de Jong <[email protected]>
* [6fb2e89] stdnum/isbn.py, tests/test_isbn.doctest: Fix conversion
of 9 digit ISBN to ISBN13
2017-04-13 Arthur de Jong <[email protected]>
* [5604d91] docs/index.rst, setup.py, stdnum/fr/nir.py,
stdnum/fr/siren.py, stdnum/gb/nhs.py, stdnum/isil.py,
stdnum/iso6346.py, stdnum/lv/pvn.py, stdnum/nl/brin.py,
stdnum/us/ein.dat, tests/test_al_nipt.doctest: Switch to HTTPS URLs
2017-04-13 Arthur de Jong <[email protected]>
* [d14ea3b] online_check/README, online_check/check.js,
online_check/stdnum.wsgi: Show possible conversions in online check
This shows possible converted values. For example it will show
ISBN13 conversions for ISBN10 values.
2017-04-13 Arthur de Jong <[email protected]>
* [6b588d1] stdnum/damm.py: Fix bug in damm.is_valid() function
2017-04-11 Arthur de Jong <[email protected]>
* [35542c1] ChangeLog, MANIFEST.in, NEWS, README, docs/index.rst,
docs/stdnum.ar.cbu.rst, docs/stdnum.eu.eic.rst,
docs/stdnum.eu.nace.rst, docs/stdnum.lei.rst,
docs/stdnum.mc.tva.rst, docs/stdnum.rs.pib.rst, stdnum/__init__.py:
Get files ready for 1.6 release
2017-04-10 Arthur de Jong <[email protected]>
* [93459d3] stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/iban.dat,
stdnum/imsi.dat, stdnum/isbn.dat: Update database files
2017-04-10 Arthur de Jong <[email protected]>
* [bb1712d] online_check/README, online_check/check.js,
online_check/jquery-1.7.1.js, online_check/jquery-1.7.1.min.js,
online_check/stdnum.wsgi, online_check/template.html: Add simple
online check example
This adds the code that is used to find formats for which a
supplied number is valid. This is the code that is used on
https://arthurdejong.org/python-stdnum/check/
2017-04-10 Arthur de Jong <[email protected]>
* [5398247] stdnum/lei.py, tests/test_lei.doctest: Add Legal
Entity Identifier
2017-04-10 Arthur de Jong <[email protected]>
* [e844b52] stdnum/iban.py, stdnum/iso7064/mod_97_10.py: Integrate
base10 conversion into Mod 97, 10
This moves the conversion of an alphanumeric string to a numeric
representation for modulo 97 calculation to the mod_97_10 module
because this mechanism seems to be used by multiple formats.
2017-04-10 Arthur de Jong <[email protected]>
* [1b3d16e] stdnum/es/nie.py: Add missing export (__all__)
2017-04-10 Arthur de Jong <[email protected]>
* [72f5c6c] stdnum/rs/__init__.py, stdnum/rs/pib.py,
tests/test_rs_pib.doctest: Add Serbian Poreski Identifikacioni Broj
2017-04-10 Arthur de Jong <[email protected]>
* [800205c] tox.ini: Print warnings during tox run
2017-04-07 Arthur de Jong <[email protected]>
* [7493eca] stdnum/cusip.py, stdnum/ean.py, stdnum/ec/ci.py,
stdnum/isin.py, stdnum/tr/tckimlik.py: Use a slightly more
readable weight alternation
Switch to a slightly more readable syntax for alternating between
two weights in checksums calculations.
2017-04-01 Arthur de Jong <[email protected]>
* [23b2150] stdnum/eu/eic.py, tests/test_eu_eic.doctest: Add
European EIC (Energy Identification Code)
2017-03-26 Arthur de Jong <[email protected]>
* [194f025] stdnum/meid.py, tests/test_robustness.doctest: Add
unicode robustness tests
This tests a few unicode strings and fixes a bug in the MEID
module.
2017-03-26 Arthur de Jong <[email protected]>
* [d43c394] stdnum/es/referenciacatastral.py,
tests/test_es_referenciacatastral.doctest: Add test for Ñ in
Referencia Catastral
This supports the Referencia Catastral with an Ñ in it for
both byte strings (Python 2) and unicode strings (Python 2 and
3). Support for literal unicode strings in Python 2 doctests is
flaky so the test is a bit ugly.
This also adds a few numbers that were found online. Sadly no
real numbers with an Ñ in it have been found so the one in the
test was constructed.
2017-03-26 Arthur de Jong <[email protected]>
* [61d73c1] getnace.py, stdnum/eu/nace.dat, stdnum/eu/nace.py,
tests/test_robustness.doctest: Add European NACE classification
This number is used to classify business. Validation is done
based on a downloaded registry.
2017-03-26 Arthur de Jong <[email protected]>
* [649f073] stdnum/mc/tva.py: Remove unused import
2017-03-19 Arthur de Jong <[email protected]>
* [c957318] stdnum/fr/tva.py, stdnum/mc/__init__.py,
stdnum/mc/tva.py, tests/test_eu_vat.doctest: Add support for
Monaco VAT number
The number uses the French TVA number but, unlike normal French
VAT numbers, they are not valid French SIREN numbers.
See https://github.com/arthurdejong/python-stdnum/issues/46
2016-12-11 Arthur de Jong <[email protected]>
* [5b43857] stdnum/au/tfn.py: Remove unused import
2016-12-01 Greg Kuwaye <[email protected]>
* [7d16ea5] stdnum/us/ein.dat: Add new 47 EIN prefix; fix duplicate
46; move 81
47 appears to be a new Internet campus code. Prefix 46
was listed twice, once under the Philadelphia campus and
again under the Internet campus. This error may be seen
on the IRS website itself. The Wikipedia article on EIN
(https://en.wikipedia.org/wiki/Employer_Identification_Number)
does not have 46 listed twice. 81 has moved from the Philadelphia
campus to the Internet campus.
2016-11-14 Luciano Rossi <[email protected]>
* [dcde8f4] stdnum/ar/cbu.py, tests/test_ar_cbu.doctest: Implement
CBU (unique bank code) of Argentina
See https://github.com/arthurdejong/python-stdnum/issues/43
2016-11-14 Arthur de Jong <[email protected]>
* [da18e3b] setup.py, stdnum/fi/associationid.py, stdnum/meid.py,
tests/test_mx_rfc.doctest, tox.ini: Add Python 2.6 support
This also brings the list of Python versions in setup.py in line
with tox.ini.
2016-11-13 Arthur de Jong <[email protected]>
* [62ebbce] ChangeLog, NEWS, README, docs/index.rst,
docs/stdnum.au.abn.rst, docs/stdnum.au.acn.rst,
docs/stdnum.au.tfn.rst, docs/stdnum.es.ccc.rst,
docs/stdnum.es.cups.rst, docs/stdnum.es.iban.rst,
docs/stdnum.es.referenciacatastral.rst, stdnum/__init__.py:
Get files ready for 1.5 release
2016-11-13 Arthur de Jong <[email protected]>
* [c9beb00] stdnum/cn/loc.dat, stdnum/iban.dat, stdnum/imsi.dat,
stdnum/isbn.dat, stdnum/isil.dat, tests/test_iban.doctest:
Update database files
This removes the Costa Rica IBAN test because the format of the
IBAN seems to have been changed. The old length still seems to
be in use so a more permanent solution is probably required.
2016-11-13 Arthur de Jong <[email protected]>
* [ac560a7] getisbn.py: Update getisbn to Python3
There were some SSL-related issues with the urllib module. This
was the easiest solution.
2016-11-13 Arthur de Jong <[email protected]>
* [458c310] getiban.py: Update gettin IBAN registry
The format of the registry file has changed. Before it was a
straightforward CSV file with countries in rows but countries
are now in columns.
2016-11-09 Sergi Almacellas Abellana <[email protected]>
* [45faa7c] .gitignore, tox.ini: Add tox.ini file
2016-11-08 Sergi Almacellas Abellana <[email protected]>
* [a9e5405] stdnum/eu/at_02.py: Implement calc_check_digits in
SEPA Identifier of the Creditor (AT-02)
2016-10-14 Arthur de Jong <[email protected]>
* [8ea76ba] stdnum/au/tfn.py, tests/test_au_tfn.doctest: Add
Australian Tax File Number
Based on the implementation provided by Vincent Bastos
See https://github.com/arthurdejong/python-stdnum/pull/40
2016-10-14 Arthur de Jong <[email protected]>
* [8028c3a] stdnum/au/acn.py, tests/test_au_acn.doctest: Add
Australian Company Number
Based on the implementation provided by Vincent Bastos
See https://github.com/arthurdejong/python-stdnum/pull/40
2016-10-14 Arthur de Jong <[email protected]>
* [70b94ee] stdnum/au/__init__.py, stdnum/au/abn.py,
tests/test_au_abn.doctest: Add Australian Business Number
Based on the implementation provided by Vincent Bastos
See https://github.com/arthurdejong/python-stdnum/pull/40
2016-10-14 Arthur de Jong <[email protected]>
* [d7cff5d] stdnum/be/__init__.py, stdnum/be/vat.py: Provide
businessid as an alias
The Belgian company number or enterprise number
(ondernemingsnummer) is the new name for what was previously
the VAT number.
2016-09-10 Arthur de Jong <[email protected]>
* [352aa8a] stdnum/es/referenciacatastral.py: Add reference to
Referencia Catastral implementation
2016-09-03 Arthur de Jong <[email protected]>
* [49db553] tests/test_es_referenciacatastral.doctest: Add more
tests for Referencia Catastral
This adds a number of extra tests for the Spanish Referencia
Catastral (stdnum.es.referenciacatastral) module, mostly based
on numbers found online.
This commit includes some of the documentation on the structure
of Referencia Catastral that was in the original pull request.
See https://github.com/arthurdejong/python-stdnum/pull/38
2016-08-31 David García Garzón <[email protected]>
* [2c557a0] stdnum/es/referenciacatastral.py: Add Spansih Referencia
Catastral
The control digit check algorithm is based on Javascript
implementation by Vicente Sancho that can be found at
http://trellat.es/validar-la-referencia-catastral-en-javascript/
See https://github.com/arthurdejong/python-stdnum/pull/38
2016-09-10 Arthur de Jong <[email protected]>
* [b128c8d] tests/test_iban.doctest: Test a few Spanish IBANs
found online
2016-09-10 Arthur de Jong <[email protected]>
* [878e036] stdnum/numdb.py: Avoid leaving open file descriptor
in test
2016-09-08 Arthur de Jong <[email protected]>
* [be24790] stdnum/es/iban.py, tests/test_iban.doctest: Add Spanish
IBAN number module
This validates the country-specific part of the IBAN.
2016-09-08 Arthur de Jong <[email protected]>
* [2510932] stdnum/iban.py: Validate country-specific part of IBAN
This adds the possible of validating the country-specific part
of the IBAN. If the country has an IBAN module, checking is also
delegated to that module.
2016-09-06 Arthur de Jong <[email protected]>
* [d8cca82] stdnum/eu/vat.py, stdnum/util.py: Introduce
get_cc_module() utility function
This changes the get_vat_module() function to a more generic
get_cc_module() function so that it can also be used for other
things like IBAN checking.
2016-09-06 Arthur de Jong <[email protected]>
* [1622873] stdnum/es/ccc.py: Add to_iban() function to Spanish CCC
2016-09-08 Arthur de Jong <[email protected]>
* [7d969be] stdnum/iban.py: Implement calc_check_digits() in IBAN
Introduce a function to calculate the two check digits of an
IBAN. Since the check digits are the third and fourth characters
in the number, placeholders need to be provided when calling
this function.
2016-08-31 David García Garzón <[email protected]>
* [294f872] stdnum/es/ccc.py: Add Spanish Código Cuenta Corriente
(CCC)
2016-08-28 David García Garzón <[email protected]>
* [466cec8] stdnum/es/cups.py, tests/test_es_cups.doctest: Add
Spanish CUPS code
2016-08-28 Arthur de Jong <[email protected]>
* [d95382f] stdnum/exceptions.py: Properly print error message
of exceptions
This ensures that the message passed to the constructor is shown
in the traceback while falling back to the class default.
2016-07-26 Arthur de Jong <[email protected]>
* [01a7f34] ChangeLog, NEWS, README, docs/index.rst,
docs/stdnum.damm.rst, docs/stdnum.fr.nif.rst,
docs/stdnum.fr.nir.rst, docs/stdnum.fr.siret.rst,
docs/stdnum.gb.nhs.rst, docs/stdnum.tr.tckimlik.rst,
stdnum/__init__.py: Get files ready for 1.4 release
2016-07-26 Arthur de Jong <[email protected]>
* [3e4e9e2] getmybp.py, stdnum/cn/loc.dat, stdnum/iban.dat,
stdnum/imsi.dat, stdnum/isbn.dat, stdnum/isil.dat: Update
database files
This also updates the getmybp script to support the new layout.
2016-07-26 Arthur de Jong <[email protected]>
* [3e344d1] stdnum/iso6346.py: Add formatting of ISO 6346 container
codes
2016-07-26 Arthur de Jong <[email protected]>
* [aa1c298] getnumlist.py, stdnum/damm.py, tests/test_damm.doctest:
Implement Damm algorithm
This is a generic check digit algorithm. 2016-07-26 Arthur de
Jong <[email protected]>
* [411d038] stdnum/fr/nif.py: Fix French NIF format test
Fixes 2409ee9. 2016-07-26 Arthur de Jong
* [06e4165] stdnum/ch/ssn.py: Improve validation to Swiss SSN number
The EAN-13 number should start with 756.
2016-07-26 Arthur de Jong <[email protected]>
* [1907c67] stdnum/br/cpf.py: Add documentation to Brazillian CPF
2016-07-26 Arthur de Jong <[email protected]>
* [cf428ac] stdnum/iso6346.py: Add pointer to ISO 6346 information
2016-07-26 Arthur de Jong <[email protected]>
* [011c0f0] stdnum/gb/nhs.py: Fix copyright notice
2016-05-22 Dimitri Papadopoulos <[email protected]>
* [2409ee9] stdnum/fr/nif.py: Add NIF - French tax identification
number
Add module for NIF also known as SPI number.
2016-07-26 Arthur de Jong <[email protected]>
* [43b58d3] stdnum/fr/nir.py: Move NIR check digit calculation
to function
This also fixes a number of formatting issues, improves the
module description and adds tests for the 2A and 2B departments.
2016-05-29 Dimitri Papadopoulos <[email protected]>
* [879f2d3] stdnum/fr/nir.py: Improve French NIR validation
Please note that the 7th character of the NIR might be 'A' or
'B'. Other than that the NIR contains digits only.
2016-07-25 Arthur de Jong <[email protected]>
* [fd9f953] stdnum/fr/siren.py, stdnum/fr/siret.py,
tests/test_fr_siren.doctest, tests/test_fr_siret.doctest: Add
extra tests for SIREN and SIRET
This adds tests for a few numbers that have been found online
and allows the dot as a seprator because those numbers were found.
It also ensures that the SIREN validation is also called for
SIRET and adds a SIRET formatting function.
2016-05-27 Yoann Aubineau <[email protected]>
* [5ba3a87] stdnum/fr/siret.py: Add French SIRET number
Add a SIRET (Système d'Identification du Répertoire des
ETablissements, a French company etablishment identification
number) module.
2016-05-29 Arthur de Jong <[email protected]>
* [dc708f0] stdnum/isil.py, tests/test_isil.doctest: Add more
ISIL tests
This moves a few of the tests from the module to a dedicated
test file and adds tests for a number of ISIL numbers found online.
2016-05-29 Arthur de Jong <[email protected]>
* [4a57d84] stdnum/us/tin.py: Fix formatting of bulleted list
2016-05-28 Arthur de Jong <[email protected]>
* [9b74840] stdnum/ch/ssn.py, tests/test_ch_ssn.doctest: Fix bug
in Swiss SSN validation
The validation was delegated to the EAN module but the number
is supposed to be an EAN-13 only and and EAN-8 was also accepted.
This also reformats the docstring.
2016-05-28 Arthur de Jong <[email protected]>
* [f3c2491] stdnum/ie/vat.py, tests/test_ie_vat.doctest: Fix bug
in Irish VAT number validation
The last digits of the number that should be letters were not
tested to be letters which could result in ValueError being
raised for certain validations.
This also clarifies the documentation and adds a convert()
function to convert numbers from the old format (where the
second character would be a letter or symbol) to the new format
(7 digits followed by 1 or 2 letters).
2016-05-28 Arthur de Jong <[email protected]>
* [b5397ed] tests/test_robustness.doctest: Small improvements
to tests
This includes a formatting fix and removes an unused variable
from a test.
2016-05-28 Arthur de Jong <[email protected]>
* [d85b27f] stdnum/util.py: Fix get_module_description()
This fixes the initial implementation in 3f6d52a.
2016-05-22 Dimitri Papadopoulos <[email protected]>
* [a1afa76] stdnum/fr/nir.py: Add French NIR
Add module for NIR also known as social security number.
2016-05-09 Arthur de Jong <[email protected]>
* [0a2f39e] stdnum/gb/nhs.py: Add United Kingdom NHS number
Add module for United Kingdom National Health Service patient
identifier.
2016-05-09 Arthur de Jong <[email protected]>
* [2126947] stdnum/numdb.py: Read numdb files in context manager
This ensures that the file is explicitly closed in the function
to avoid "unclosed file" warnings.
See: https://github.com/arthurdejong/python-stdnum/issues/33
2016-04-11 Arthur de Jong <[email protected]>
* [e28b5e1] stdnum/ch/uid.py, stdnum/ch/vat.py, stdnum/cusip.py,
stdnum/dk/cpr.py, stdnum/iban.py, stdnum/imei.py, stdnum/isbn.py,
stdnum/isil.py, stdnum/isin.py, stdnum/issn.py, stdnum/mx/rfc.py,
stdnum/nl/bsn.py, stdnum/nl/onderwijsnummer.py, stdnum/pl/regon.py,
stdnum/tr/tckimlik.py, stdnum/us/ssn.py, stdnum/verhoeff.py:
Make more information links consistent
Also fix a docstring in stdnum.nl.bsn and add a pointer to
stdnum.nl.onderwijsnummer.
2016-04-09 Arthur de Jong <[email protected]>
* [feab917] stdnum/eu/vat.py, stdnum/tr/tckimlik.py, stdnum/util.py:
Implement online TC Kimlik check
This refactors out the SOAP client function that was implemented
for VIES to the stdnum.utils module.
2016-04-09 Arthur de Jong <[email protected]>
* [619b097] stdnum/tr/__init__.py, stdnum/tr/tckimlik.py,
tests/test_tr_tckimlik.doctest: Add Turkish personal identification
number
2016-04-01 Arthur de Jong <[email protected]>
* [095dcbb] stdnum/mx/rfc.py, tests/test_mx_rfc.doctest: Document
accuracy of RFC check digit test