Skip to main content

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"
    }
  ]
}

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: xango-0.1.36.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.36.tar.gz
Algorithm Hash digest
SHA256 42edf8ed1b4c96ea22349d0a78569883f5349699e61717c30ed2037ae0084398
MD5 664e5e1dcaea1c4740acb99fc9b50ba0
BLAKE2b-256 30597c6bdd35597d07ef1d8ac85f0cc4758048dc80df206c1d61eea32fa1e431

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xango-0.1.36-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.36-py3-none-any.whl
Algorithm Hash digest
SHA256 1b1fbc95e59bf88b4cad0c82ff21b1d5a9e07d7a3db41ef9283448e0f14eed25
MD5 cf2017831f94ab7f7cc939780718150d
BLAKE2b-256 678e4104383d8167a53f6b393b639f0d87bb815a17d9a4577806716382f3462e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.36 This release

2 files

0.1.35

2 files

0.1.34

2 files

0.1.33

2 files

0.1.32

2 files

0.1.31

2 files

0.1.30

2 files

0.1.29

2 files

0.1.28

2 files

0.1.27

2 files

0.1.26

2 files

0.1.25

2 files

0.1.24

2 files

0.1.23

2 files

0.1.22

2 files

0.1.21

2 files

0.1.20

2 files

0.1.19

2 files

0.1.18

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page