target-terminusdb
This is a Singer target that reads JSON-formatted data following the Singer spec.
To install
target-terminusdb can be install via pip with Python >= 3.7:
python3 -m pip install -U target-terminusdb
To use
You can start a project in a directory using conjunction with TerminusDB easily by:
terminusdb startproject
This will create the config.json that stores information about the endpoint and database that you are connecting to.
Then you can pipe in data using a Singer.io tap to TerminusDB. For details about how to use a Singer.io tap you can see here. For example you have a Python tap like this:
import singer
import urllib.request
from datetime import datetime, timezone
now = datetime.now(timezone.utc).isoformat("T","milliseconds")
schema = {
'properties': {
'ip': {'type': 'string'},
'timestamp': {'type': 'string', 'format': 'date-time'},
},
}
with urllib.request.urlopen('http://icanhazip.com') as response:
ip = response.read().decode('utf-8').strip()
singer.write_schema('my_ip', schema, 'timestamp')
singer.write_records('my_ip', [{'timestamp': now, 'ip': ip}])
Then you can use it to put my_ip in TerminusDB like this:
python tap_ip.py | target-terminusdb -c config.json
Metadata
Release files for target-terminusdb 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| target-terminusdb-0.1.4.tar.gz | 16.1 kB | Without provenance | Details for target-terminusdb-0.1.4.tar.gz |
Release files / target-terminusdb-0.1.4.tar.gz
| Download URL | target-terminusdb-0.1.4.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f203eab556e51f126434f0eef4b50b4d770a7ad9f82ad073876c21aa2e925aca
|
|
BLAKE2b-256 checksum How to use checksums |
58b75e4104f10f90a6ded3b13946c6279c1da86f76345a314674d07ef08fec3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Security for target-terminusdb 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.