Flarecast utils provides tools to interact with the flarecast infrastructure.
Project description
Flarecast Utils combine some tools which you can use to develop your application for the flarecast infrastructure.
Property-DB Client
Example
client = PropertyDBClient(PROPERTY_DB_REST_ADDRESS)
payload = []
payload.append({'test':'hello'})
result = client.insert_property_group(provenance=PROVENANCE,
property_group_type=property_group_type,
body=payload)
Global Config Loader
Example
Load configuration
# load configuration
globalconfig = GlobalConfig('config url')
globalconfig.load()
Use configuration
self.__pg = PostgresNoSQLClient(host=globalconfig.DB_HOST,
port=globalconfig.DB_PORT,
user=globalconfig.DB_USER,
password=globalconfig.DB_PASSWORD)
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
flarecast-utils-1.0.1.tar.gz
(2.3 kB
view details)
File details
Details for the file flarecast-utils-1.0.1.tar.gz
.
File metadata
- Download URL: flarecast-utils-1.0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df0c7c39119b4e6b8beda70b64f7c16c6c367bb88d69d53838c2812e1727bcfd |
|
MD5 | c82f3a14f5e648f1edf57b36d2080208 |
|
BLAKE2b-256 | 09e9ffd3c02a1f7e91784027360420e67e4c147b9e455ddc6299520ee7f94d07 |