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

Uploaded Source

Built Distribution

xango-0.1.24-py3-none-any.whl (54.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xango-0.1.24.tar.gz
  • Upload date:
  • Size: 50.2 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.24.tar.gz
Algorithm Hash digest
SHA256 5429cd429d12e6b393100542b86f35becf0ff7421e57653d1079e8ce08252aa8
MD5 77a9a52ec25a9667a9f018ca91d25977
BLAKE2b-256 d2b930498f985b08bcb8dc9c168b768753ffd3a3b332c7e179a776eea0f097dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xango-0.1.24-py3-none-any.whl
  • Upload date:
  • Size: 54.8 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.24-py3-none-any.whl
Algorithm Hash digest
SHA256 f0318af34de94e6a4f94d5325eb77269f23615752510eeb8b7665f132ec1ee75
MD5 d8f92907e7fb02a1e8ee32cd9a65b40e
BLAKE2b-256 37464ac4dd197835a47c9c70ce2f6c5232ea90b82e18d143d79a20b1b6c15dba

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