Icupy

Latest version: v0.20.0

Safety actively analyzes 706567 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.14.0

- **CHANGED**
- Update pybind11 from 2.9.2 to 2.10.0
- Change arguments and return type of `icupy.icu.Collator.get_bound(source: list[int], source_length: int, bound_type: UColBoundMode, no_of_levels: int) -> list[int]` → `get_bound(source: bytes, source_length: int, bound_type: UColBoundMode, no_of_levels: int) -> bytes`
- Change arguments of `icupy.icu.CollationKey.__init__(values: list[int], count: int)` → `__init__(values: bytes, count: int = -1)`
- Change return type of `icupy.icu.CollationKey.get_byte_array() -> list[int]` → `bytes`
- Change return type of `icupy.icu.ResourceBundle.get_binary() -> list[int]` → `bytes`
- Change return type of `icupy.icu.ResourceBundle.get_version() -> list` → `tuple`
- Change return type of `icupy.icu.RuleBasedCollator.get_sort_key(...) -> list[int]` → `bytes`
- Change return type of `icupy.icu.RuleBasedCollator.get_version() -> list` → `tuple`
- Change return type of `icupy.icu.u_char_age(c: int) -> list` → `tuple`
- Change return type of `icupy.icu.u_get_data_version() -> list` → `tuple`
- Change return type of `icupy.icu.u_get_unicode_version() -> list` → `tuple`
- Change return type of `icupy.icu.u_get_version() -> list` → `tuple`
- Change return type of `icupy.icu.u_version_from_string() -> list` → `tuple`
- Change return type of `icupy.icu.ulocdata_get_cldr_version() -> list` → `tuple`
- **FIXED**
- Raise `IndexError` when `icupy.icu._ConstChar16Ptr.__getitem__(...)` accessing beyond capacity
- Change return type of `icupy.icu.UnicodeSet.__getitem__(index: slice) -> list[int]` → `UnicodeSet`
- Change return type of `icupy.icu.UnicodeString.__getitem__(index: slice) -> str` → `UnicodeString`
- Change return type of `icupy.icu.UnicodeString` comparison operators from `int` to `bool`
- Fix `icupy.icu.UnicodeString.__iadd__(other: UnicodeString | str | int)` to return itself
- Fix return value of `icupy.icu.UnicodeString.extract_between(start: int, limit: int)`
- Change `icupy.icu.UTextVector` to keep references
- **IMPROVED**
- Add `icupy.icu._ConstChar16Ptr.__len__()`
- Add `icupy.icu.UnicodeString.__setitem__(index: int, value: str | int)`
- Reimplement `icupy.icu.UnicodeStringVector`
- Add `UnicodeStringVector.__iadd__(item: UnicodeString | str)`
- Add `UnicodeStringVector.__iadd__(item: list[UnicodeString])`
- Add `UnicodeStringVector.__iadd__(item: list[str])`
- Add `UnicodeStringVector.__init__(iterable: list[str])`
- Add `UnicodeStringVector.__reversed__()`
- Add `UnicodeStringVector.__setitem__(index: int, iterable: list[str])`
- Add `UnicodeStringVector.extend(iterable: list[str])`
- Add `UnicodeStringVector.reverse()`
- Change arguments of `UnicodeStringVector.__contains__(x: UnicodeString)` → `__contains__(item: UnicodeString | str)`
- Change arguments of `UnicodeStringVector.__setitem__(arg0: int, arg1: UnicodeString)` → `__setitem__(index: int, item: UnicodeString | str)`
- Change arguments of `UnicodeStringVector.append(x: UnicodeString)` → `append(item: UnicodeString | str)`
- Change arguments of `UnicodeStringVector.insert(i: int, x: UnicodeString)` → `insert(index: int, item: UnicodeString | str)`
- Change arguments of `UnicodeStringVector.remove(x: UnicodeString)` → `remove(item: UnicodeString | str)`
- Improve `icupy.icu.UTextVector`
- Disable reverse iterator of `UTextVector`
- Add `UTextVector.__init__()`
- Add `UTextVector.__delitem__(index: int | slice)`
- Add `UTextVector.__iadd__(src: list[UnicodeString])`
- Add `UTextVector.append(src: UnicodeString)`
- Add `UTextVector.clear()`
- Add `UTextVector.extend(src: list[UnicodeString])`
- Add `UTextVector.insert(index: int, src: UnicodeString)`
- Change arguments of `icupy.icu.u_version_to_string(version_array: list[int])` → `u_version_to_string(version_array: list[int[4]])`
- **REMOVED**
- Remove `icupy.icu.UTextVector.__init__(n: int)`

