python data structures(tuple list OrderedDict) serialized
Project description
NAME
python data structures list serialized and deserialization
SYNOPSIS
from DataStructuresSerialized import DataStructuresSerialized
city = ["China", "010", "beijing"]
separator = '|'
serialized = DataStructuresSerialized(city, separator).getSerializedString()
print(serialized)
DataStructuresSerialized $ China|010|beijing
cityString = "China|010|beijing"
separator = '|'
city = DataStructuresSerialized(city, separator).getDeserializationStruct()
print(city)
DataStructuresSerialized $ ['China', '10', 'beijing']
cityString = "China|010|beijing"
separator = '|'
index = 1
newString = "000"
city = DataStructuresSerialized(cityString, separator)
city.update(index, newString)
newCityString = city.getSerializedString()
print(newCityString)
DataStructuresSerialized $ China|000|beijing
DESCRIPTION
getSerializedString
return serialized string, only support list data structures serialized
getDeserializationStruct
return deserialization list data struct
update
update serialized string or list data structures some substring
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for DataStructuresSerialized-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5ba15c2e1234fb8dc4f75988d7076f573d75b938b411655e175d9b8f536b282 |
|
MD5 | be7cb41206e94c0531f36fd3cf60828c |
|
BLAKE2b-256 | e9f50aa2bac90d0e49317e71522fba1c688f811055de79ea793dc8fa90714ae9 |