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
Release history Release notifications | RSS feed
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.6.tar.gz
(39.8 kB
view details)
Built Distribution
xango-0.1.6-py3-none-any.whl
(41.2 kB
view details)
File details
Details for the file xango-0.1.6.tar.gz
.
File metadata
- Download URL: xango-0.1.6.tar.gz
- Upload date:
- Size: 39.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 379490dadf3222b3d6239eb92cd7118430c4957bea7c83185c929a8066756501 |
|
MD5 | 3f8867680748f6f1f2f7011b79615c2c |
|
BLAKE2b-256 | 3fc8ea0b5c62577e4bd85d40f154afded124a359fb04cddbf94b5b49cc7644bc |
File details
Details for the file xango-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: xango-0.1.6-py3-none-any.whl
- Upload date:
- Size: 41.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99627a513593d8632f04e6686d1b0a920d419a0b1caff869a286a81c6ff11790 |
|
MD5 | 58d92c1adf8a11fc1a5edd6234d556a6 |
|
BLAKE2b-256 | 033915c074b76f344e52472140f0c17bf01c2e67e87a93983b313142f4464b17 |