0.13.0

- **CHANGED**
- Update pybind11 from 2.9.1 to 2.9.2
- Change arguments of `icupy.icu.RuleBasedBreakIterator.__init__(compiled_rules: list[int], rule_length: int)` → `__init__(compiled_rules: bytes, rule_length: int)`
- Change return type of `icupy.icu.RuleBasedBreakIterator.get_binary_rules() -> list[int]` → `bytes`
- **FIXED**
- Fix comparison method of `icupy.icu._UTextPtr.__eq__(other: _UTextPtr)`
- Fix comparison method of `icupy.icu._UTextPtr.__ne__(other: _UTextPtr)`
- Fix keep alive policy of `icupy.icu.RuleBasedBreakIterator.__init__(compiled_rules: bytes, rule_length: int)`
- Fix keep alive policy of `icupy.icu.RuleBasedCollator.__init__(bin: bytes, length: int, base: RuleBasedCollator)`
- Fix repr() format of `icupy.icu._UTextPtr`
- Fix repr() format of `icupy.icu.AnnualTimeZoneRule`
- Fix repr() format of `icupy.icu.ConstrainedFieldPosition`
- Fix repr() format of `icupy.icu.DateTimeRule`
- Fix repr() format of `icupy.icu.ErrorCode`
- Fix repr() format of `icupy.icu.FieldPosition`
- Fix repr() format of `icupy.icu.GregorianCalendar`
- Fix repr() format of `icupy.icu.ParsePosition`
- Fix repr() format of `icupy.icu.TimeArrayTimeZoneRule`
- Fix repr() format of `icupy.icu.UnicodeSet`
- Fix repr() format of `icupy.icu.UnicodeString`
- Fix repr() format of `icupy.icu.UParseError`
- Fix repr() format of `icupy.icu.UTransPosition`
- **IMPROVED**
- Allow to create subclass of `icupy.icu.SearchIterator`
- Add `SearchIterator.__init__(other: SearchIterator)`
- Add `SearchIterator.__init__()`
- Add `SearchIterator.__init__(text: UnicodeString | str, breakiter: BreakIterator = None)`
- Add `SearchIterator.__init__(text: CharacterIterator, breakiter: BreakIterator = None)`
- Add `SearchIterator.__eq__(other: SearchIterator)`
- Add `SearchIterator.__ne__(other: SearchIterator)`
- Add `SearchIterator._handle_next(position: int)`
- Add `SearchIterator._handle_prev(position: int)`
- Add `SearchIterator._set_match_length(length: int)`
- Add `SearchIterator._set_match_not_found()`
- Add `SearchIterator._set_match_start(position: int)`
- Add `SearchIterator.reset()`
- Add `SearchIterator.set_text(text: CharacterIterator)`
- Add `SearchIterator.set_text(text: UnicodeString | str)`
- Allow to create subclass of `icupy.icu.Transliterator`
- Add `Transliterator.__init__(id_: UnicodeString | str, adopted_filter: UnicodeFilter)`
- Add `Transliterator.__init__(other: Transliterator)`
- Add `Transliterator._create_basic_instance(id_: UnicodeString | str, canon: UnicodeString)`
- Add `Transliterator._handle_transliterate(text: Replaceable, pos: UTransPosition, incremental: bool)`
- Add `Transliterator._set_id(id_: UnicodeString | str)`
- Add `Transliterator._set_maximum_context_length(max_context_length: int)`
- Add `Transliterator.filtered_transliterate(text: Replaceable, index: UTransPosition, incremental: bool)`
- Add `Transliterator.finish_transliteration(text: Replaceable, index: UTransPosition)`
- Add `Transliterator.handle_get_source_set(result: UnicodeSet)`
- Add `icupy.icu.CollationKey.__hash__()`
- Add `icupy.icu.Locale.__hash__()`
- Add `icupy.icu.MessagePattern.__hash__()`
- Add `icupy.icu.MessagePattern.Part.__hash__()`
- Add `icupy.icu.RuleBasedBreakIterator.__hash__()`
- Add `icupy.icu.RuleBasedCollator.__hash__()`
- Add `icupy.icu.UnicodeSet.__hash__()`
- Add `icupy.icu.UnicodeString.__hash__()`
- Add `icupy.icu.UnicodeString.handle_replace_between(start: int, limit: int, text: UnicodeString | str)`
- Change arguments of `icupy.icu.Transliterator.unregister(id_: UnicodeString)` → `unregister(id_: UnicodeString | str)`

