Skip to main content

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.6.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

exobject-0.6-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file exobject-0.6.tar.gz.

File metadata

  • Download URL: exobject-0.6.tar.gz
  • Upload date:
  • Size: 8.1 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

Hashes for exobject-0.6.tar.gz
Algorithm Hash digest
SHA256 3c325f99b76ba3d1a40a73a2f38304254f8f6262dbf9dec6edb2362d08619a84
MD5 2b8d8cd8426c1b923d0aeedc40ded1bb
BLAKE2b-256 66a3ebc7150a420bf3b549cc875892dbb3b1d98bb96e197f4e4083a7986f51a6

See more details on using hashes here.

File details

Details for the file exobject-0.6-py3-none-any.whl.

File metadata

  • Download URL: exobject-0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.7 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

Hashes for exobject-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dde0dd4b870bcfc01d91babd58c905688d58fad137748a0ac17540eadc635661
MD5 d9be67e53a96f5adc47927e983984569
BLAKE2b-256 459c8cc5ffdeb4994c0faaf9a14fb8ba2fa54281ca585d19b6862fa71c276b23

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page