Skip to main content

Custom App Environment

Project description

PyXHCustApp

A library provide functionality process chia plot log.

Installation

pip install py-xh-custapp-xethhung12

Demo

from py_xh_custapp_xethhung12 import CustApp, Entry, Profile, Platform

# create app
CustApp.appDefault("abc_app")

# check if proxy is set for the app
print(app.has_proxy())

# set a entry of key `xxx` with vaule `yyy`
app.set_kv(Entry.simple('xxx'), "yyy")

# get the value of configuration entry
print(app.get_kv(Entry.simple('xxx')))

# remove the configuration entry
app.rm_kv(Entry.simple('xxx'))

# check if configuration entry exists
print(app.has_kv(Entry.simple('xxx')))

# create a entry with profile (some kind grouping of configuration)
entry = Entry.with_profile("key", "profile_name")

# print the app home directory
print(app.home)
# `python -m py_xh_custapp_xethhung12` can be replace by `pyXhCustapp` as short cut script

pyXhCustapp apps #Show all apps found in the directory

pyXhCustapp app --name {app name} list #Show all all
pyXhCustapp app --name {app name} exist {key} #return true if {key} exists
pyXhCustapp app --name {app name} value {key} #return value of {key} or None
pyXhCustapp app --name {app name} set {key} {value} #set {value} to {key}
pyXhCustapp app --name {app name} remove {key} #remove {key}

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

py_xh_custapp_xethhung12-1.4.8.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

py_xh_custapp_xethhung12-1.4.8-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file py_xh_custapp_xethhung12-1.4.8.tar.gz.

File metadata

File hashes

Hashes for py_xh_custapp_xethhung12-1.4.8.tar.gz
Algorithm Hash digest
SHA256 50c8a5b6848a66723b83c1889c48ed835e51b92563bc8451cf71b55e28997276
MD5 bfef0d5c5460f86a6ec9e31c2db46f00
BLAKE2b-256 d1294e49d83925d5bf2ec38c67e2aa09c49b9a543c76c98f851351fd6454e2e7

See more details on using hashes here.

File details

Details for the file py_xh_custapp_xethhung12-1.4.8-py3-none-any.whl.

File metadata

File hashes

Hashes for py_xh_custapp_xethhung12-1.4.8-py3-none-any.whl
Algorithm Hash digest
SHA256 35eb654559d67e770455c99aaa5d5640d2daa345f018121d974be7a306051b63
MD5 71c32da9e8cb82ca296d26c4956a523b
BLAKE2b-256 708720ba357b455fad06726219660c06f2ba03a331f61aa7d6764ce2ac281fea

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