Extend Object Code
Project description
Pip:https://pypi.org/project/exobject
Expamle:
from ExObject.ExObject import ExObject from ExObject.DateTime import DateTime a=ExObject([ {"name":"a","age":1}, {"name":"b","age":51}, {"name":"c","age":11}, {"name":"d","age":22} ]) b=a.SortBy(lambda x:x["age"],True) print(b) #==== b=a.SortBy(lambda x:x["age"],False) print(b) #==== print(a.Select(lambda x:x["name"].ToString())) c=a.Where(lambda x:x["age"]<10).FirstOrDefaultObject() print(c) print(c["?name"].ToString())#print a print(c["?nickName"].ToString())#print none #==== date=DateTime.Now() date2=DateTime.AutoConvert("2019-02-06") print(date2)
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
exobject-0.7.tar.gz
(8.8 kB
view details)
Built Distribution
exobject-0.7-py3-none-any.whl
(10.6 kB
view details)
File details
Details for the file exobject-0.7.tar.gz
.
File metadata
- Download URL: exobject-0.7.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bd4c08dd9c9805177261201b20dfb78e38d0547fe1d370fa553c044d15afcd4 |
|
MD5 | bf53c038f0666c5573c7cf2067a8a1dc |
|
BLAKE2b-256 | 4d63f22febd1a265d9a862455eb0481817a5afbd72db8743ff6d9d8ac0193c3a |
File details
Details for the file exobject-0.7-py3-none-any.whl
.
File metadata
- Download URL: exobject-0.7-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c52e262457139263c52ef8c6a9e1cf6809ed5bcfafdc8e8450e057f5a494a181 |
|
MD5 | 2c6d1fe9a6e9b54ed1f3fac9bda3d6c3 |
|
BLAKE2b-256 | 154b5ead81fbff7ba83cd8e5c55dc2753d1d7c01d9f8d83289cfbb5dc5ab8597 |