PyIceberg 0.6.0rc6
Fix environment variable parsing (#423)

* Fix environment variable parsing

```bash
export PYICEBERG_CATALOG__SOMETHING__S3__REGION=eu-north-1
```

Before:

```python
>>> from pyiceberg.catalog import load_catalog
>>> load_catalog('something').properties
{'s3': {'region': 'eu-north-1'}, ...}
```

After:

```python
>>> from pyiceberg.catalog import load_catalog
>>> load_catalog('something').properties
{'s3.region': 'eu-north-1', ...}
```

Which correspondents with the key `s3.region` that we use.

* Add second test

Co-authored-by: Hussein Awala <hussein@awala.fr>

* lint

---------

Co-authored-by: Hussein Awala <hussein@awala.fr>
2 files changed
tree: 18ee0a59f8713f612e3f587aad51c5a4d7cdc789
  1. .github/
  2. dev/
  3. mkdocs/
  4. pyiceberg/
  5. tests/
  6. vendor/
  7. .asf.yaml
  8. .gitignore
  9. .pre-commit-config.yaml
  10. build-module.py
  11. LICENSE
  12. Makefile
  13. MANIFEST.in
  14. NOTICE
  15. poetry.lock
  16. pylintrc
  17. pyproject.toml
  18. README.md
README.md

Iceberg Python

PyIceberg is a Python library for programmatic access to Iceberg table metadata as well as to table data in Iceberg format. It is a Python implementation of the Iceberg table spec.

The documentation is available at https://py.iceberg.apache.org/.

Get in Touch