Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [v0.2.14] - 2026-02-13

- Load the most specific class for converters
- Enable verbose mode via env `VECOREL_VERBOSE` set to `1`
- Converters: Move block size check so that it applies for all downloads

## [v0.2.13] - 2026-02-13

- Change default compression to zstd
Expand Down Expand Up @@ -92,7 +98,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

- First release based on vecorel CLI 0.1.0

[Unreleased]: <https://github.com/vecorel/cli/compare/v0.2.13...main>
[Unreleased]: <https://github.com/vecorel/cli/compare/v0.2.14...main>
[v0.2.14]: <https://github.com/vecorel/cli/compare/v0.2.13...v0.2.14>
[v0.2.13]: <https://github.com/vecorel/cli/compare/v0.2.12...v0.2.13>
[v0.2.12]: <https://github.com/vecorel/cli/compare/v0.2.11...v0.2.12>
[v0.2.11]: <https://github.com/vecorel/cli/compare/v0.2.10...v0.2.11>
Expand Down
4 changes: 2 additions & 2 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "vecorel-cli"
version = "0.2.13"
version = "0.2.14"
description = "CLI tools such as validation and file format conversion for vecorel."
readme = "README.md"
license = "Apache-2.0"
Expand Down
3 changes: 2 additions & 1 deletion vecorel_cli/cli/logger.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import re
import sys
from logging import Logger
Expand All @@ -13,7 +14,7 @@ def format_logs(record):


class LoggerMixin:
verbose: bool = False
verbose: bool = os.environ.get("VECOREL_VERBOSE", "0") == "1"
logger: Optional[Logger] = None

def __init__(self):
Expand Down
8 changes: 4 additions & 4 deletions vecorel_cli/conversion/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ def download_files(self, uris, cache_folder=None, **kwargs):
if isinstance(uris, str):
uris = {uris: name_from_uri(uris)}

if self.avoid_range_request and "block_size" not in kwargs:
kwargs["block_size"] = 0

paths = []
for uri, target in uris.items():
is_archive = isinstance(target, list)
Expand Down Expand Up @@ -322,10 +325,7 @@ def convert(
raise ValueError("No input files provided")

self.info("Getting file(s) if not cached yet")
request_args = {}
if self.avoid_range_request:
request_args["block_size"] = 0
paths = self.download_files(urls, cache, **request_args)
paths = self.download_files(urls, cache)

gdf = self.read_data(paths, **self.open_options)
self.info("GeoDataFrame created from source(s):")
Expand Down
1 change: 1 addition & 0 deletions vecorel_cli/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def get_class(self, name):
if type(v) is type
and issubclass(v, base_class)
and base_class.__name__ not in v.__name__
and v.__module__ == module.__name__
)
return clazz(self)
except StopIteration:
Expand Down
Loading