This serie of posts introduces basic usage of Elasticsearch in 中文
read moreOther articles
Learning Elasticsearch (i)
This serie of posts introduces basic usage of Elasticsearch in 中文
read moreLearning Elasticsearch (iv)
This serie of posts introduces basic usage of Elasticsearch in 中文
read moreCerberus: Triple-head hound of Hades
rules_set_registry: only stores schema itself, for example
{'type': 'string', 'required': True}
schema_registry: stores complete schema, for example{'name': {'type': 'string', 'required': True}}
, it can be used directly.It's not easy to
read moreallow_unknown
for parent schema (for nested dict), because you cannot putallow_unknown
inside the defination of schema. You have …On the BeGinNing
Welcome to visit 'python-NOTes' category in LuCima's SpaCe. Here gathers several posts summerized advanced usages, tips and black techs about Python. All contents are based on Python 3.x, though Python 2.x may be referred to shortly.
read moreOperaions on Basic data structure -- dict
Series of posts (2)
If you want to build up a dict using two lists,
zip()
can be used as this:
dict(zip(list_a, list_b))
Sometimes,
read moreOrderedDict
andDefaultDict
in modulecollections
can be useful. When you need a dict whose keys areOperaions on Basic data structure -- list
Series of posts (1)
Here I am going to summarize some advancing operations about list, which is one of the most commonly used data structure in Python. Basic usage of list will be skipped.
The built-in function
read moresorted()
is helpful for sorting the list or …Operations on FILE and PATH
This post is going to introduce Python's' operations upon files and paths in OS. The most commonly used modules are
read moreos.path
andshutil
.How to implement User Datagram Protocol with Python RAW socket
one’s complement in UDP
- Construct the UDP header and UDP Pseudo header, as illustrated below, where Checksum is set zero at first.
- Check the length of data, if it is an odd length of bytes, supplement a byte of zero (0x00) at the end of the data when counting …
Page 1 / 2 »