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.5.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.5-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for py_xh_custapp_xethhung12-1.4.5.tar.gz
Algorithm Hash digest
SHA256 471084816ec5d25eafa3365378401ba92c59f9981b2220490338d42e0cfacfc9
MD5 62b5ee911dbe90027744c5a690f043bb
BLAKE2b-256 b8708726c39bb220bde8b7dd667b6d30037c3612d00fa1fcf4d360b490277652

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_xh_custapp_xethhung12-1.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c26232a1e4da778a893dde1feeb0c04fcb6f8417ba05e4fd3ed8f13ca221ccc0
MD5 f2b9b0ba28bf99082331ac8e9fe7e6a6
BLAKE2b-256 60e4584b5fbbda102dce234924d829265e7976873273f5aa407c3cf1d2b42574

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