Skip to main content

Tispost

Latest PyPI package version

Key Features

  • Supports asyncio.

Getting started

tispost allows you to quickly use postgres as a nosql database.

Example

# import
from tispost import Server, Collection, Session

# create connection
server = Server(dbname=database, user=postgres, password=postgres, host=dlnxiot001)

# connect
server.connect()

# get session
session = await server.session()

# create new collection
session.create("collection")

# delete a collection
session.delete("collection")

# get a collection
collection = session.collection("collection")

# insert document into a collection:
collection.save({'item':'value'...})

# get document from collection with id
collection.get(id="930f43ed-7bb5-46b9-a6d2-45c345ec959e")

# query items
collection.query(filter={'key':'value'}, offset=0, limit=50)

Installation

It's very simple to install tispost:

pip install tispost

Notes

  • The db user must have the create/drop table permission

Requirements

License

tispost is offered under the Apache 2 license.

Source code

The latest developer version is available in a GitHub repository: https://github.com/aiselis/tispost

Metadata

Release files for tispost 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tispost 0.1.0
File Size Uploaded
tispost-0.1.0.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tispost 0.1.0
File Interpreter ABI Platform
tispost-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / tispost-0.1.0.tar.gz

Download URL tispost-0.1.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
32347c47b3fd9fcc15e61ba610e1bfeafab9df4268722688af45dbe36c0512fe
BLAKE2b-256 checksum
How to use checksums
8ffa3655bb8388914d7c87249a6df268b269cfb2e9e09e8c432ce0a9dbb515d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.3

Release files / tispost-0.1.0-py3-none-any.whl

Download URL tispost-0.1.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b3409c28f77fea82a7691c4aa705c1de0efc51ade412a5aab77fafa64bfbd96
BLAKE2b-256 checksum
How to use checksums
e787598c45faacfd002f21d297c49fba7ff053d8cfc75f0a35668a83e7c4572e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page