| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
It appears that the data structure at OffeneRegister has changed which
requires a different query. Data is returned in a different structure.
|
|
|
|
| |
It seems that raw.githubusercontent.com can be extremely slow.
|
|
|
|
|
|
| |
This ensures that the script can be run from any directory.
Fixes c4ad714
|
|
|
|
| |
See https://github.com/arthurdejong/python-stdnum/pull/316
|
|
|
|
|
|
|
|
| |
Based on the implementation provided by Quantum Novice (Syed Haseeb
Shah).
Closes https://github.com/arthurdejong/python-stdnum/pull/306
Closes https://github.com/arthurdejong/python-stdnum/issues/304
|
|
|
|
|
|
| |
Number)
Closes https://github.com/arthurdejong/python-stdnum/pull/338
|
|
|
|
|
| |
This assumes that we no longer use Python 2.7 for running the flake8
tests any more.
|
| |
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/340
|
|
|
|
|
| |
All the validation exceptions (subclasses of ValidationError) are raised
when a number is provided with an inappropriate value.
|
|
|
|
|
|
|
| |
This function can be used to performa a lookup of organisation
information by the Swiss Federal Statistical Office web service.
Related to https://github.com/arthurdejong/python-stdnum/issues/336
|
|
|
|
|
|
|
|
|
| |
It is unclear why these letters were considered invalid at the time of
the implementation.
This also reduces the test set a bit while still covering most cases.
Closes https://github.com/arthurdejong/python-stdnum/issues/337
|
|
|
|
| |
The function was removed from the cgi module in Python 3.8.
|
|
|
|
| |
The function was removed from the cgi module in Python 3.8.
|
|
|
|
| |
Fixes 09d595b
|
|
|
|
| |
This ensures that a leading 0 is treated as invalid.
|
|
|
|
|
|
|
| |
The recently added stdnum.cas module was already available as teh
stdnum.casrn module.
Reverts acb6934
|
|
|
|
| |
The future was now. This problem was pushed forwards to October 2039.
|
|
|
|
| |
This also applies the fix from cfc80c8 from Python 2.7 to PyPy.
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/326
Closes https://github.com/arthurdejong/python-stdnum/issues/262
|
| |
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/331
Closes https://github.com/arthurdejong/python-stdnum/issues/223
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/323
Closes https://github.com/arthurdejong/python-stdnum/issues/219
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Note that this is implementation is mostly based on unofficial sources
describing the format, which match the hundreds of examples found
online.
https://forum.it.mk/threads/modularna-kontrola-na-embg-edb-dbs-itn.15663/?__cf_chl_tk=Op2PaEIauip6Z.ZjvhP897O8gRVAwe5CDAVTpjx1sEo-1663498930-0-gaNycGzNCRE#post-187048
Also note that the algorithm for the check digit was tested on all found
examples, and it doesn't work for all of them, despite those failing
examples don't seem to be valid according to the official online search.
Closes https://github.com/arthurdejong/python-stdnum/pull/330
Closes https://github.com/arthurdejong/python-stdnum/issues/222
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/333
|
|
|
|
|
|
|
|
|
| |
This currently only checks the length and whether it only contains
digits because little could be found on the structure of the number of
whether there are any check digits.
Closes https://github.com/arthurdejong/python-stdnum/pull/313
Closes https://github.com/arthurdejong/python-stdnum/issues/307
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/226
Closes https://github.com/arthurdejong/python-stdnum/pull/312
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/300
Closes https://github.com/arthurdejong/python-stdnum/pull/310
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/317
Closes https://github.com/arthurdejong/python-stdnum/issues/309
|
|
|
|
| |
The number used before was apparently no longer valid.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The page currently lists a country without a country code (is listed as
"-"). This also ensures that lists of country codes are handled
consistently.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This also switches the other Tox jobs to use the latest Python 3.x
interpreter.
Closes https://github.com/arthurdejong/python-stdnum/pull/305
|
|
|
|
|
|
|
|
|
| |
Charlottenburg (Berlin) is a valid court representation for Berlin
(Charlottenburg).
See https://www.northdata.com/VRB+Service+GmbH,+Berlin/Amtsgericht+Charlottenburg+%28Berlin%29+HRB+103587+B
Closes https://github.com/arthurdejong/python-stdnum/pull/298
|
| |
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/295
Closes https://github.com/arthurdejong/python-stdnum/pull/296
|
|
|
|
|
|
| |
Improper inflection of plurals.
Closes https://github.com/arthurdejong/python-stdnum/pull/299
|
|
|
|
|
|
|
|
| |
We have some long URLs in the code (mostly in docstrings) and wrapping
them does not improve readability (and is difficult in docstrings) so
the E501 ignore is now put inside each file instead of globally.
Closes https://github.com/arthurdejong/python-stdnum/pull/302
|
| |
|
|
|
|
|
| |
Update checkout to v3 (no relevant changes) and setup-python to v4
(changes the names for pypy versions).
|
|
|
|
|
| |
This stops using not as a function and hopefully also makes the logic
clearer.
|
|
|
|
| |
https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/
|
|
|
|
|
|
|
| |
Nose hasn't seen a release since 2015 and sadly doesn't work with Python
3.10.
See https://github.com/nose-devs/nose/issues/1099
|