Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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

This version
History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
DataStructuresSerialized-0.0.3.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None Aug 17, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page