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.2.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file flarecast-utils-1.2.0.tar.gz
.
File metadata
- Download URL: flarecast-utils-1.2.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d589c1f2a1172043c82ca0e6a5384e1a5cf2c5cde26865bf65a75b5440166e7b |
|
MD5 | b69cff407760e1b7d4cdb22a18a30f34 |
|
BLAKE2b-256 | 3aaceef1a5657766568cde84f004317c730492d2a14a64f637f4d02c534f9e58 |
File details
Details for the file flarecast_utils-1.2.0-py2-none-any.whl
.
File metadata
- Download URL: flarecast_utils-1.2.0-py2-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 637d9a21052fcb9e1cffe3d0210531a4c8bae542f15c1b732373a58c24aeef62 |
|
MD5 | bc113a8cccf99c16856f96f80b72d494 |
|
BLAKE2b-256 | fa658a71742d06074c73889d2db4a6492f45e5136d20a69a854c42f78746d955 |