0.12.0

- **NEW**
- Add support for ICU 71
- Add `icupy.icu.DateTimePatternGenerator.get_date_time_format(style: UDateFormatStyle)`
- Add `icupy.icu.DateTimePatternGenerator.set_date_time_format(style: UDateFormatStyle, date_time_format: UnicodeString | str)`
- Add `icupy.icu.number.FormattedNumber.get_noun_class()`
- Add `icupy.icu.number.Precision.increment_exact(mantissa: int, magnitude: int)`
- Add `icupy.icu.ucnv_clone(cnv: _UConverterPtr)`
- Add `icupy.icu.UNumberFormatFields.UNUM_APPROXIMATELY_SIGN_FIELD`
- **ADDED**
- Add `icupy.icu.RuleBasedCollator.__init__(bin: bytes, length: int, base: RuleBasedCollator)`
- Add `icupy.icu.u_string_has_binary_property(s: str, which: UProperty)`
- Add `icupy.icu.NounClass` enum
- **CHANGED**
- Change return type of `icupy.icu.RuleBasedCollator.clone_binary() -> list[int]` → `bytes`
- **IMPROVED**
- Change arguments of `icupy.icu.DateFormatSymbols.__init__(locale: Locale)` → `__init__(locale: Locale | str)`
- Change arguments of `icupy.icu.Collator.create_instance(loc: Locale)` → `create_instance(loc: Locale | str)`
- Change arguments of `icupy.icu.Collator.get_display_name(object_locale: Locale, display_locale: Locale, name: UnicodeString)` → `get_display_name(object_locale: Locale | str, display_locale: Locale | str, name: UnicodeString)`
- Change arguments of `icupy.icu.Collator.get_display_name(object_locale: Locale, name: UnicodeString)` → `get_display_name(object_locale: Locale | str, name: UnicodeString)`
- Change arguments of `icupy.icu.Collator.get_functional_equivalent(keyword: str, locale: Locale)` → `get_functional_equivalent(keyword: str, locale: Locale | str)`
- **REMOVED**
- Remove `icupy.icu.ICUException`. Use `icupy.icu.ICUError` instead
- Remove `icupy.__version__`. Use `importlib.metadata` or `importlib-metadata` package instead

0.11.2

