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.8.tar.gz
(40.4 kB
view details)
Built Distribution
xango-0.1.8-py3-none-any.whl
(41.5 kB
view details)
File details
Details for the file xango-0.1.8.tar.gz
.
File metadata
- Download URL: xango-0.1.8.tar.gz
- Upload date:
- Size: 40.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ef4970c075fa2907c4802cda8d6475bc453c0015132e400afb47143a6253436 |
|
MD5 | 0a318f63314438fe2093dd22f6ed496e |
|
BLAKE2b-256 | eabb6590658e1d716ffeae719b948b828463fcc51eda0ff85a21a0ef9a4224a5 |
File details
Details for the file xango-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: xango-0.1.8-py3-none-any.whl
- Upload date:
- Size: 41.5 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 | 8625a1467fe4836d553cda7f39c407e4060d0f69cfffd9498749b90d6b1c6e93 |
|
MD5 | 5de318984c90a5389e8d084eea27f54d |
|
BLAKE2b-256 | 11e4a61216d82db74272957562b76b8608652e3b499fe1d8499f262787e65385 |