Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DataStructuresSerialized-0.0.3.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file DataStructuresSerialized-0.0.3.tar.gz.

File metadata

File hashes

Hashes for DataStructuresSerialized-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1ea3626978f276928c21993531c5bd3921adba5e091e853cfc24ae8616927548
MD5 9fa6ecf50c3ea00de1e188aa3686f01d
BLAKE2b-256 2137b7840f52c80de93ec7e047898f5df1578e2bff966d6b7ccda5951b02f77c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page