Metadata-Version: 2.1
Name: XProperties
Version: 1.0.3.1
Summary: Cross-Language .properties file parser
Home-page: https://github.com/Duelit/XProperties
Author: Duelit
Author-email: jyoon07dev@gmail.com
Maintainer: Duelit
Maintainer-email: jyoon07dev@gmail.com
License: UNKNOWN
Keywords: xproperties
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.4
Description-Content-Type: text/markdown
License-File: LICENSE

# XProperties
## Install
`pip install xproperties`
## Examples
### Example 1
```properties
# example1.properties
usr=Duelit
pwd=password
```
```python
# example1.py
import XProperties


prop = XProperties.Properties()
prop.load("example1.properties")

# set property
print(prop.get_property("usr"))  # Duelit
print(prop["usr"])               # Duelit

# get property
prop.set_property("pwd", "password1")
prop["usr.pwd"] = "password2"

# delete property
prop["del"] = "delete"
prop.delete_property("del")
prop["del"] = "delete"
del prop["del"]

# iterators
print(prop.list())        # ["usr", "pwd"]
print([i for i in prop])  # ["usr", "pwd"]
print(len(prop))          # 2

prop.save()
```

### Example 2
```python
# example2.py
import XProperties


prop = XProperties.Properties()
prop["username"] = "Duelit"
prop["password"] = "password"

prop.save("example2.properties")
```
## License
**[MIT License](https://github.com/Duelit/XProperties/blob/master/LICENSE)**


