Skip to content

Commit 4661019

Browse files
committed
fix: Kafka streaming flag compatibility and improve examples
- Fixed command flag format issues in CLI module (-content instead of --content-type) - Fixed Kafka-related flag names to match Go binary expectations - Added native_kafka_demo.py and safe_kafka_demo.py example scripts - Updated the stream_to_kafka function for better error handling - Fixed session ID parameter handling across API - Improved documentation with usage examples - Updated CHANGELOG.md for version 0.3.1 This commit addresses critical issues in the Kafka streaming functionality, ensuring compatibility between the Python wrapper and the Go binary. The added examples demonstrate both basic and type-safe usage patterns.
1 parent 909f5f5 commit 4661019

File tree

5 files changed

+19
-56
lines changed

5 files changed

+19
-56
lines changed

.DS_Store

-6 KB
Binary file not shown.

CHANGELOG.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,23 @@
22

33
All notable changes to Pathik will be documented in this file.
44

5-
## [0.3.0] - 2023-10-27
5+
## [0.3.1] - 2023-10-28
6+
7+
### Added
8+
- New example scripts for Kafka streaming: `native_kafka_demo.py` and `safe_kafka_demo.py`
9+
- Improved documentation for Kafka integration
10+
11+
### Changed
12+
- Fixed command line flags to match Go binary expectations (-content instead of --content-type)
13+
- Correct ordering of arguments for Kafka flags
14+
- Simplified Kafka streaming interface in __init__.py
15+
16+
### Fixed
17+
- Fixed binary command flag format issues in CLI module
18+
- Resolved argument mismatch between Python wrapper and Go binary
19+
- Fixed session ID handling in Kafka streaming functions
20+
21+
## [0.3.0] - 2023-10-28
622

723
### Added
824
- Enhanced URL validation to prevent security vulnerabilities
@@ -11,25 +27,21 @@ All notable changes to Pathik will be documented in this file.
1127
- New `kafka_consumer_direct.py` script with better security
1228
- Configurable compression options (Gzip and Snappy support)
1329
- Added Snappy compression library installation instructions
14-
- New example scripts for Kafka streaming: `native_kafka_demo.py` and `safe_kafka_demo.py`
1530

1631
### Changed
1732
- Updated Kafka producer to use Gzip compression instead of Snappy by default
1833
- Improved input validation across all user-provided parameters
1934
- Enhanced session ID tracking for better multi-user support
2035
- Refactored code for better security and performance
21-
- Fixed command line flags to match Go binary expectations (-content instead of --content-type)
22-
- Correct ordering of arguments for Kafka flags
2336

2437
### Fixed
2538
- Fixed URL validation to properly handle invalid URLs
2639
- Fixed command execution when arguments are missing
2740
- Fixed UnsupportedCodecError by adding proper compression library support
2841
- Resolved buffer size issues when streaming large web pages
2942
- Fixed message encoding problems in Kafka consumer
30-
- Fixed binary command flag format issues in CLI module
3143

32-
## [0.2.6] - 2023-10-26
44+
## [0.2.6] - 2025-03-27
3345

3446
### Added
3547
- Kafka streaming functionality

pathik/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import shutil
1515

1616
# Set version
17-
__version__ = "0.3.0" # Incremented version for command ordering fix
17+
__version__ = "0.3.1" # Incremented version for command ordering fix
1818

1919
# NOTE: Version 0.3.32 fixes a critical bug with command-line argument ordering.
2020
# Previously, flags were incorrectly placed after URLs, causing errors like:

test/simple_test_output/example_com_2025-03-28.html

Lines changed: 0 additions & 45 deletions
This file was deleted.

test/simple_test_output/example_com_2025-03-28.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)