Cross-Language .properties file parser
Project description
XProperties
Install
pip install xproperties
Example
# example.properties
usr=Duelit
pwd=password
# example.py
import XProperties
prop = XProperties.Properties()
prop.load("example.properties")
print(prop.get_property("usr")) # Duelit
print(prop["usr"]) # Duelit
prop.set_property("pwd", "password1")
prop["pwd"] = "password2"
print(prop.list()) # ["usr", "pwd"]
print([i for i in prop]) # ["usr", "pwd"]
print(len(prop)) # 2
prop.save()
License
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for XProperties-1.0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccebdf06802dcea4226ee05f228d5b383f824c70098db66ac9580e664e7ef9cb |
|
MD5 | 2b4cf7ec6954735c08fa99a88550f60e |
|
BLAKE2b-256 | b43352aca346ade550286dc781a1fd9bcbf5f8cba0ead65a445bd7a30b1a40c4 |