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.9.tar.gz
(9.8 kB
view details)
Built Distribution
exobject-0.9-py3-none-any.whl
(11.4 kB
view details)
File details
Details for the file exobject-0.9.tar.gz
.
File metadata
- Download URL: exobject-0.9.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 | 154dacec9dcc6ecc4cd4d4cb3415ec830548b7dd993e6bb631d4c1847495060e |
|
MD5 | cc057b08a7853aca97d2ee776459805c |
|
BLAKE2b-256 | 75287a78ac37756248c6264b0b9c63315caf09cc802195f698bc737e8e11ca82 |
File details
Details for the file exobject-0.9-py3-none-any.whl
.
File metadata
- Download URL: exobject-0.9-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 | 0d54a807372f8215d179edaa7e02c41fb2068c66b4d5434894f9633595af1fb5 |
|
MD5 | 444c765cf115918f1454f344d0389641 |
|
BLAKE2b-256 | 5cc6f64ab9d2b60e237ab35f6f587a9901641727dd32ee4015666bee1fce86cd |