Extend Object Code
Project description
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.3.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file exobject-0.3.tar.gz
.
File metadata
- Download URL: exobject-0.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73dc9cd8361942aabc0fda5129ae8c776b5350d54cf1e1dbcd5a83f0ad8c78c0 |
|
MD5 | aaa0f9bd7bf438f81782045b53d6a258 |
|
BLAKE2b-256 | 2412fb546b9706cb606baf3077960b591c11b9fae93229265c52c95497d7fb1e |
File details
Details for the file exobject-0.3-py3-none-any.whl
.
File metadata
- Download URL: exobject-0.3-py3-none-any.whl
- Upload date:
- Size: 7.1 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.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eabdf9ba746a33729703c18b590e6402a988cf1580143c2cf8e498f8c6bae7cb |
|
MD5 | 9be06877a6d41a3a44bf80b4400efc0c |
|
BLAKE2b-256 | a60a99ec4ba4a0dfded816ba68392cb3afb584ca85ae3cf8b3f5ab5d946df928 |