Commit Graph

5 Commits

Author SHA1 Message Date
Henrik Genssen 896ac2abc0 Add ProductInformation() class and examples/products.py
This allows the user to re-generate (update) the price list in
products.json using ProdWS API, which is a separate API provided by DPAG
to obtain the product catalogue including pricing information.
2019-07-11 23:59:42 +08:00
Henrik Genssen 103c0f4059 Add coding/utf8 annotations to fix special characters for python 2.7 2019-07-11 23:59:42 +08:00
Harald Welte fc2365d3d7 Add PEP-0396 compatible __version__ to the module and bump to 0.5 2019-01-16 16:08:32 +01:00
Georg Sauthoff d5220f809e fix Python 3 compatibiltiy
the result still is compatible with Python 2 (tested with 2.7)

- use relative import in `__init__.py` such that the import of `inema`
  also works with `PYTHONPATH` set to the repository
- use another method to load the json file, i.e. one that also works
  when the package isn't installed
- replace some deprecated imports (that aren't available in Python 3)
  with their sucessors
- replace some Python 2 specific constructs (e.g. `map` that implicitly
  converts to a list in Python 2 but just returns a map object in Python 3)
2016-09-23 11:30:18 +02:00
Harald Welte 6b4c0683a2 initial import of code 2016-07-14 01:32:12 +02:00