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
2597 lines (1661 loc) · 86.9 KB
/
ChangeLog
File metadata and controls
2597 lines (1661 loc) · 86.9 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
2016-11-13 Arthur de Jong <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [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 <sergi@koolpi.com>
* [45faa7c] .gitignore, tox.ini: Add tox.ini file
2016-11-08 Sergi Almacellas Abellana <sergi@koolpi.com>
* [a9e5405] stdnum/eu/at_02.py: Implement calc_check_digits in
SEPA Identifier of the Creditor (AT-02)
2016-10-14 Arthur de Jong <arthur@arthurdejong.org>
* [8ea76ba] stdnum/au/tfn.py, tests/test_au_tfn.doctest: Add
Australian Tax File Number
Based on the implementation provided by Vincent Bastos
<vincent@lavalab.com.au>
See https://github.com/arthurdejong/python-stdnum/pull/40
2016-10-14 Arthur de Jong <arthur@arthurdejong.org>
* [8028c3a] stdnum/au/acn.py, tests/test_au_acn.doctest: Add
Australian Company Number
Based on the implementation provided by Vincent Bastos
<vincent@lavalab.com.au>
See https://github.com/arthurdejong/python-stdnum/pull/40
2016-10-14 Arthur de Jong <arthur@arthurdejong.org>
* [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
<vincent@lavalab.com.au>
See https://github.com/arthurdejong/python-stdnum/pull/40
2016-10-14 Arthur de Jong <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [352aa8a] stdnum/es/referenciacatastral.py: Add reference to
Referencia Catastral implementation
2016-09-03 Arthur de Jong <arthur@arthurdejong.org>
* [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 <david.garcia@upf.edu>
* [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 <arthur@arthurdejong.org>
* [b128c8d] tests/test_iban.doctest: Test a few Spanish IBANs
found online
2016-09-10 Arthur de Jong <arthur@arthurdejong.org>
* [878e036] stdnum/numdb.py: Avoid leaving open file descriptor
in test
2016-09-08 Arthur de Jong <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [1622873] stdnum/es/ccc.py: Add to_iban() function to Spanish CCC
2016-09-08 Arthur de Jong <arthur@arthurdejong.org>
* [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 <voki@canvoki.net>
* [294f872] stdnum/es/ccc.py: Add Spanish Código Cuenta Corriente
(CCC)
2016-08-28 David García Garzón <david.garcia@upf.edu>
* [466cec8] stdnum/es/cups.py, tests/test_es_cups.doctest: Add
Spanish CUPS code
2016-08-28 Arthur de Jong <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [3e344d1] stdnum/iso6346.py: Add formatting of ISO 6346 container
codes
2016-07-26 Arthur de Jong <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [411d038] stdnum/fr/nif.py: Fix French NIF format test
Fixes 2409ee9. 2016-07-26 Arthur de Jong
<arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [1907c67] stdnum/br/cpf.py: Add documentation to Brazillian CPF
2016-07-26 Arthur de Jong <arthur@arthurdejong.org>
* [cf428ac] stdnum/iso6346.py: Add pointer to ISO 6346 information
2016-07-26 Arthur de Jong <arthur@arthurdejong.org>
* [011c0f0] stdnum/gb/nhs.py: Fix copyright notice
2016-05-22 Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
* [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 <arthur@arthurdejong.org>
* [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 <dimitri.papadopoulos@cea.fr>
* [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 <arthur@arthurdejong.org>
* [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 <y.aubineau@criteo.com>
* [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 <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [4a57d84] stdnum/us/tin.py: Fix formatting of bulleted list
2016-05-28 Arthur de Jong <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [d85b27f] stdnum/util.py: Fix get_module_description()
This fixes the initial implementation in 3f6d52a.
2016-05-22 Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
* [a1afa76] stdnum/fr/nir.py: Add French NIR
Add module for NIR also known as social security number.
2016-05-09 Arthur de Jong <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [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 <arthur@arthurdejong.org>
* [095dcbb] stdnum/mx/rfc.py, tests/test_mx_rfc.doctest: Document
accuracy of RFC check digit test
There is an online service that allows validating RFC numbers. It
seems there are a lot of numbers that do not match the check
digit algorithm which confirms disabling the check digit test
by default is a good idea.
Also see https://github.com/arthurdejong/python-stdnum/issues/32
2016-03-05 Arthur de Jong <arthur@arthurdejong.org>
* [41cecb5] ChangeLog, NEWS, getnumlist.py, setup.py,
stdnum/__init__.py: Get files ready for 1.3 release
2016-03-03 Arthur de Jong <arthur@arthurdejong.org>
* [6457734] getcnloc.py, getiban.py, stdnum/cn/loc.dat,
stdnum/iban.dat, stdnum/imsi.dat, stdnum/isbn.dat, stdnum/isil.dat:
Update database files
This also updates the getcnloc and getiban scripts to use new URLs.
2015-10-30 Arthur de Jong <arthur@arthurdejong.org>
* [0061564] stdnum/dk/cpr.py, stdnum/iban.py, stdnum/imei.py,
stdnum/isbn.py, stdnum/isil.py, stdnum/issn.py, stdnum/nl/bsn.py,
stdnum/us/ssn.py, stdnum/verhoeff.py: Integrate information from
the wiki
This adds the information that was previously in the Trac wiki
into the source docstrings because the Trac instance is being
phased out.
This also includes small updates to the ISIL module.
2015-10-28 Arthur de Jong <arthur@arthurdejong.org>
* [96c8151] stdnum/eu/vat.py: Fix SOAP client re-use
This fixes a bug when checking re-use of the global SOAP client
object. The object could not be evaluated in boolean context
so is no explicitly compared to None. For suds a MethodNotFound
exception would be raised for __nonzero__() (which Python uses
for boolean comparison).
2015-10-28 Lionel Elie Mamane <lionel@mamane.lu>
* [2881b86] stdnum/eu/vat.py: Fix problem with check_vies_approx()
2015-10-15 Ronald Paloschi <ronald.paloschi@gmail.com>
* [fb0efe0] stdnum/iso6346.py, tests/test_iso6346.doctest: Fix
for when ISO 6346 checksum is 10
Bug fix for when the checksum is 10, it was compared to 0 and
failed. New doctest exposing the bug that passes after the fix
is applied.
See: https://github.com/arthurdejong/python-stdnum/pull/30
2015-10-11 Arthur de Jong <arthur@arthurdejong.org>
* [1361817] ChangeLog, MANIFEST.in, NEWS, README, docs/index.rst,
docs/stdnum.at.businessid.rst, docs/stdnum.br.cnpj.rst,
docs/stdnum.ch.uid.rst, docs/stdnum.ch.vat.rst,
docs/stdnum.cusip.rst, docs/stdnum.de.wkn.rst,
docs/stdnum.ee.ik.rst, docs/stdnum.fi.associationid.rst,
docs/stdnum.fi.ytunnus.rst, docs/stdnum.gb.sedol.rst,
docs/stdnum.imo.rst, docs/stdnum.isin.rst, docs/stdnum.mx.rfc.rst,
docs/stdnum.pl.pesel.rst, docs/stdnum.pl.regon.rst,
docs/stdnum.ru.inn.rst, setup.py, stdnum/__init__.py: Get files
ready for 1.2 release
2015-10-11 Arthur de Jong <arthur@arthurdejong.org>
* [1327045] getcnloc.py, stdnum/cn/loc.dat, stdnum/iban.dat,
stdnum/imsi.dat, stdnum/isbn.dat, stdnum/isil.dat: Update
database files
This also updates the script to download updated Chinese
location names.
2015-10-11 Arthur de Jong <arthur@arthurdejong.org>
* [a891c60] stdnum/al/nipt.py, stdnum/co/nit.py, stdnum/iban.py,
stdnum/ie/pps.py, stdnum/imei.py, stdnum/isan.py,
stdnum/iso6346.py, stdnum/it/codicefiscale.py, stdnum/meid.py,
stdnum/nl/postcode.py, stdnum/numdb.py, stdnum/pt/nif.py,
stdnum/us/atin.py, stdnum/us/ein.py, stdnum/us/itin.py,
stdnum/us/ptin.py, stdnum/us/ssn.py, stdnum/util.py: Code style
improvements
Ensure that regular expressions are r'' strings, avoid too
long lines and fix line wrapping. Also avoid catching toplevel
Exception when possible and use binascii for hex to binary
conversion which is available in both Python 2 and 3.
2015-10-11 Arthur de Jong <arthur@arthurdejong.org>
* [3c7a302] stdnum/cusip.py, stdnum/de/wkn.py, stdnum/gb/sedol.py,
stdnum/isin.py: Convert security ids to ISIN
Allow conversion from national securities identifiers to the
international ISIN.
2015-10-11 Arthur de Jong <arthur@arthurdejong.org>
* [c565517] stdnum/de/wkn.py, tests/test_de_wkn.doctest: Add
German Wertpapierkennnummer
The format itself is pretty simple (no check digit) but this
module is more for completeness sake.
2015-10-10 Arthur de Jong <arthur@arthurdejong.org>
* [961815f] stdnum/gb/sedol.py, tests/test_gb_sedol.doctest:
Add SEDOL number
2015-10-10 Arthur de Jong <arthur@arthurdejong.org>
* [fb91775] stdnum/ru/__init__.py: Add information to Russian package
2015-10-10 Arthur de Jong <arthur@arthurdejong.org>
* [ebb5c07] MANIFEST.in, stdnum/numdb.py, tests/numdb-test.dat:
Move numdb test file
This places the test database file in the tests directory.
2015-10-10 Arthur de Jong <arthur@arthurdejong.org>
* [fa8099e] stdnum/imo.py: Add int. maritime org. number (IMO)
This adds checks for the International Maritime Organization
number used to identify ships. However, there seem to be a lot
of ships with an IMO number that does not follow these rules
(different check digits or even length).
2015-10-10 Arthur de Jong <arthur@arthurdejong.org>
* [111b4fd] stdnum/isan.py, tests/test_isan.doctest: Fix handling
of strip_check_digits in ISAN
This fixes the compact() function to honor the strip_check_digits
argument and does not validate the check digits if they are
passed to validate together with strip_check_digits.
2015-10-10 Arthur de Jong <arthur@arthurdejong.org>
* [9f9d13c] stdnum/isin.py, tests/test_isin.doctest: Add
international securities id (ISIN)
This adds support for handling ISINs (International Securities
Identification Number). The can contain a CUSIP but performing
this additional validation is currently not performed.
2015-10-09 Arthur de Jong <arthur@arthurdejong.org>
* [522611c] stdnum/cusip.py, tests/test_cusip.doctest: Add CUSIP
number
2015-10-08 Arthur de Jong <arthur@arthurdejong.org>
* [320ecea] stdnum/ch/uid.py, stdnum/ch/vat.py,
tests/test_ch_uid.doctest, tests/test_ch_vat.doctest: Add Swiss
UID and VAT numbers
The Swiss VAT number (MWST, TVA, IVA, TPV) is the UID
(Unternehmens-Identifikationsnummer) followed by one of the
VAT abbreviations.
2015-10-05 Arthur de Jong <arthur@arthurdejong.org>
* [ec9bcb0] stdnum/mx/__init__.py, stdnum/mx/rfc.py,
tests/test_mx_rfc.doctest: Add Mexican RFC number
This adds support for the Mexican tax number RFC (Registro
Federal de Contribuyentes).
This module includes a number of checks on the number but the
validation of the last check digit is disabled by default because
a large number of numbers were found that were otherwise valid
but had an invalid check digit.
2015-10-04 Arthur de Jong <arthur@arthurdejong.org>
* [fd0cfd9] stdnum/eu/vat.py, stdnum/util.py: Move finding VAT
module to util
This moves the finding of a VAT module to the util module so
that it can be more easily re-used for non-EU countries.
2015-10-04 Arthur de Jong <arthur@arthurdejong.org>
* [38ed9c0] stdnum/co/nit.py, tests/test_co_nit.doctest: Update
Colombian NIT checks
This adds a number of tests for numbers found online. The length
check has also been revisited because both shorter numbers and
longer number have been found.
This also updates the format() function to handle arbitrary
length numbers.
2015-10-02 Arthur de Jong <arthur@arthurdejong.org>
* [d413f95] stdnum/isbn.py: Fix comment
2015-10-02 Arthur de Jong <arthur@arthurdejong.org>
* [3d1dbbb] stdnum/ar/cuit.py, stdnum/bg/egn.py, stdnum/bg/pnf.py,
stdnum/bg/vat.py, stdnum/co/nit.py, stdnum/dk/cpr.py,
stdnum/dk/cvr.py, stdnum/do/rnc.py, stdnum/ec/ruc.py,
stdnum/ee/kmkr.py, stdnum/fi/alv.py, stdnum/gb/vat.py,
stdnum/hu/anum.py, stdnum/is_/kennitala.py, stdnum/lv/pvn.py,
stdnum/mt/vat.py, stdnum/no/orgnr.py, stdnum/pl/nip.py,
stdnum/pl/pesel.py, stdnum/pl/regon.py, stdnum/ro/cf.py,
stdnum/ro/cnp.py: Use zip() instead of enumerate()
Makes the code slightly simpler and more compact.
2015-10-01 Sergio Isidoro <sergio@holvi.com>
* [222a87e] stdnum/fi/__init__.py: Add alias to hetu in for finnish
personal id code
2015-09-27 Arthur de Jong <arthur@arthurdejong.org>
* [e045c71] tests/test_eu_vat.doctest: Add more numbers found online
2015-09-07 Dariusz Choruzy <darobial@gmail.com>
* [36217ac] stdnum/pl/regon.py, tests/test_pl_regon.doctest:
Add Polish REGON number
2015-09-06 Dariusz Choruzy <darobial@gmail.com>
* [a0cb61f] stdnum/pl/pesel.py: Add Polish PESEL number
2015-08-16 Arthur de Jong <arthur@arthurdejong.org>
* [5ab8d24] stdnum/ru/__init__.py, stdnum/ru/inn.py,
tests/test_ru_inn.doctest: Add Russioan ИНН (INN) tax ID
This adds a basic implementation of the Russian
Идентификационный номер
налогоплательщика (tax identification
number). This currently only checks the format, length and check
digits but not whether each of the parts of the number are valid
(e.g. valid region specified).
2015-08-16 Arthur de Jong <arthur@arthurdejong.org>
* [714fa60] stdnum/br/cnpj.py, tests/test_br_cnpj.doctest: Add
Brazillian CNPJ business identifier
Add module for Cadastro Nacional da Pessoa Jurídica, the
Brazillian company identifier.
2015-08-16 Arthur de Jong <arthur@arthurdejong.org>
* [b939099] getiban.py, stdnum/iban.dat, tests/test_iban.doctest:
Update IBAN tests
This updates the iban.dat file from the IBAN registry, includes
a fix for handling spaces in the BBAN and adds some more IBAN
examples from the IBAN registry.
2015-08-16 Arthur de Jong <arthur@arthurdejong.org>
* [7714db7] stdnum/iso9362.py: Make uppercase in compact()
This changes the compact() function of the ISO 9362 module to
make all the letters uppercase.
2015-08-16 Arthur de Jong <arthur@arthurdejong.org>
* [6afa875] setup.cfg, stdnum/imei.py, stdnum/isbn.py,
stdnum/isil.py, stdnum/ismn.py, stdnum/meid.py, stdnum/us/atin.py,
stdnum/us/ein.py, stdnum/us/itin.py: Turn on and improve branch
coverage
2015-08-16 Arthur de Jong <arthur@arthurdejong.org>
* [e88ba0b] stdnum/dk/cpr.py, stdnum/is_/kennitala.py,
stdnum/it/codicefiscale.py: Small typo and code style fixes
2015-08-03 Tomas Karasek <tom.to.the.k@gmail.com>
* [243e50f] stdnum/ee/ik.py, tests/test_ee_ik.doctest: Add validation
of Estonian personal ID
2015-06-12 Lari Haataja <lari@holvi.com>
* [7f9c94f] stdnum/at/businessid.py: Add company register number
validation for Austria
2015-07-12 Arthur de Jong <arthur@arthurdejong.org>
* [0cbba6e] : Merge Finnish numbers provided by Holvi
This merges the Finnish numbers provided by Holvi Payment Services
Oy as found here: https://github.com/holvi/python-stdnum
2015-07-12 Arthur de Jong <arthur@arthurdejong.org>
* [320326e] stdnum/fi/ytunnus.py: Split out format() function
This uses the stdnum.fi.alv module more extensively and ensures
that validate() returns a compact representation and a separate
format() function is available.
2015-06-23 Lari Haataja <lari@holvi.com>
* [37f7fa6] stdnum/fi/__init__.py, stdnum/fi/ytunnus.py: Add
validation for Finnish y-tunnus (business identifier)
2015-07-12 Arthur de Jong <arthur@arthurdejong.org>
* [db24746] stdnum/fi/associationid.py: Add a whitelist for short
numbers and fix API
This implements separate functions compact() and format() and
fixes the doctests. This also implements a whitelist of registered
short numbers to avoid accidentally validating just any number.
2015-06-16 Lari Haataja <lari@holvi.com>
* [8d30992] stdnum/fi/associationid.py: Validation for Finnish
association identifier
2015-07-12 Arthur de Jong <arthur@arthurdejong.org>
* [e107457] : Merge changes to use CN Open Data
2015-07-12 Arthur de Jong <arthur@arthurdejong.org>
* [a1a134e] stdnum/eu/vat.py: Fall back to pysimplesoap if suds
is unavailable
Initial testing seems to suggest that proxy-support is not
complete with pysimplesoap (at least httplib2 and PySocks seem
to be required).
2015-04-28 Lionel Elie Mamane <lmamane@debian.org>
* [8fe44f9] stdnum/eu/vat.py: Implement alternate VIES check
Add a function to stdnum.eu.vat so that when one does a VIES VAT
number check, one gets a proof (certificate) that one did the
check, as defence against the VAT administration later putting
this in doubt. This certificate is provided by the VIES service,
if one provides one's own VAT number.
2015-06-08 Jiangge Zhang <tonyseek@gmail.com>
* [6308261] stdnum/cn/loc.dat: Download and generate latest Chinese
location data.
2015-06-08 Jiangge Zhang <tonyseek@gmail.com>
* [12ba352] getcnloc.py: Download GB2260 data from github.com/cn.
2015-04-27 Arthur de Jong <arthur@arthurdejong.org>
* [8925ae2] tests/test_iso6346.doctest: Fix copyright header
2015-04-27 Arthur de Jong <arthur@arthurdejong.org>
* [58775d9] ChangeLog, NEWS, README, docs/index.rst,
docs/stdnum.al.nipt.rst, docs/stdnum.ar.cuit.rst,
docs/stdnum.cl.rut.rst, docs/stdnum.co.nit.rst,
docs/stdnum.do.cedula.rst, docs/stdnum.do.rnc.rst,
docs/stdnum.is_.kennitala.rst, docs/stdnum.is_.vsk.rst,
docs/stdnum.iso9362.rst, docs/stdnum.no.mva.rst,
docs/stdnum.no.orgnr.rst, docs/stdnum.se.orgnr.rst,
docs/stdnum.sm.coe.rst, setup.py, stdnum/__init__.py: Get files
ready for 1.1 release
2015-04-27 Arthur de Jong <arthur@arthurdejong.org>
* [583b066] getcnloc.py, stdnum/cn/loc.dat, stdnum/iban.dat,
stdnum/imsi.dat, stdnum/isbn.dat, stdnum/isil.dat: Update
database files
This also updates the script to download updated Chinese
location names.
2014-10-24 Tomas Thor Jonsson <benregn@gmail.com>
* [dd309e4] stdnum/se/orgnr.py, stdnum/se/vat.py: Add support for
SE orgnr
This also delegates some of the validation for the Swedish VAT
module to the orgnr module.
2015-04-27 Arthur de Jong <arthur@arthurdejong.org>
* [23882e2] tests/test_ec_ruc.doctest: Add extra tests for the
stdnum.ec.ruc module
These numbers were found in various online sources.
2015-04-25 Arthur de Jong <arthur@arthurdejong.org>
* [eac4d63] stdnum/fr/tva.py: Add extra test for French TVA
2014-10-14 P. Christeas <xrg@linux.gr>
* [9934f76] stdnum/gr/vat.py: Change description of Greek FPA number
In Greece, our VAT number is used as a generic "tax registration"
num. Update the docstring to reflect that name.
2015-04-22 Arthur de Jong <arthur@arthurdejong.org>
* [4d7163c] stdnum/ar/__init__.py, stdnum/ar/cuit.py,
tests/test_ar_cuit.doctest: Add Argentinian CUIT (VAT) number
Based partially on the implementation in the vatnumber module.
2015-04-18 Arthur de Jong <arthur@arthurdejong.org>
* [ba894d7] stdnum/sm/__init__.py, stdnum/sm/coe.py: Add San Marino
COE (VAT) number
Based partially on the implementation in the vatnumber module.
2015-04-18 Arthur de Jong <arthur@arthurdejong.org>
* [144e1a4] stdnum/co/__init__.py, stdnum/co/nit.py: Add Colombian
NIT/RUT (VAT) code
Based on the implementation in the vatnumber module.
2015-04-18 Arthur de Jong <arthur@arthurdejong.org>
* [c69c8f0] stdnum/cl/__init__.py, stdnum/cl/rut.py,
tests/test_cl_rut.doctest: Add Chilean national tax number (RUT)
Based on the implementation in the vatnumber module.
2015-04-18 Arthur de Jong <arthur@arthurdejong.org>
* [3db826c] stdnum/al/__init__.py, stdnum/al/nipt.py,
tests/test_al_nipt.doctest: Add Albanian NIPT (VAT) number
Partially based on the implementation in the vatnumber module.
Some valid numbers appear to start with an L so those are allowed
as well.
2015-04-23 Arthur de Jong <arthur@arthurdejong.org>
* [88d1af3] stdnum/do/cedula.py: Extend the list of valid Cedula
This is based on the list of Cedula found at
http://prd.org.do/2013/07/30/lista-del-cen-del-prd-actualizada-y-registrada-en-la-junta-central-electoral/
(link provided by José Arturo García)
2015-04-17 Arthur de Jong <arthur@arthurdejong.org>
* [49d1e69] stdnum/do/cedula.py, tests/test_do_cedula.doctest:
Add Dominican Republic Cedula number
The Cedule is a Dominican Republic national identification number
for persons.
The number uses the Luhn checksum but apparently there are a lof
of valid numbers in use that do not match the checksum. For this
a whitelist is used.
2015-04-17 Arthur de Jong <arthur@arthurdejong.org>
* [d003ac3] stdnum/do/__init__.py, stdnum/do/rnc.py,
tests/test_do_rnc.doctest: Add Dominican Republic RNC number
The RNC (Registro Nacional del Contribuyente) is the Dominican
Republic taxpayer registration number for companies.
2015-04-19 Arthur de Jong <arthur@arthurdejong.org>
* [9e94ab8] tests/test_no_mva.doctest: Add more stdnum.no.mva tests
2015-04-18 Arthur de Jong <arthur@arthurdejong.org>
* [c334bcf] stdnum/is_/kennitala.py, tests/test_is_kennitala.doctest:
Add more tests for Kennitala
2015-04-11 Tuomas Toivonen <toivotuo@kasvua.org>
* [84620f8] stdnum/is_/__init__.py, stdnum/is_/kennitala.py,
stdnum/is_/vsk.py: Support Icelandic personal, organisation and
VAT identifiers
The package is named "is_" because "is" is a reserved word.
2015-04-11 Tuomas Toivonen <toivotuo@kasvua.org>
* [699b340] stdnum/no/__init__.py, stdnum/no/mva.py,
stdnum/no/orgnr.py: Add support for Norwegian organisation and
VAT numbers
This commit also includes changes from Tomas Thor Jonsson
<benregn@gmail.com>.
2015-02-09 Tony Bajan <tony.bajan@onefinestay.com>
* [75bcef0] stdnum/iso9362.py: Add ISO 9362 (BIC) support
2015-04-17 Arthur de Jong <arthur@arthurdejong.org>
* [2574f89] stdnum/imsi.py: Raise InvalidComponent for unregistered
IMSI
2014-12-23 Emiliano Castro <emiliano@typeform.com>
* [9883c72] stdnum/eu/vat.py, stdnum/hr/__init__.py: Adding HR
(Croatia) to the list of available countries
2014-11-01 Arthur de Jong <arthur@arthurdejong.org>
* [3a7c9f7] stdnum/bg/vat.py, stdnum/eu/at_02.py, stdnum/iban.py,
stdnum/isan.py, stdnum/meid.py, stdnum/numdb.py: Fix common
spelling mistake
2014-10-31 Matt McDonald <mmcdonald@google.com>
* [6e332b1] stdnum/meid.py, tests/test_meid.doctest: Fix for
invalidating MEIDs with invalid decimal bit length
See: http://arthurdejong.org/trac/python-stdnum/ticket/10
2014-10-20 Arthur de Jong <arthur@arthurdejong.org>
* [3fa795d] getnumlist.py: Restore section for on homepage
2014-10-19 Arthur de Jong <arthur@arthurdejong.org>
* [147eeb1] ChangeLog, NEWS, README, docs/index.rst,
docs/stdnum.ch.ssn.rst, docs/stdnum.cn.ric.rst,
docs/stdnum.ec.ci.rst, docs/stdnum.ec.ruc.rst,
docs/stdnum.eu.at_02.rst, docs/stdnum.iso6346.rst,
docs/stdnum.it.codicefiscale.rst, docs/stdnum.us.rtn.rst,
getnumlist.py, setup.py, stdnum/__init__.py: Get files ready
for 1.0 release
2014-10-19 Arthur de Jong <arthur@arthurdejong.org>
* [72c0ff1] stdnum/iso6346.py: Remove unused import
2014-10-19 Arthur de Jong <arthur@arthurdejong.org>
* [e713cc7] stdnum/iban.dat, stdnum/imsi.dat, stdnum/isbn.dat,
stdnum/isil.dat: Update database files
2014-10-13 Denis Krienbühl <denis@href.ch>
* [256aa49] stdnum/ch/__init__.py, stdnum/ch/ssn.py: Adds the
Swiss social security number
Also known as "Sozialversicherungsnummer" / "Neue AHV Nummer".
2014-10-18 Arthur de Jong <arthur@arthurdejong.org>
* [2cc50e2] stdnum/eu/at_02.py, stdnum/iban.py, stdnum/imei.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: Only catch Exception
2014-10-17 Arthur de Jong <arthur@arthurdejong.org>
* [e2948bb] : Add Ecuadorian CI and RUC numbers
Add modules for Ecuadorian Identification Card (CI - Cédula
de identidad) and Fiscal Numbers (RUC - Registro Único de
Contribuyentes)
See: https://github.com/arthurdejong/python-stdnum/pull/12
2014-10-17 Arthur de Jong <arthur@arthurdejong.org>
* [e5250be] stdnum/ec/ci.py, stdnum/ec/ruc.py,
tests/test_ec_ci.doctest, tests/test_ec_ruc.doctest: Validate
parts of numbers
This raises exceptions when the provice or establishment number
part of the number contains invalid values.
2014-10-17 Arthur de Jong <arthur@arthurdejong.org>
* [10a044f] stdnum/ec/ci.py, stdnum/ec/ruc.py: Refactor checksum
functions
Use the CI checks from within the RUC module for natural RUC
numbers (thereby eliminating a bug in the RUC checksum calculation)
and simplify the checksum functions.
2014-10-17 Arthur de Jong <arthur@arthurdejong.org>
* [f61b855] stdnum/ec/ci.py, stdnum/ec/ruc.py,
tests/test_ec_ci.doctest, tests/test_ec_ruc.doctest: Use
dedicated doctests
This moves a number of the existing test cases to dedicated doctest
files and extend the tests with more numbers and corner cases.
This also fixes a few docstrings.
2014-10-12 Jonathan Finlay <jfinlay@riseup.net>
* [e8f1ca6] stdnum/ec/__init__.py, stdnum/ec/ci.py, stdnum/ec/ruc.py:
Add Ecuadorian CI and RUC numbers
Add modules for Ecuadorian Identification Card (CI - Cédula
de identidad) and Fiscal Numbers (RUC - Registro Único de
Contribuyentes)
2014-10-06 Arthur de Jong <arthur@arthurdejong.org>
* [2700b7a] : Add Chinese Resident Identity Card Number
2014-10-06 Jiangge Zhang <tonyseek@gmail.com>
* [141d576] stdnum/cn/ric.py, tests/test_cn_ric.doctest: Support
the Resident Identity Card Number of People's Republic China
2014-10-05 Jiangge Zhang <tonyseek@gmail.com>
* [10ae548] getcnloc.py, stdnum/cn/loc.dat: Download locations
from the China (PRC) government site
2014-10-05 Jiangge Zhang <tonyseek@gmail.com>
* [e9eb546] stdnum/cn/__init__.py: Add stdnum.cn package for Chinese
(PRC) numbers
2014-10-05 Arthur de Jong <arthur@arthurdejong.org>