Skip to main content

No project description provided

Project description

params-aws

Load and Save typed Parameters in AWS Datastore

Install

pip install params-aws

Using the library

Ensure that aws_access_key_id and aws_secret_access_key is properly set in ~/.aws/credentials. Or any place where boto3 would recognize - https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html

Import

from params_aws import params_aws
from params_aws import model

List parameters

>>> params_aws.get_parameter_names()
['test']

Get parameter with type

This will be cached for 1 hour

>>> params_aws.get_parameter('test', model.DBConfig, cached=True)
DBConfig(host='host', user='username', password='password', port=5432, ssl=False)

Put parameter

We should use the cli (see below)

>>> params_aws.put_parameter('test', model.DBConfig, 'value')

CLI

>>> params_aws_cli names
test
test2

>>> params_aws_cli types
DBConfig
GGAPIConfig

>>> params_aws_cli get-value test
{
  "host": "host",
  "user": "username",
  "password": "password",
  "port": 5432,
  "ssl": false
}

>>> params_aws_cli get test DBConfig
host='host' user='username' password='password' port=5432 ssl=False

>>> params_aws_clit put test DBConfig
(launches an editor which saves and validate on exit)

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

params_aws-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

params_aws-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: params_aws-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Darwin/22.2.0

File hashes

Hashes for params_aws-0.1.1.tar.gz
Algorithm Hash digest
SHA256 382dcb72984222e8233399db60ba3ace7fbb1d11217ddeae3464044dc10c5226
MD5 b233a46829e6046cbe60b08917a3a788
BLAKE2b-256 47606546b265378e31248ec15de08482a6cd5bc7b46dbdccb8d3ac75b317be6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: params_aws-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Darwin/22.2.0

File hashes

Hashes for params_aws-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a147b702dbc6c7c1a9e3517f0ed7eb30bdb78382a3a0c388d6b84ff6f3186678
MD5 870d51274e5a5dd2f43fe14f1eb6dcf2
BLAKE2b-256 5ea947de54c742e567e1ca0c3c5dae471d93119d20eba7d923fce32242971639

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