Skip to main content

xango

Project description

Xango

Xango

API

  • db
  • xql_to_aql
  • parse_dict_mutations
  • gen_xid
  • Collection
  • CollectionItem
  • CollectionActiveRecordMixin

Connection

import xango

#--- connect
db = xango.db(hosts="http://host:8529", username="root", password:str)

#--- select collection
coll = db.select_collection('test')

#--- insert item
coll.insert({k:v, ...})

#--- insert item with custom _key
coll.insert({k:v,...}, _key='awesome')


Query

  {
    "_modified_at:$datetime": "+2hh"
  }

Format:

YYYY: Year
MM: Month
DD: Date
HH: Hour
mm: Min
ss: seconds

ISODATE: YYYY-MM-DDTHH:mm:ss

$AND and $OR

filters = {

  "$or": [
    { // query between dates
      "_created_at:$lt": "@@CURRDATE() -2days",
      "_created_at:$gt": "@@CURRDATE() +2days"
    }
  ]
}

Insert

Update

Delete

Collection

SubCollection

Operators

Custom Operators

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

xango-0.1.11.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

xango-0.1.11-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file xango-0.1.11.tar.gz.

File metadata

  • Download URL: xango-0.1.11.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for xango-0.1.11.tar.gz
Algorithm Hash digest
SHA256 c2c89b3753f5297eb07c3e7e2643b186c898c6994bb69437a3ca11bc00011de6
MD5 9050f767e2ff09eb4636e1fcfef2c50a
BLAKE2b-256 943ee6aeaccf1548b767ac04400961d5d445f4b7c72ed7118fd191418e7f6d42

See more details on using hashes here.

File details

Details for the file xango-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: xango-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 44.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for xango-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 6cbfdd39a6a75fc1b8bee8eef9bc9514280f27f5cab70703cf96ad86d19772bc
MD5 39d2c13c5455dbf845760de5824668bf
BLAKE2b-256 300fa8b29b0decfe6ef0505d078930f784ce39cc5cbd5ad6cb09d4a7453d4354

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