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-1.0.tar.gz
(9.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
exobject-1.0-py3-none-any.whl
(11.4 kB
view details)
File details
Details for the file exobject-1.0.tar.gz.
File metadata
- Download URL: exobject-1.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e5234497dde077cb496ea3ff8fb814389560c78e47ad23a6d80d607be313405
|
|
| MD5 |
4193a2062ea32416ae6b0ef963a4a3ca
|
|
| BLAKE2b-256 |
e798b0b2e0239264e57fa91d4f5cf4a71e9b568c3b4fa642665a9432ac5423eb
|
File details
Details for the file exobject-1.0-py3-none-any.whl.
File metadata
- Download URL: exobject-1.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8c33a08c2dcebda0bae11bd64943fa93c03d8142ea16a2e2a2d25cdc1661865
|
|
| MD5 |
7115e86db205523c801f885530537b2d
|
|
| BLAKE2b-256 |
d2117ad0318d1216377d0b0a6a115611926825f0adf84da9253205cfdcdeb0e3
|