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
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.26.tar.gz
(52.5 kB
view details)
Built Distribution
xango-0.1.26-py3-none-any.whl
(54.9 kB
view details)
File details
Details for the file xango-0.1.26.tar.gz
.
File metadata
- Download URL: xango-0.1.26.tar.gz
- Upload date:
- Size: 52.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f18da02f6408f3010be82f5461280a17cd909907d67cdceb43b734d3a9a9d99 |
|
MD5 | f62ef28b2b734682c88b59c3e7d2064c |
|
BLAKE2b-256 | 6b196fe1abbad5555b260539c24f0a0ab818cfbbf501658da7d57a06c4fa13fe |
File details
Details for the file xango-0.1.26-py3-none-any.whl
.
File metadata
- Download URL: xango-0.1.26-py3-none-any.whl
- Upload date:
- Size: 54.9 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 | e7e15a851bd45724ad16fefc30d917b7f86593bcdded2c904bc8e9005e753c23 |
|
MD5 | 08c5f73adca219392cbacdaa07737874 |
|
BLAKE2b-256 | 93e1504174009b53ac39b6cf2bde0a96c042fd1e91e0632cae7e67bccbecb26b |