Skip to main content

A simple, sqlite3-backed parameter store

Project description

Copyright (c) 2019 Anna Poulakos

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Description: # ap-store

A simple parameter storage utility

## Installation

To install the current release: ` $ pip install ap-store `

## Usage

<details markdown=”1”> <summary>Get a parameter by key &hellip;</summary>

Usage: `bash $ store get KEY `

Where KEY can be an arbitrary key. Keys cannot contain spaces or special CLI characters.

Example: `bash $ store get ap:store:configured true `

</details>

<details markdown=”1”> <summary>Get all keys &hellip;</summary>

Usage / Example: `bash $ store list ['ap:store:configured'] ` </details>

<details markdown=”1”> <summary>Partial key search &hellip;</summary>

Usage: `bash $ store search KEY_FRAGMENT `

Where KEY_FRAGMENT can be any partial key fragment that matches a key.

Example: `bash $ store search ap ['ap:store:configured'] ` </details>

<details markdown=”1”> <summary>Insert a new parameter &hellip;</summary>

Usage: `bash $ store insert KEY VALUE `

Where KEY is an arbitrary key and VALUE is anything else. Keys should not have spaces, but values do not have this requirement.

Example: `bash $ store insert ap:status approved :+1: $ store get ap:status approved :+1: ` </details>

<details markdown=”1”> <summary>Delete a parameter &hellip;</summary>

Usage: `bash $ store delete KEY `

Example: `bash $ store insert ap:test TESTING $ store get ap:test TESTING $ store delete ap:test $ store get ap:test None ` </details>

Platform: UNKNOWN Description-Content-Type: text/markdown

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ap_store-0.1.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file ap_store-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ap_store-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.1

File hashes

Hashes for ap_store-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 350f2123eb645248db02602c72c9645f1c0305de2a7f72203c76c96a78b22227
MD5 ee9903166548726350554a9830a954fd
BLAKE2b-256 99b260c8c362a0862ce3b3be5004f0b94ac62c546ec65822758adc3c89f8834b

See more details on using hashes here.

Supported by

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