| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Belgian bpost bank no longer has a registration and a few bank
account numbers in the tests that used that bank were removed.
Also updates the update/gs1_ai.py script to handle the new format of the
data published by GS1. Also update the GS1-128 module to handle some
different date formats.
The Pakistan entry was kept in the stdnum/iban.dat file because the PDF
version of the IBAN Registry still contains the country.
fix db
|
|
|
|
|
|
| |
The xlrd has dropped support for parsing XLSX files. We still use xlrd
for update/be_banks.py because they use the classic XLS format and
openpyxl does not support that format.
|
|
|
|
|
|
|
|
| |
This also modifies the OUI update script because the website has changed
to HTTPS and is sometimes very slow.
The Belgian Commerzbank no longer has a registration and a bank account
number in the tests used that bank.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The website that publishes the NACE catalogue has changed and a complete
re-write of the script would be necessary. The data file hasn't changed
since 2017 so is also unlikely to change until it is going to be
replaced by NACE rev. 2.1 in 2025.
See https://ec.europa.eu/eurostat/web/nace
The NACE rev 2 specification can now be found here:
https://showvoc.op.europa.eu/#/datasets/ESTAT_Statistical_Classification_of_Economic_Activities_in_the_European_Community_Rev._2/data
The NACE rev 2.1 specification can now be found here:
https://showvoc.op.europa.eu/#/datasets/ESTAT_Statistical_Classification_of_Economic_Activities_in_the_European_Community_Rev._2.1._%28NACE_2.1%29/data
In both cases a ZIP file with RDF metadata can be downloaded (but the
web applciation also exposes some simpler JSON APIs).
|
|
|
|
|
| |
Some new AIs have new date formats or have changed the way optional
components of formats are defined.
|
|
|
|
| |
It seems that raw.githubusercontent.com can be extremely slow.
|
|
|
|
|
|
| |
This ensures that the script can be run from any directory.
Fixes c4ad714
|
|
|
|
|
| |
This assumes that we no longer use Python 2.7 for running the flake8
tests any more.
|
| |
|
|
|
|
|
|
| |
The page currently lists a country without a country code (is listed as
"-"). This also ensures that lists of country codes are handled
consistently.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/295
Closes https://github.com/arthurdejong/python-stdnum/pull/296
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
This stops using not as a function and hopefully also makes the logic
clearer.
|
|
|
|
|
|
|
| |
This implements parsing of ISO 10962 CFI codes based on the published
description of the structure of these numbers.
Closes https://github.com/arthurdejong/python-stdnum/issues/283
|
|
|
|
|
|
| |
Mostly to please GitHub.
See https://github.com/arthurdejong/python-stdnum/issues/280
|
| |
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/269
|
|
|
|
|
|
| |
LGTM alert: Call to next() in a generator
See: https://lgtm.com/rules/11000086/
Closes https://github.com/arthurdejong/python-stdnum/pull/270
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This only includes data from non-operational (status "Not operational"
according to Wikipedia) Mobile Network Code operators in the generated
data file if they would not confuse the lookup of operational numbers.
This avoid problems when the "030" to "039" non-operational ranges
conflicting with the "03" operational range. This ensures that only the
"03" value is kept. For historical completeness we keep the other
non-operational values.
Closes https://github.com/arthurdejong/python-stdnum/issues/257
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This simplifies the process of downloading Austrian postal codes by
downloading a JSON blob instead from
https://www.data.gv.at/katalog/dataset/f76ed887-00d6-450f-a158-9f8b1cbbeebf
This filters the list to only use addressable (adressierbar) postal
codes because it matches the previous list.
Thanks Bernd Schlapsi for providing the pointer.
Closes https://github.com/arthurdejong/python-stdnum/issues/235
|
| |
|
| |
|
|
|
|
| |
Fixes 180788a
|
|
|
|
|
|
|
|
|
|
| |
This adds validation, parsing and encoding functions for GS1-128. It is
based on the lists of formats as published by the GS1 organisation.
Based on the implementation provided by Sergi Almacellas Abellana
<sergi@koolpi.com>.
Closes https://github.com/arthurdejong/python-stdnum/pull/144
|
| |
|
| |
|
|
|
|
|
| |
This groups consecutive assignments into a range to make the dat file a
little more readable.
|
| |
|
|
|
|
| |
This makes the scripts more consistent.
|
|
|
|
|
|
|
| |
This avoids an extra dependency on Beautiful Soup and makes the scripts
more consistent.
This also includes a fix in the ISIL because of website changes.
|
|
|
|
|
|
| |
The intermediate certificate for jpn.gov.my is missing from the
certificate chain that is returned by the server since the server
switched to HTTPS.
|
|
|
|
|
| |
There is now a direct URL for the XLS file and there is no longer a need
to search the page for a link.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
This also fixes the name of the Dutch postal_code alias and tunes the
tests.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
This adds further checks to the country-specific part of the IBAN for
Belgian IBANs.
Closes https://github.com/arthurdejong/python-stdnum/issues/62
|
| |
|
|
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.
|