Skip to main content

Utility suite

Project description

Configuration files

Every configuration should be ini-compatible, i.e., of the form <section>.<key>=<value>.

Usually, configuration has a name <name>. Configuration objects look for configuration files of ini format (no extension, .ini extension), json format (.json,.js extension) and yaml format (.yaml, .yml extension) in the following places:

  • System in $PREFIX/etc/<name><ext>
  • Global in ~/.<name><ext>
  • Local in $(git rev-parse --git-dir)/<name><ext>

Avoid having two configuration files with two different extensions in the same location. The choice of file will not be guaranteed. Configuration files are merged for reading, starting with System, then Global, followed by Local. This is the same priority order as with git. In the Configuration object, they are however kept separate which allows to modify separately the three configurations.

Configuration formats

Here are short examples of configuration files in ini, json then yaml format. Remember that the DEFAULT section is not always available.

[DEFAULT]
foo=bar
[server]
name=example.com
{
  "DEFAULT": {
    "foo": "bar"
  },
  "server": {
    "name": "example.com"
  }
}
DEFAULT:
  foo: bar
server:
  name: example.com

Configuration content

When there is a DEFAULT section in the configuration, you are usually allowed to have a section with any name and the same structure as the DEFAULT one.

When available, the @secrets key is parsed into a <protocol>://<entry> to fetch secrets. Right now, the only supported secrets holder is pass.

Available binaries:

Transmission

Help is available via transmission -h.

Configuration structure:

[DEFAULT]
;Required if url, username or password is not provided.
@secrets=pass://my-pass-entry
url=https://torrent.example.com/transmission/rpc
username=john
password=b278cdbd95e67b27
;Defaults to the hostname of the url
host=ssh.example.com
;Defaults to none
volume=/srv/torrent/data:/downloads
;Defaults to $PWD
downloads=/media/john/drive/Downloads

Git Piptag

Help is available via git piptag -h.

There is no configuration. Git Piptag parses the tags of the git tree to get the latest version tag, and try to apply the given new version tag or to suggest a version tag.

The best way to get used to it is to actually test it weth git piptag -n (dry run mode) in several situations.

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

neze-webcli-0.2a0.post0.dev3.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

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

neze_webcli-0.2a0.post0.dev3-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

Details for the file neze-webcli-0.2a0.post0.dev3.tar.gz.

File metadata

File hashes

Hashes for neze-webcli-0.2a0.post0.dev3.tar.gz
Algorithm Hash digest
SHA256 06d4ee87877a7a439a95043f1cbd35efda2fe8845551871bc0644152906db6ba
MD5 3c3e73c187d4edeabed7ac833d9c1963
BLAKE2b-256 9f54a6c23bf45eb47ad04ef055ac04adf54732360fef1dfece01a9184405cf3e

See more details on using hashes here.

File details

Details for the file neze_webcli-0.2a0.post0.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for neze_webcli-0.2a0.post0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 80a08c70d11d65728e944927919b9afc140d6f8651b4a3b36aff4453a1cf532c
MD5 96101fc1c846da95b1fd562c63c23116
BLAKE2b-256 5f7d0b8e8f70174c405686331d294029934265311a3d856c63498d4bdc4791a3

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