Geobricks common library.
Project description
Geobricks Common
==============
Geobricks common library handle some functionalities that are used by different Geobricks components, like the logging, folders structure and email service.
# Installation
## Linux
```python
pip install geobrickscommon
```
## Example of configuration
An example of main configuration contained in geobricks.common.config.config:
```python
{
"settings": {
# Logging configurations
"logging": {
"level": logging.INFO,
"format": "%(asctime)s | %(levelname)-8s | %(name)-20s | Line: %(lineno)-5d | %(message)s",
"datefmt": "%d-%m-%Y | %H:%M:%s"
},
# Folders to be used by the system
"folders": {
"tmp": "/tmp",
#"geoserver_datadir": "/tmp",
"geoserver_datadir": "/geoserver_data_dir",
"distribution": "/distribution_folder",
"storage": "/storage_folder"
},
# Email configurations (for now uses gmail as default client)
"email": {
"user": "user",
"password": "password"
},
# optional metadata D3S service used to get a resource using its UID
"metadata": {
"url_get_metadata_uid": "http://localhost:7788/d3s/msd/resources/metadata/uid/<uid>",
}
}
}
```
==============
Geobricks common library handle some functionalities that are used by different Geobricks components, like the logging, folders structure and email service.
# Installation
## Linux
```python
pip install geobrickscommon
```
## Example of configuration
An example of main configuration contained in geobricks.common.config.config:
```python
{
"settings": {
# Logging configurations
"logging": {
"level": logging.INFO,
"format": "%(asctime)s | %(levelname)-8s | %(name)-20s | Line: %(lineno)-5d | %(message)s",
"datefmt": "%d-%m-%Y | %H:%M:%s"
},
# Folders to be used by the system
"folders": {
"tmp": "/tmp",
#"geoserver_datadir": "/tmp",
"geoserver_datadir": "/geoserver_data_dir",
"distribution": "/distribution_folder",
"storage": "/storage_folder"
},
# Email configurations (for now uses gmail as default client)
"email": {
"user": "user",
"password": "password"
},
# optional metadata D3S service used to get a resource using its UID
"metadata": {
"url_get_metadata_uid": "http://localhost:7788/d3s/msd/resources/metadata/uid/<uid>",
}
}
}
```
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
GeobricksCommon-0.0.9.tar.gz
(14.5 kB
view details)
File details
Details for the file GeobricksCommon-0.0.9.tar.gz
.
File metadata
- Download URL: GeobricksCommon-0.0.9.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92e6e4ec66745cd4791e8036d511bc00342d7be31701824615c7c24f014040a7 |
|
MD5 | 4d758407304e17e3b9bc31bc9f32ba8b |
|
BLAKE2b-256 | 545d2410d5276547e99975ce08d154dcc09ce1ae2ffae19950f07caf02a28139 |