Registry / serialization / alibabacloud-darabonba-array

alibabacloud-darabonba-array

JSON →
library0.1.0pypypi✓ verified 81d ago

The `alibabacloud-darabonba-array` library provides array manipulation utilities specifically designed for the Alibaba Cloud Darabonba framework. It offers methods for common array operations like appending, getting items, and checking size. Currently at version 0.1.0, it is part of the broader Alibaba Cloud SDK ecosystem and follows a release cadence tied to the Darabonba framework's development.

pip install alibabacloud-darabonba-array
INSTALL
IMPORT
SIG · ALIBABACLOUD-DARAB
A
alibabacloud-darabonba-array
serializationpythonv0.1.0
Install
2.4s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.2MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.4s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Array
import alibabacloud_darabonba_array
from alibabacloud_darabonba_array import Array

This quickstart demonstrates how to initialize a Darabonba `Array` object and perform common operations such as appending, retrieving items, checking size, containment, removal, and concatenation. Note that many methods modify the array in-place.

from alibabacloud_darabonba_array.client import Array # Initialize with a list arr = Array.initial(["a", "b", "c"]) print(f"Initial array: {arr.to_list()}") # Append an item Array.append(arr, "d") print(f"After append: {arr.to_list()}") # Get an item by index item = Array.get_item(arr, 1) print(f"Item at index 1: {item}") # Get size size = Array.size(arr) print(f"Array size: {size}") # Check if an item exists contains_c = Array.contains(arr, "c") print(f"Contains 'c': {contains_c}") # Remove an item (by value) Array.remove(arr, "b") print(f"After remove 'b': {arr.to_list()}") # Concatenate arrays arr2 = Array.initial([1, 2]) Array.concat(arr, arr2) print(f"After concat: {arr.to_list()}")
Debug
Known issues
gotchaThis library is designed as a utility for the Alibaba Cloud Darabonba framework and its SDKs, not as a general-purpose standalone array manipulation library like NumPy or standard Python lists. Its API might feel less 'Pythonic' compared to idiomatic Python array operations.
fix
Understand its primary use case within the Alibaba Cloud Darabonba ecosystem. For general-purpose array needs, consider Python's built-in lists or libraries like NumPy.
affects: 0.1.0
breakingAs a library in its early development (version 0.1.0), the API is subject to change in minor or patch versions. Method names, signatures, or class structures could be altered without a major version increment.
fix
Pin to exact patch versions (`alibabacloud-darabonba-array==0.1.0`) in production environments and review release notes carefully before upgrading.
affects: 0.1.x
gotchaMany methods, such as `append`, `remove`, and `concat`, modify the `Array` object in-place and return `None`. Be aware of this behavior when chaining operations or expecting a new array object.
fix
Always work with the original `Array` instance after calling modifying methods. Check method signatures in documentation if unsure of return values.
affects: 0.1.0
Upgrade
Version history
0.1.0latest on PyPI · released Nov 1, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
26
OpenAI (training)
1
Resources
alibabacloud-darabonba-array — pip install alibabacloud-darabonba-array · libregistry