Skip to main content

Configuration Management Library

Project description

HydroPump-python

Configuration Management Library

HydroPump is an open-source Python library that provides a simple and efficient way to manage configuration files. It allows you to store and retrieve configuration data using different backends such as local file system and various cloud storage solutions.

Installation

You can install HydroPump using pip:

pip install hydropump

Usage

To use HydroPump, you need to import the hydropump module:

import hydropump

Example

Here's a complete example that demonstrates the usage of HydroPump:

from hydropump import Service

service_config = {
    "backend_type": "FileSystem",
    "file_extension": "json",
}

service = Service(config=service_config)

template_id1 = "example_template1"
template1 = {
    "sqlEngine": "mysql"
}
service.create_template(metadata={}, source=template1, template_id=template_id1)

template_id2 = "example_template2"
template2 = {
    "sqlEngine": "postgres"
    "cloudProvider": "AWS"
}
service.create_template(metadata={}, source=template2, template_id=template_id2)

instruction_id = "client-12345"
metadata = {
    "createdBy": "mvecchione145",

    # templates are compiled from left to right
    # (common keys in example_template1 will be
    # overridden by values in example_template2)
    "templates": ["example_template1", "example_template2"]
}
source = {
    "system": "darwin"
}

service.create_instruction(
    instruction_id=instruction_id,
    metadata=metadata,
    source=source)

instruction = service.get_instruction(instruction_id=instruction_id)

print(returned_payload)
# {
#   "instruction": {
#     "cloudProvider": "AWS",
#     "sqlEngine": "postgres",
#     "system": "darwin"
#   },
#   "metadata": {
#     "createdBy": "mvecchione145",
#     "templates": [
#       "example_template",
#       "example_template2"
#     ]
#   }

Contributing

Contributions to HydroPump are welcome! If you find any issues or have suggestions for improvement, please open an issue on the GitHub repository. Pull requests are also appreciated.

Please make sure to follow the contribution guidelines when submitting your contributions.

License

HydroPump is released under the MIT License.


Thank you for using HydroPump! We hope it helps simplify your configuration management process. If you have any questions or need further assistance, feel free to reach out to us at support@hydropump.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydropump-0.1.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hydropump-0.1.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file hydropump-0.1.1.tar.gz.

File metadata

  • Download URL: hydropump-0.1.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for hydropump-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6e1d9994a6c0e3f964b2cb787e2a736851648b704e1d3284861694ad5dce4f4d
MD5 daa05105b6123854452434ec01e0d3af
BLAKE2b-256 17bb1af2cde032b5f48a138717f8996fe6c33848d618219c6b128f9ef85580f3

See more details on using hashes here.

File details

Details for the file hydropump-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hydropump-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for hydropump-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 53829c5660afb52b8aaaf58294a99c212604b48e539e1e99c265b1c951eda8a4
MD5 713c8557d6d03ed7a16faf8cd5398845
BLAKE2b-256 127d0e7d9166bd6f9d253987dc754967cd91b145595daf4fc288ab30d87eacb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page