- **NEW**
- Add `icupy.icu.U_GC_*_MASK` constants
- **ADDED**
- Add `icupy.icu.UnicodeSet.__ne__(other: _ConstUSetPtr)`
- Add `icupy.icu.UnicodeSet.__ne__(other: _USetPtr)`
- Add `icupy.icu.ucnv_cb_from_uwrite_bytes(arguments: UConverterFromUnicodeArgs, source: str, length: int, offset_index: int)`
- Add `icupy.icu.ucnv_cb_from_uwrite_sub(arguments: UConverterFromUnicodeArgs, offset_index: int)`
- Add `icupy.icu.ucnv_cb_to_uwrite_sub(arguments: UConverterToUnicodeArgs, offset_index: int)`
- Add `icupy.icu.ucnv_cb_to_uwrite_uchars(arguments: UConverterToUnicodeArgs, source: str, length: int, offset_index: int)`
- **CHANGED**
- Update pybind11 from 2.8.0 to 2.9.1
- Change arguments of `icupy.icu.PluralRules.get_samples(keyword: UnicodeString | str)` → `get_samples(keyword: UnicodeString | str, dest_capacity: int)`
- Change return type of `icupy.icu.Formattable.get_object() -> BasicTimeZone | Calendar | CurrencyAmount | DateInterval | TimeUnitAmount | TimeZone | UObject` → `BasicTimeZone | Calendar | CurrencyAmount | DateInterval | TimeUnitAmount | UObject`
- **FIXED**
- Fix return value policy of `icupy.icu.BreakIterator.get_text()`
- Fix comparison method of `icupy.icu.UnicodeSet.__eq__(other: _ConstUSetPtr)`
- Fix comparison method of `icupy.icu.UnicodeSet.__eq__(other: _USetPtr)`
- **DEPRECATED**
- `icupy.icu.ICUException` is deprecated and will be removed in icupy 0.12
- `icupy.icu.ucnv_cb_from_u_write_bytes()` is deprecated. Use `icupy.icu.ucnv_cb_from_uwrite_bytes()` instead
- `icupy.icu.ucnv_cb_from_u_write_sub()` is deprecated. Use `icupy.icu.ucnv_cb_from_uwrite_sub()` instead
- `icupy.icu.ucnv_cb_to_u_write_sub()` is deprecated. Use `icupy.icu.ucnv_cb_to_uwrite_sub()` instead
- `icupy.icu.ucnv_cb_to_u_write_uchars()` is deprecated. Use `icupy.icu.ucnv_cb_to_uwrite_uchars()` instead

0.11.1

Maintenance release.

0.11.0

- **NEW**
- Add support for Python 3.7
- Implement `icu::CanonicalIterator` class
- Implement `icu::CaseMap` class
- Implement `icu::FilteredBreakIteratorBuilder` class
- Implement `icu::GenderInfo` class
- Implement `icu::LocaleDisplayNames` class
- Implement `icu::Region` class
- Implement `icu::ScientificNumberFormatter` class
- Implement Locale data API (ulocdata)
- Implement `icu::NoUnit`
- Add `icupy.icu.u_get_data_version()`
- Add `icupy.utils.gc(obj: typing.Any, closer: collections.abc.Callable[[typing.Any], typing.Any])`
- **ADDED**
- Add `icupy.icu.ucnv_get_from_ucall_back(converter: _UConverterPtr)`
- Add `icupy.icu.ucnv_get_to_ucall_back(converter: _UConverterPtr)`
- Add `icupy.icu.ucnv_set_from_ucall_back(converter: _UConverterPtr, new_action: _UConverterFromUCallbackPtr, new_context: ConstVoidPtr)`
- Add `icupy.icu.ucnv_set_to_ucall_back(converter: _UConverterPtr, new_action: _UConverterToUCallbackPtr, new_context: ConstVoidPtr)`
- **CHANGED**
- Change module name from `icupy.number` to `icupy.icu.number`
- **IMPROVED**
- On Windows, add ICU4C DLL search path at initialization
- Improve repr() format of `icupy.icu.ErrorCode`
- Improve repr() format of `icupy.icu.Calendar`
- Improve repr() format of `icupy.icu.Locale`
- Improve repr() format of `icupy.icu.UParseError`
- Improve repr() format of `icupy.icu.AnnualTimeZoneRule`
- Improve repr() format of `icupy.icu.InitialTimeZoneRule`
- Improve repr() format of `icupy.icu.TimeArrayTimeZoneRule`
- Improve repr() format of `icupy.icu.UnicodeString`
- **DEPRECATED**
- `icupy.number` submodule is deprecated. Use `icupy.icu.number` instead
- `icupy.icu.ucnv_get_from_u_call_back()` is deprecated. Use `icupy.icu.ucnv_get_from_ucall_back()` instead
- `icupy.icu.ucnv_get_to_u_call_back()` is deprecated. Use `icupy.icu.ucnv_get_to_ucall_back()` instead
- `icupy.icu.ucnv_set_from_u_call_back()` is deprecated. Use `icupy.icu.ucnv_set_from_ucall_back()` instead
- `icupy.icu.ucnv_set_to_u_call_back()` is deprecated. Use `icupy.icu.ucnv_set_to_ucall_back()` instead

Page 2 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.