Skip to main content

xango

Project description

Xango

Xango

API

  • db
  • xql_to_aql
  • parse_xsql
  • parse_xgraphql
  • resolve_xgraphql
  • 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"
    }
  ]
}

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

Uploaded Source

Built Distribution

xango-0.1.35-py3-none-any.whl (55.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xango-0.1.35.tar.gz
  • Upload date:
  • Size: 53.1 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.35.tar.gz
Algorithm Hash digest
SHA256 67cd268d60f94e5e3a9c0c7ff6f1f0271350a4db624de25f34d3b8ccf6c9d343
MD5 cc8be9b6bf2ded183b282bc939ff8a0c
BLAKE2b-256 488b75c8e70da5feea98f756450b9ad5b7742942559d5d2da2fc069284905010

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xango-0.1.35-py3-none-any.whl
  • Upload date:
  • Size: 55.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.35-py3-none-any.whl
Algorithm Hash digest
SHA256 baf316fe098794483d57b86c02a8e991ef75f070f63615617c81ce4e72cdfa32
MD5 6006a75ed2878df296f9505495e586c3
BLAKE2b-256 94aca173f56f6b053aad8d253dddd7b179e61d431ebd9b5a4ea31c18d7e81936

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