Skip to main content

更简单的配置

Project description

README-English about Txvx config manager

支持中文版本的README,贼TM接地气

README-Chinese

## What is? It is a config manager #### What can it do? It can set config, read config, get config and create a config ## How to use it? ### 1,Install #### Linux/Unix Install python 3.9(If you use an earlier version, I cannot guarantee that this broken thing will work) `pip install txvx` ####Windows Address:)

2,Use

In you python code, write 'import txvx'
and new a object so......

import txvx

Txvx = txvx.run(FilePath)

3,Functions

Functions Use Do
get() get(var) get Config File {var} value
set() set(var, value) set Config File {var} value
create() create() Create a new Config File(If it existed would erase)
add() add(var, vaule) add a new config vaule
remove() remove(var) delete vaule and return the config vaule
save() save() save infomation from RAM
show() show() return all registered vaule
showType() showType() return now Type
new() new(List) Look Last!
serach() serach(Item)

4, Txvx file format

Under normal circumstances (there is no abnormal situation), the configuration files are all suffixed with '.txvx'
For example: see nm's see.txvx

Internal files usually look like this

example=5
example1=Hello, World
Writer=FZZkill

but

I'm an idiot

This is wrong because it has no value, you should write even null

I'm not a fool=

Notes: I didn't expect to put it, this broken thing has a comment!

# Note: only at the beginning

5, a momentary misstep and eternal hatred!

When you change the file, please be sure to use the 'save()' function to save the file, this grandson will not automatically save it, which is very important!

Data is priceless, operate with care

finally

Here comes the point

How to use the new method? This is the essence of the txvx method. Under normal circumstances, all functions need to pass the new method when reading the file registration.

Normally, this function needs to pass two values

new([],type)

What is [], this is easy to understand, in fact, it is to pass a list~~Why is the list []? I'm curious about this too, but that's the truth~

But this list is important, there are two cases:

['Registry','Cave']
[['No ,This Registry','Niubia'],['CXKNMSL','LBWNB']]

So when to use it, you need to distinguish

['xx','xx']
In this case, the incoming type value is 1
is to add this list to the main list

[[],[]]
In this case, the incoming type value is 2 (default)
This case is a direct override of the main list

if you delete the object, it cannot save

Last and Last(Let me say a few world on important business)

Writer: FZZkill
Language: Python3.9
Where: Github & Pypi

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

txvx-1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

txvx-1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file txvx-1.0.tar.gz.

File metadata

  • Download URL: txvx-1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for txvx-1.0.tar.gz
Algorithm Hash digest
SHA256 5d9f10a5268abb4c9af294465bc516df678eac79f1083438c602c4936937fd9b
MD5 fb0f7d6daeb087e7428c8c38f24fc33a
BLAKE2b-256 1a919d811659b4da12aaab697bf2249eba5302998a8ed247ded5b7e5e18f8ce4

See more details on using hashes here.

File details

Details for the file txvx-1.0-py3-none-any.whl.

File metadata

  • Download URL: txvx-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for txvx-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 248d038402912fc22c3fd598e596aed786daf38276a8938294e968eae6906d19
MD5 e8ef20b8fb40de4666bfce36fdcc8dc8
BLAKE2b-256 31bfa2cb15b2f37105fb29c0a4b551e854da0f6fa5bf9bde1389d54f08cfeb4f

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