SightingDB is a fast database to perform Sightings. It allows to count how many time someone has seen something, when was the first time, when was the last time etc.
This client library is an abstraction from the REST API.
Examples
To write 3 values:
import sightingdb
con = sightingdb.connection(host="localhost", apikey="changeme")
writer = sightingdb.writer(con)
writer.add("/key/namespace1", "pypi.org")
writer.add("/key/namespace1", "pypi.org")
writer.add("/key/namespace2", "example.com")
writer.commit()
We are counting, so pypi.org will have a count of 2.
To read 2 values, it is almost like writing but writer became reader and we fetch data to iterate on:
import sightingdb
con = sightingdb.connection(host="localhost", apikey="changeme")
reader = sightingdb.reader(con)
reader.add("/key/namespace1", "pypi.org")
reader.add("/key/namespace2", "example.com")
for i in reader.fetch():
print(str(i))
And you will be all set to read all the values.
Metadata
Release files for sightingdb 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sightingdb-0.0.6.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sightingdb-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.8 kB
Release files / sightingdb-0.0.6.tar.gz
| Download URL | sightingdb-0.0.6.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
481290f8cefcc778a0e3da9be1f0048d85fb5ffad0d783d5a9c1fd824e6c26b5
|
|
BLAKE2b-256 checksum How to use checksums |
b3e516881a010e31a591680e3ad63f960937173c361e013017aba8374d829dd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Release files / sightingdb-0.0.6-py3-none-any.whl
| Download URL | sightingdb-0.0.6-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ced1e9bd34eece9861bc9361e2ca59853c5b24427b173e2a0cff4b78b487a36
|
|
BLAKE2b-256 checksum How to use checksums |
20c99794c4dcaed7a177dabef134c72a4bc00a5f902bf55ebc09f1ffbf67fb49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|