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

Uploaded Source

Built Distribution

xango-0.1.32-py3-none-any.whl (55.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xango-0.1.32.tar.gz
  • Upload date:
  • Size: 52.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.32.tar.gz
Algorithm Hash digest
SHA256 fbdd25dbcc123470949b6c4527b528a1e2ddc4a783ba86b59ff456edad6fac13
MD5 0096feecd4010115c2aa1e64555cc6b8
BLAKE2b-256 2de798f002caafab608c77e3f7185086162753ed9c0055d24662bac769813859

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xango-0.1.32-py3-none-any.whl
  • Upload date:
  • Size: 55.1 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.32-py3-none-any.whl
Algorithm Hash digest
SHA256 6ce6efe1ec0eb74a9b7d64ce3b0ad8221ba78c388b270c54b8d9e8b32f92fe3b
MD5 0c5abe739d02b34b888ed3e78cf2fa6c
BLAKE2b-256 6c70e51720571ed26d1c870e6668d6b42beafb0839ce4d04f00629d6045884f1

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